@font-face {
    font-family: 'Satoshi';
    src: url('./data/Satoshi-Medium.otf');
}
@font-face {
    font-family: 'BarlowCondensed';
    src: url('./data/BarlowCondensed-Bold.ttf');
}
@font-face {
    font-family: 'Comic';
    src: url('./data/comic.ttf');
}
@font-face {
    font-family: 'Montserrat';
    src: url('./data/Montserrat-Medium.ttf');
}

* {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.hidden {
    display: none !important;
}

body {
    margin: 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-form {
  position: relative;
  background: white;
  padding: 25px;
  width: 70%;
  max-width: 500px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  border-radius: 5px;
  min-width: 350px;
  text-align: center;
  margin: 50px 0;
}

.password-input {
  width: 50%;
  margin-top: 2%;
}

.login-button {
  width: 50%;
  margin-top: 2%;
}

.invisible:after {
    content: "← Non présent dans la version live";
    font-size: min(3cqw, 1.5cqh);
    right: -175%;
    position: absolute;
    color: red;
    width: 175%;
}

.section {
    width: 70vh;
	height: 87vh;
    position: relative;
    display: flex;
    flex-direction: column;
	overflow: hidden;
    background-image: url("./data/fond.jpg");
    background-size: 100% 100%;
    box-sizing: border-box;
    border-radius: 20px;
    margin: 2vh;
    max-height: 200vw;
}

.section.main{
    background-image: url("./data/fond_valides.jpg");
    justify-content: flex-end;
}

.welcome-subsection {
    display: flex;
    position: relative;
    height: 78%;
    flex-direction: column;
    top: -5%;
}

#welcome-img {
    position: relative;
    top: 8%;
    margin: 2%;
}

.rectangle-text {
    height: 35%;
    position: relative;
    background-image: url("./data/rectangle.png");
    background-size: 100% 100%;
    width: 86%;
    align-self: center;
    top: 23%;
    padding: 2cqh;
    font-size: min(4.3cqw, 2.8cqh);
    text-align: center;
    font-family: 'Montserrat';
    align-content: center;
}

.releaseCode {
    position: absolute;
    bottom: 0;
    right: -48%;
    color: white;
    transform: rotate(90deg) translate(-50%, 0);
    font-size: min(3.7cqw, 1.7cqh);
    text-align: end;
    width: 100%;
}

#welcome-gif {
    position: relative;
    top: 20%;
    height: 38%;
    object-fit: contain;
    margin-bottom: -7%;
}

#welcome-mascottes {
    position: relative;
    top: 10%;
    margin: 4%;
}

#welcome_choosenametext {
    position: relative;
    color: white;
    text-align: center;
    top: 18%;
    font-size: 2cqb;
}

#welcome_participantlist {
    display: grid;
    grid-template-columns: auto auto;
    padding: 1%;
    position: relative;
    top: 18%;
    height: 40cqb;
    margin-bottom: 9%;
}
.welcome-listelement {
    background-color: #77c4d8;
    border-radius: 1cqw;
    text-align: center;
    align-content: center;
    font-size: 1.5cqb;
    margin: 1cqb;
    border: none;
    color: black;
}

.welcome-listelement.selected {
    background-color: #e4b2cf;
}

#welcome_choosenamebutton:disabled {
    opacity: 0.5;
}

.button-double {
    background: url("./data/fond bouton.png");
    background-size: 100% 100%;
    border: none;
}

.button-simple {
    mask-image: url("data/fond bouton.png");
    mask-size: 100% 100%;
    border: none;
}

@media (hover: hover) {
    .scale-on-hover:not([disabled]):hover {
    	transform: scale(1.05);
    }
}

.button-home-start {
    position: relative;
    width: 22%;
    height: 7%;
    top: 32%;
    align-self: center;
    color: #4c4c4c;
    font-size: min(2vw, 1.6vh);
    background-color: #e4b2cf;
    font-weight: bold;
}

.button-gohome {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 1%;
    right: 1%;
    height: 5cqh;
    width: 5cqh;
    background-color: #786fa4;
    border-radius: 1cqh;
    border: none;
}

.button-gohome img {
    margin: 20%;
}

.button-pre-start {
    position: relative;
    width: 15vh;
    height: 5vh;
    bottom: 7%;
    align-self: center;
    color: #4c4c4c;
    font-size: min(2vw, 1.6vh);
}

.button-pre-start:disabled > .button-pre-content {
    display: none;
}
.button-pre-start:disabled:after {
    content: "Veuillez patienter...";
}

.button-pre-content {
        left: 3.5%;
    top: 8%;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2cqb;
    color: #4c4c4c;
    mask-image: url("./data/fond bouton.png");
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    background-color: #77c4d8;
}

#bronchoquiz-logo-prog {
    position: absolute;
    top: 2%;
    margin: 4%;
    width: 92%;
    object-fit: contain;
}

.explanation-text {
    position: absolute;
    width: 92%;
    left: 4%;
    height: 15.5cqh;
    top: min(29cqw, 18cqh);
    object-fit: contain;
}

#prog-mascotte {
    height: 23%;
    position: relative;
    align-self: center;
    z-index: 1;
    bottom: 7%;
}

#prog-title {
    position: relative;
    width: 100%;
    background-color: #e4b2cf;
    text-align: center;
    font-size: 2cqb;
    font-weight: bold;
    color: #4c4c4c;
    padding: 2%;
    bottom: 11%;
}

#prog-title-path {
    position: relative;
    width: 100%;
    height: 4%;
    background-color: #e4b2cf;
    bottom: 12%;
    clip-path: polygon(50% 100%, 45% 0, 55% 0);
    margin-bottom: -3%;
}

