body {
    padding-top: 50px;
    padding-bottom: 100px;
    display: flex;
    justify-content: center;
    align-items: top;
    max-height: 100dvh;
    overflow-y: scroll;
    background-color: #f2f2f2;
    margin: 0;
    font-family: "Nunito", sans-serif;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #181818;
        color: #f9f9f9;
    }
}

.card {
    /* margin: 40px 20px; */
    /* max-width: 1000px;
    width: calc(100% - 120px); */
    margin: 20px 0;
    background-color: #fff;
    border-radius: 2rem;
    display: flex; 
    flex-direction: column;
    justify-content: left; 
    align-items: center;
    color: black;
    overflow: hidden;
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    .card {
        background-color: #1E1E1E;
    }

    .card h4 {
        color: white;
    }
}

.card .meta {
    width: calc(100% - 64px);
    padding: 32px;
}

.card img {
    max-width: 100%;
    transition: transform 0.3s;
}

.card:hover img {
    transform: scale(1.05);
}

.card h2 {
    font-size: 1.5rem;
    margin: 10px 0;
    font-weight: 800;
}

.card b, .card p {
    color: #9f9f9f;
    font-size: 0.95rem;
    margin: 0;
}

nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    position: fixed;
    max-width: 1100px;
    top: 0;
    width: calc(100% - 100px);
    padding: 50px;
    overflow: hidden;
    flex-wrap: wrap;
    z-index: 50;
    background: linear-gradient(180deg, #f2f2f2 0%, #f2f2f2 80%, rgba(249,249,249,0) 100%);
}

@media (prefers-color-scheme: dark) {
    nav {
        background: linear-gradient(180deg, #181818 0%, #181818 67%, rgba(255,255,255,0) 100%);
    }
}

#content {
    width: 100vw;
    max-width: 1000px;
    padding: 20px;
}

#grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);;
    gap: 40px;
}

@media (max-width: 574px) {
    #grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

#content .fullscreen {
    margin-top: 0px;
    height: 60dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#travel {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    height: 50px;
}

#travel div {
    position: absolute;
    background-color: rgba(211, 211, 211, 0.2);
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    align-items: baseline;
    display: inline-block;
    margin: 20px;
    white-space: nowrap;
}

#home {
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    margin: 0 auto;
    margin-top: -100px;
}

#home b {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 5px;
    margin-top: 0;
}

#home h1 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0 0;
}

#home .cta {
    margin-top: 40px;
    margin-bottom: 70px;
}

#home p {
    margin: 0 0;
}

#home a:not(.store-button), nav a {
    background-color: #e3dddd;
    color: rgb(0, 0, 0);
    padding: 10px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    align-items: baseline;
    margin-right: 10px;
    white-space: nowrap;
}

#home a:not(.store-button) {
    background-color: rgba(211, 211, 211, 0.2);
}

@media (prefers-color-scheme: dark) {
    #home a:not(.store-button), nav a {
        filter: invert(1);
    }
}

#home .store-container {
    padding: 0;
    background-color: rgba(211, 211, 211, 0);
    font-size: 0.9rem;
}

.linkedin:before {
    background: url('assets/linkedin.svg') no-repeat center center;
    content: '';
    display: inline-block;
    margin-right: 6px;
    width: 12px; 
    height: 12px; 
    background-size: contain;
    vertical-align: baseline;
}

.doc::before {
    background: url('assets/doc.svg') no-repeat center center;
    content: '';
    display: inline-block;
    margin-right: 6px;
    width: 16px; 
    height: 16px; 
    background-size: contain;
    vertical-align: middle;
}

.cube::before {
    background: url('assets/cube.svg') no-repeat center center;
    content: '';
    display: inline-block;
    margin-right: 6px;
    width: 16px; 
    height: 16px; 
    background-size: contain;
    vertical-align: middle;
}

.edulg::before {
    background: url('assets/edu.svg') no-repeat center center;
    content: '';
    display: inline-block;
    margin-right: 6px;
    width: 32px; 
    height: 32px; 
    background-size: contain;
    vertical-align: middle;
}

.work::before {
    background: url('assets/work.svg') no-repeat center center;
    content: '';
    display: inline-block;
    margin-right: 6px;
    width: 16px; 
    height: 16px; 
    background-size: contain;
    vertical-align: baseline;
}

.icon-light {
    filter: invert(1);
}

.hidden {
    opacity: 0;
}

.fly-out-left {
    /* position: absolute; */
    /* animation: flyOut-left 1.2s forwards; */
    animation: animateout 0.8s forwards;
}

.fly-in-left {
    /* position: absolute; */
    /* animation: flyIn-left 1.2s forwards; */
    animation: animatein 0.8s forwards;
}

