body.dark-mode{
    background-color: var(--dark-mode);
    color: var(--dark-mode-text);
}

main{
    max-width: 850px;
    margin: 0 auto;
}

header{
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: white;
    border-bottom: 1px solid var(--card-outline);
}

body.dark-mode header{
    background-color: var(--dark-mode);
     border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.back-arrow{
    transition: transform 0.2s ease;
    cursor: pointer;
}

.back-arrow:hover{
    transform: scale(1.1);
}

.theme-btn{
    border: 1px solid black;
    background-color: rgb(3, 3, 68);
    border-radius: 5px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

body.dark-mode .theme-btn{
    background-color: rgba(250, 185, 7, 0.938);
    transition: transform 0.2s ease;
}

.theme-btn:hover{
    transform: scale(1.1);
}

.theme-btn svg{
    width: 15px;
    color: var(--moon-color);
}

body.dark-mode .theme-btn svg{
    color: var(--sun-color);
}

.projects-content{
    padding: 1rem 1rem;
}

.section-label{
    margin: 0 0 0.7rem;
    font-family: jetbrains;
    font-size: var(--label);
}

.section-heading{
    margin: 0 0 0.7rem;
    font-family: inter;
    font-size: var(--heading);
}

.section-description{
    margin: 0 0 2rem;
    font-family: inter;
    font-size: var(--description);
    color: var(--color2);
}

body.dark-mode .section-description{
    color: var(--dark-mode-description);
}

.projects-images{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.alertroad{
    max-width: 235px;
    height: 350px;
    border: 1px solid var(--card-outline);
    margin: 0 0 0.7rem;
    object-fit: cover;
}

body.dark-mode .alertroad{
    border: 1px solid var(--dark-mode-description);
}

.alertroad img{
    width: 100%;
    margin: 0 0 0.7rem;
}

.nxtgen{
    max-width: 235px;
    height: 350px;
    border: 1px solid var(--card-outline);
    margin: 0 0 0.7rem;
}

body.dark-mode .nxtgen{
    border: 1px solid var(--dark-mode-description);
}

.nxtgen img{
    width: 100%;
    margin: 0 0 0.7rem;
}

.projects-label{
    margin: 0 0.7rem 0.5rem;
    font-family: inter;
    font-size: var(--title);
}

.projects-description{
    margin: 0 0.7rem 0.5rem;
    font-family: inter;
    font-size: var(--text);
    color: var(--color2);
}

body.dark-mode .projects-description{
    color: var(--dark-mode-description);
}

/*Desktop*/
@media (min-width: 1024px){

    header{
        margin: 1rem auto 0;
        border-bottom: none;
    }

    .projects-images{
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
    }

}