#prog-mascottes {
    height: 30%;
    object-fit: contain;
    bottom: 11%;
    position: relative;
}

.pre-title {
    position: relative;
    width: 100%;
    background-color: #e4b2cf;
    text-align: center;
    font-size: 2cqb;
    font-weight: bold;
    color: #4c4c4c;
    padding: 2%;
    bottom: 16%;
}

.pre-title-path {
    position: relative;
    width: 100%;
    height: 4%;
    background-color: #e4b2cf;
    bottom: 17%;
    clip-path: polygon(50% 100%, 45% 0, 55% 0);
    margin-bottom: -3%;
}

.pre-mascotte {
    height: 30%;
    object-fit: contain;
    bottom: 14%;
    position: relative;
}

.header {
    position: relative;
    min-width: 100px;
    align-self: center;
    font-weight: bold;
    font-size: max(2.2vw, 11.25px);
    text-align: center;
    color: #e83c5a;
    background-image: url(./data/notch.png);
    background-size: 100% 100%;
    aspect-ratio: 320 / 34;
}

.footer {
    background-color: #786fa4;
    position: absolute;
    height: 10%;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
}

/* Main layout */
.content {
	position: relative;
	height: 60%;
	flex: 1;
}

#bronchoquiz-logo {
    position: relative;
    left: 1%;
    top: 2%;
    width: 30%;
}

.countdown {
    position: absolute;
    right: 3%;
    top: 0%;
    width: 30%;
    color: #e4b2cf;
    font-size: min(3cqh, 5cqw);
    text-align: right;
}
.question {
    width: 94%;
    height: 60%;
    top: 3%;
    left: 3%;
    position: relative;
}

.question-big {
    height: 80%;
}

.question-reduced {
    height: 30%;
}

.question-box {
    height: 50%;
    position: relative;
    background-image: url("./data/fond questions.png");
    background-size: 100% 100%;
}

.question-box-reduced {
    height: 56%;
}

.question-title {
    width: 75%;
    left: 12%;
    top: -6%;
    font-size: 4cqb;
    font-weight: bold;
    line-height: 90%;
    color: black;
    position: absolute;
    text-align: center;
    text-shadow: 0.25cqb 0.25cqb 2px #fff, -0.25cqb 0.25cqb 2px #FFF, -0.25cqb -0.25cqb 0 #FFF, 0.25cqb -0.25cqb 0 #FFF;
}

.question-title span {
    color: #fbcc0d;
}

.question-text {
    width: 100%;
    top: 0;
    font-size: min(2.8cqh, 3.8cqw);
    line-height: 1.3;
    color: black;
    position: relative;
    text-align: center;
    font-weight: bold;
    padding: 0 5% 0% 5%;
    height: 86%;
    align-content: center;
}

.question-text-reduced {
    top: 0;
    font-size: min(1.9cqh, 2.8cqw);
    height: 70%;
    align-content: center;
    padding: 5%;
}

#alveoles_question {
    top: 20%;
    height: 65%;
}

.image-box {
    width: 97%;
    height: 34.4%;
    top: -6%;
    left: 1%;
    position: relative;
    background-image: url("./data/cartouche images.png");
    background-size: 100% 100%;
    mask-image: url("./data/cartouche images.png");
    mask-size: 100% 100%;
}

.image-box-reduced {
    mask: unset;
    background: unset;
    top: -20%;
    height: 50%;
}

.question-image {
    width: 100%;
    height: 100%;
}

/* Answers */
.answers {
    position: relative;
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: column;
    gap: 3%;
}

.answer {
    position: relative;
    display: flex;
    height: 15%;
    left: 5%;
    width: 90%;
    background-image: url("./data/fond choix lettre colored.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.answer-letter {
    left: 0.9%;
    top: 8%;
    width: min(9vw, 4vh);
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2cqb;
    color: black;
    mask-image: url("./data/fond choix lettre colored.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: red;
}

.answer-text {
    font-size: min(1.48cqh, 2.5cqw);
    color: black;
    left: 1%;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #e9dabd;
    border-radius: 0.6cqh;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 0% 4%;
    align-content: center;
}

#alveoles_answer_img {
    position: absolute;
    width: 30%;
    right: 0;
}

.button-next {
    position: relative;
    width: 20%;
    height: 50%;
    align-self: center;
    color: #4c4c4c;
    font-size: min(4cqw, 2cqh);
    border: none;
    border-radius: 6px;
    background-color: #e4b2cf;
}

.button-next:disabled {
    background-color: #c69cb4;
    color: #929292;
}

.question-header {
    position: relative;
    min-width: 100px;
    width: 46%;
    top: 2.9%;
    font-size: min(2.2cqw, 2.2cqh);
    text-align: center;
    color: white;
    mask-image: url(./data/notch.png);
    mask-size: 100% 100%;
    background-color: #19349d;
    /*justify-self: center; */
    margin-bottom: -2.5cqh;
    transform: translate(59%, 0);
}

#thanks-text {
    position: relative;
    top: 35%;
    color: #4c4c4c;
    text-align: center;
    font-size: 3cqb;
}

.slow-mo {
    transition: transform 0.3s;
}

#score-pre-text {
    position: relative;
    top: 43%;
    text-align: center;
    font-size: 2.5cqb;
    color: #4c4c4c;
}

#score-text {
    position: relative;
    top: 45%;
    text-align: center;
    font-size: 2.5cqb;
    color: #e4b2cf;
}

.blink {
    animation-name: blink;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes blink
{
  0%,100% {color: #e4b2cf;}
  50% {color: #e4b2cf45; }
}