*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    min-height: 100vh;
    background-color: rgb(230, 230, 255);
    font-family: "Nunito Sans", sans-serif;
}

#main{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
}

#athlete-name{
    width: 100%;
    height: 60px;
    font-size: 1.5rem;
    background-color: #0299FE;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: white;
}

section{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
}

#checkins-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

p{
    text-align: center;
    font-size: 1.2rem;
}

a{
    color: #4541b2;
    text-decoration: none;
    font-size: 1.6rem;
}

span{
    color: #4541b2;
    font-weight: bold;
    font-size: 1.25rem;
}

#qr-code{
    width: 280px;
    border-radius: 12px;
}

#qrcode canvas, #qrcode img {
    border-radius: 12px;
}

#qr-code-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 90%;
    border-radius: 8px;
    background-color: rgb(223, 175, 114);
}

#qr-code-section.complete{
    background-color: #0299fe21;
}

.inscription-status{
    width: 90vw;
    font-size: 1rem;
}

#check-inscription{
    font-size: 1.1rem;
}

#check-inscription-text, #dashboard-link{
    display: inline;
}

#qr-code-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#state{
    padding: 6px;
    border-radius: 999px;
    color: white;
    text-transform: uppercase;
    background-color: #f57c00;
}

#state.complete{
    background-color: #0299FE;
}

footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90px;
    background-color: #0299FE;
    font-size: 1.1rem;
    color: white;
}

footer img{
    width: 90px;
}

#athlete-error{
    display: none;
    font-size: 1.3rem;
    color: red;
    text-align: center;
    margin-top: 200px;
}

@media screen and (min-width: 1200px) {
    p{
        font-size: 1.5rem;
    }

    span{
        font-size: 1.55rem;
    }

    #qr-code-section{
        width: 33%;
    }

    .inscription-status{
        font-size: 1.4rem;
    }
    
    #check-inscription{
        font-size: 1.5rem;
    }
}

@media screen and (max-height: 800px) {
    p{
        font-size: 1.1rem;
    }

    a{
        font-size: 1.1rem;
    }

    span{
        font-size: 1.15rem;
    }

    .qr-code{
        width: 200px;
    }
}