body {
    font-family: Arial, helvetica, sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-size: 100%;
    background-color: rgb(249, 233, 233);
}

main {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-right: 20%;
    margin-left: 20%;
}

h1{
    text-align: center;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

p {
    text-align: center;
}

footer {
    margin-top : 24px;
    text-align: center;
    opacity: 0.6;
}

footer:hover {
    opacity: 1;
}

footer a {
  color: #0066aa;
  text-decoration: none;
}

footer:hover a {
  text-decoration: underline;
}

form {
    width: 60%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    border: 1px solid #ddd;
    padding: 2em;
}

input {
    font-family: "Arial", sans-serif;
    /* font-size: 24px; */
}

input[type="text"] {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #888;
    background: none;
}

input[type="text"]:focus {
    outline: 0;
}

input[type="button"] {
    cursor: pointer;
    width: auto;
    border: none;
    color: #000;
    padding: 0.25em 5em;
    border-radius: 5px;
    background-color: #168ddd;
    color: white;
}

input[type="button"]:hover {
    background-color: #0693e3;
}

/* résultats */

section{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgb(255, 255, 255, 0.5);
    backdrop-filter: blur(7.5px);
    cursor: nw-resize;
    overflow: auto;
    display: flex;
    justify-content: center;
    z-index: 20;
}

section.off{
    opacity: 0;
    transform: translateY(-100vh);
}

section.on{
    animation: bounce-in-up 1.5s ease 1 forwards;
}

section .label{
    margin-top: 0;
}

section .wrapper{
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2em;
    padding: 2em;
    box-sizing: border-box;
    min-height: 100%;
    justify-content: center;
}

section .card{
    padding: 2em;
    border: 1px solid #ddd;
    background: #FFF;
    display: flex;
    flex-direction: column;
    gap: 2em;
    cursor: auto;
    display: none;
}

section .card img{
    width: 4em;
    opacity: 0.5;
}

section .main{
    display: flex;
    align-items: flex-start;
    gap: 2em;
}

section .result{
    /* font-size: 24px; */
    margin: 0;
}

section.centered{
    display: flex;
    align-items: center;
}

section ul{
    padding: 0;
}

section ul li{
    list-style-type: none;
}

section ul li span{
    color: #FF665C;
}

section a{
    color: #000;
    text-decoration: none;
    text-align: center;
    padding: 0.25em;
    border-radius: 5px;
    background-color: #0066aa;
    color: white;
}

section a:hover{
    background-color: #0693e3;
}

p.message{
    color: #FF665C;
    text-align: center;
    display: none;
    margin: 0;
}

.rn .unavailable{
    display: block;
}

.rn a{
    display: none;
}

.signatory .signed{
    display: block;
}

.signatory a{
    display: none;
}

.card.on{
    display: inherit;
}

.erreur{
    /* font-size: 24px; */
}

@keyframes bounce-in-up {
    0% {
        opacity: 0;
        transform: translateY(100vh);
    } 60% {
        opacity: 1;
        transform: translateY(-10vh);
    } 80% {
        transform: translateY(5vh);
    } 100% {
        transform: translateY(0);
    }
}

/* Small */

@media (max-width: 768px) {

    form {
        width: 80%;
    }
    section .wrapper{
        width: 100%;
    }

    main {
    margin-right: 5%;
    margin-left: 5%;
}

}

/* Medium */

@media (min-width: 768px) and (max-width: 992px) {

    section .wrapper{
        max-width: 75vw;
    }

    main {
    margin-right: 2%;
    margin-left: 2%;
}

}

/* Large */

@media (min-width: 992px) {

    section .wrapper{
        max-width: 50vw;
    }

}

/* FONT-SIZES */


/* Small screens */
@media (max-width: 768px){

    .s-font{
        font-size: 15px;
    }
    .m-font{
        font-size: 18px;
    }
    .l-font{
        font-size: 28px;
    }
    .xl-font{
        font-size: 28px;
    }

}

/* Medium screens */
@media (min-width: 768px) and (max-width: 992px){

    .s-font{
        font-size: 16px;
    }
    .m-font{
        font-size: clamp(1.063rem, 1.6vw + 0.5rem, 1.5rem);
    }
    .l-font{
        font-size: clamp(2rem, 2vw + 1.25rem, 2.5rem);
    }
    .xl-font{
        font-size: 3vw;
    }

}

/* Extra-large screens */
@media (min-width: 992px){

    .s-font{
        font-size: clamp(0.813rem, 0.5vw + 0.5rem, 1.125rem);
    }
    .m-font{
        font-size: clamp(1rem, 0.9vw + 0.5rem, 1.75rem);
    }
    .l-font{
        font-size: clamp(1.875rem, 1.5vw + 1rem, 2.875rem);
    }
    .xl-font{
        font-size: 5vw;
    }

}