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);
}

.certificates-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);
}

.certificates{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(159px, 1fr));
    gap: 10px;
}

.certificates img{
    width: 100%;
    transition: transform 0.2s ease;
    cursor: pointer;
}

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

.lightbox{
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    z-index: 1000;
    top: 0;
    left: 0;
    position: fixed;
    align-items: center;
    justify-content: center;
}

.lightbox-image{
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close-btn{
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

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

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

}