/* @keyframes flyOut-left {
    0% {
        transform: rotate(0deg) translateX(-50%) translateY(-50%) rotateY(0deg) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: rotate(15deg) translateX(-75vw) translateY(-25vh) rotateY(70deg) rotateX(-80deg);
        opacity: 0;
    }
}

@keyframes flyIn-left {
    0% {
        transform: rotate(15deg) translateX(-75vw) translateY(-25vh) rotateY(70deg) rotateX(-80deg);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) translateX(-50%) translateY(-50%) rotateY(0deg) rotateX(0deg);
        opacity: 1;
    }
} */

.fly-out-right {
    /* position: absolute;
    animation: flyOut-right 1.2s forwards; */
    animation: animateout 0.8s forwards;
}

.fly-in-right {
    /* position: absolute;
    animation: flyIn-right 1.2s forwards; */
    animation: animatein 0.8s forwards;
}

/* @keyframes flyOut-right {
    0% {
        transform: rotate(0deg) translateX(-50%) translateY(-50%) rotateY(0deg) rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: rotate(-15deg) translateX(75vw) translateY(-25vh) rotateY(70deg) rotateX(-80deg);
        opacity: 0;
    }
}

@keyframes flyIn-right {
    0% {
        transform: rotate(-15deg) translateX(75vw) translateY(-25vh) rotateY(70deg) rotateX(-80deg);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) translateX(-50%) translateY(-50%) rotateY(0deg) rotateX(0deg);
        opacity: 1;
    }

} */

@keyframes animatein {
    0% {
        max-height: 0;
        opacity: 0;
    }
    100% {
        max-height: 100dvh;
        opacity: 1;
    }

}

@keyframes animateout {
    0% {
        max-height: 100dvh;
        opacity: 1;
    }
    100% {
        max-height: 0;
        opacity: 0;
        display: none;
    }

}


@media (min-width: 574px) {
    .mobile {
        display: none;
    }
}
@media (max-width: 574px) {
    .desktop {
        display: none;
    }
}

.app-icon {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
}

@media (max-width: 574px) {
    .app-icon {
        width: 4rem;
        height: 4rem;
        object-fit: cover;
    }
}

.rounded {
    border-radius: 1rem;
}

.rounded-lg {
    border-radius: 2rem;
}

.store-container {
    margin: 20px auto;
    max-width: 1200px;
    padding: 25px;
    background-color: #fff;
}

@media (prefers-color-scheme: dark) {
    .store-container {
        background-color: #1E1E1E;
        color: #f9f9f9;
    }
}

@media (min-width: 574px) {
    .store-container {
        padding: 40px;
    }
    .store-container h2 {
        margin-bottom: 50px;
    }
}

.store-container h2 {
    font-weight: 800;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 25px;
}

.store-container h3 {
    color: #b0b0b0;
    font-size: 1rem;
    margin-bottom: 5px;
    margin-top: 0;
}

.store-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

@media (max-width: 1000px) {
    .store-grid-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.store-grid-item {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.store-grid-item .meta {
    text-align: left;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    margin: 0 20px;
}

.store-grid-item .meta h4 {
    margin: 0;
}

.store-grid-item .meta p {
    margin-bottom: 0!important;
    margin: 5px;
    font-weight: 400;
    color: #858585;
}

.store-grid-item .meta div {
    display: flex;
    align-items: baseline;
    margin-right: auto;
}

@media (max-width: 575px) {
    .store-grid-item .meta p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
}

.store-grid-item .store-cta p {
    font-weight: 400;
    color: #858585;
    font-size: 0.8rem;
    margin-top: 20px;
    margin-bottom: 0;
}

.store-grid-item .store-cta {
    text-align: center;
    align-items: center;
    margin-left: auto;
}


.store-button {
    padding: 9px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2rem;
}

@media (prefers-color-scheme: dark) {

    .store-container {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .store-container h3 {
        color: #e0e0e0;
    }

    .store-grid-item .meta p,
    .store-grid-item .cta p {
        color: #b0b0b0;
    }

    .store-button {
        color: #1e90ff;
        background-color: rgba(255, 255, 255, 0.1);
    }
}

#modal {
    display: none;
    position: fixed;
    bottom: 0;
    margin: 0 auto;
    max-width: 1120px;
    width: 100vw;
    height: calc(95vh - 20px);
    background-color: #fff;
    border-radius: 2rem 2rem 0 0;
    z-index: 99999;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    padding: 20px 20px 0 20px;
}

@media (prefers-color-scheme: dark) {
    #modal {
        background-color: #1E1E1E;
    }
}

#modal-backdrop {
    display: none;
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99; /* Ensure it is behind the modal */
}