* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a0a07;
    color: #ffffff;
    font-family: 'Barlow Condensed', sans-serif;
    overflow-x: hidden;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dark--mode{
    filter: grayscale(0.8) brightness(0.7);

    h1{
        font-family:'Barlow Condensed', sans-serif; 
    }

    p{
        font-family: 'Bungee', cursive;
    }
}

.btn__toggle{
    background: #8b2626;
    padding: 10px 15px;
    width: fit-content;
    color: white;
    border: none;
    font-family: 'Bungee';
    font-size: 16px;
    border-radius: 4px;
    margin-top: 25px;
}

.header {
    padding: 40px;
}

.header__title {
    font-family: 'Bungee', cursive;
    font-size: clamp(40px, 8vw, 90px);
    line-height: 0.9;
    text-transform: uppercase;
}

.header__title span {
    display: block;
}

.header__intro {
    margin-top: 30px;
}

.header__texte {
    max-width: 450px;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 25px;
    opacity: 0.9;
}

.header__select {
    background: #8b2626;
    width: fit-content;
    border-radius: 4px;         

    select{
        background: #8b2626;
        color: white;
        border: none;
        font-family: 'Bungee';
        font-size: 16px;
        outline: none;
        cursor: pointer;
        text-transform: uppercase;

        width: 100%;
        padding: 10px 15px;
        border-radius: 4px;
        display: block;
    }
}

.content {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 40px 60px 40px;
    scrollbar-width: none; 
}

.content::-webkit-scrollbar {
    display: none;
}

.student__card {
    flex: 0 0 320px;
    height: 480px;
    background: #b94343;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: white;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    filter: grayscale(0.8) brightness(0.7);
    transition: all 0.4s ease;
}

.student__card.active, .student__card:hover {
    filter: grayscale(0) brightness(1);
    background: #e35d5d;
    transform: translateY(-5px);
}

.student__name {
    font-family: 'Bungee';
    font-size: 26px;
    line-height: 1;
    margin-bottom: 20px;
    height: 60px;
    display: block;
}

.student__img {
    width: 100%;
    flex-grow: 1;
    background: #d9d9d9;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
}

.footer {
    margin-top: auto;
}

.footer__nav {
    padding: 20px 40px;
}

.footer__tracker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 25px;
}

.footer__tracker span {
    cursor: pointer;
    opacity: 0.3;
    transition: 0.3s ease-in-out;
    padding: 2px 5px;
}

.footer__tracker span:hover {
    color: #b94343;
}

.footer__tracker span.active {
    opacity: 1;
    text-decoration: underline;
    color: #e35d5d;
}

.footer__arrow button {
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    margin-right: 25px;
    transition:  0.2s ease-in-out;
}

.footer__arrow button:hover {
    color: #e35d5d;
}

.footer__band {
    width: 100%;
}

.footer__band--1 { height: 20px; background: #4a1008; }

.footer__band--2 { height: 20px; background: #8b2626; }

.footer__band--3 { 
    height: 85px; 
    background: #b94343; 
    display: flex; 
    align-items: center; 
    padding: 0 40px; 

    a{
        font-family: 'Bungee', cursive;
        transition: 0.2s ease-in-out;
    }

    a:hover{
        color: #4a1008;
    }
}

.footer__link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

@media (min-width: 840px) {
    .header {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        padding: 60px 40px;
    }
    .header__title { grid-column: span 2; }
    .header__intro { grid-column: 3; align-self: end; }

    .footer__nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        gap: 40px;
    }
    .footer__tracker { grid-column: span 2; margin-bottom: 0; }
    .footer__arrow { grid-column: 3; }

    .student__card { flex: 0 0 380px; }
    
    .content::after {
        content: "";
        min-width: 60vw;
    }
}