@font-face {
    font-family: 'Satoshi';
    src: url('./data/Satoshi-Medium.otf');
}
@font-face {
    font-family: 'BarlowCondensed';
    src: url('./data/BarlowCondensed-Bold.ttf');
}

* {
    box-sizing: border-box;
    font-family: 'Satoshi', 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: radial-gradient(circle, #1d2f6f 40%, #060f33 90%);
    background-size: 100% 100%;
    box-sizing: border-box;
    border-radius: 20px;
    margin: 2vh;
    max-height: 200vw;
}

.welcome-subsection {
    display: flex;
    position: relative;
    height: 78%;
    flex-direction: column;
    top: -5%;
}

#welcome-img {
    position: relative;
    top: 8%;
    margin: 2%;
}

#welcome-gif {
    position: relative;
    top: 10%;
    height: 50%;
    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;
}

.welcome-listelement.selected {
    background-color: #facc0d;
}

#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.1);
    }
}

.button-home-start {
    position: relative;
    width: 20%;
    height: 5%;
    top: 14%;
    align-self: center;
    color: #1d2f6f;
    font-size: min(2vw, 1.6vh);
    background-color: #facc0d;
}

.button-pre-start {
    position: relative;
    width: 15vh;
    height: 5vh;
    bottom: 7%;
    align-self: center;
    color: #1d2f6f;
    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: #1d2f6f;
    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: #facc0d;
    text-align: center;
    font-size: 2cqb;
    font-weight: bold;
    color: #1d2f6f;
    padding: 2%;
    bottom: 11%;
}

#prog-title-path {
    position: relative;
    width: 100%;
    height: 4%;
    background-color: #facc0d;
    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: #facc0d;
    text-align: center;
    font-size: 2cqb;
    font-weight: bold;
    color: #1d2f6f;
    padding: 2%;
    bottom: 16%;
}

.pre-title-path {
    position: relative;
    width: 100%;
    height: 4%;
    background-color: #facc0d;
    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: #facc0d;
    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%;
}

.question {
    width: 94%;
    height: 60%;
    top: 3%;
    left: 3%;
    position: relative;
}

.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: #1d2f6f;
    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;
    font-family: 'BarlowCondensed', sans-serif;
}

.question-title span {
    color: #facc0d;
}

.question-text {
    width: 100%;
    top: 38%;
    font-size: 1.8cqb;
    line-height: 1.3;
    color: #1d2f6f;
    position: relative;
    text-align: center;
    font-weight: bold;
    padding: 0 5% 5% 5%;
}

.question-text-reduced {
    top: 0;
    font-size: 1.6cqh;
    height: 70%;
    align-content: center;
    padding: 5%;
}

.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%;
    top: -9%;
    height: 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3%;
}

.answer {
    position: relative;
    display: flex;
    height: 15%;
    left: 5%;
    width: 60%;
    background-image: url("./data/fond choix lettre colored.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.answer-letter {
    left: 1.5%;
    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: #1d2f6f;
    mask-image: url("./data/fond choix lettre colored.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: red;
}

.answer-text {
    font-size: 1.5cqb;
    color: #1d2f6f;
    left: 2%;
    width: 100%;
    height: 100%;
    position: relative;
    background-color: white;
    border-radius: 0.6cqh;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 2% 4%;
}

#alveoles_answer_img {
    position: absolute;
    width: 30%;
    right: 0;
}

.button-next {
    position: relative;
    width: 20%;
    height: 50%;
    align-self: center;
    color: white;
    font-size: min(4cqw, 2cqh);
    border: none;
    border-radius: 6px;
    background-color: #1d2f6f;
}

.button-next:disabled {
    background-color: #4c577b;
}

.question-header {
    position: relative;
    min-width: 100px;
    width: 46%;
    top: 2.9%;
    font-size: max(1.8vw, 9.2px);
    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;
}

#menus_answer_img {
    position: relative;
    width: 91.5%;
    left: 4%;
    top: -3%;
    height: 30%;
}

#thanks-mascotte {
    height: 30%;
    position: relative;
    align-self: center;
    top: 20%;
}

#thanks-text {
    position: relative;
    top: 25%;
    color: white;
    align-self: center;
    font-size: 3cqb;
}

#souffleAnswerArea {
    display: flex;
    position: relative;
    top: 4%;
    height: 55%;
    margin: 0 3%;
    flex-direction: column;
}

#souffleQuestions {
    max-height: 75%;
}

.souffleQuestion {
    width: 100%;
    padding: 1% 0;
    color: white;
    height: fit-content;
    font-size: 1.3cqb;
}

#souffleAnswers {
    display: flex;
    gap: 10%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 5%;
}

#inner-dropzone {

}

.dropzone {
    background-color: #6dedff45;
    border: dashed 4px transparent;
    border-radius: 4px;
    padding: 1%;
    transition: background-color 0.3s;
}

.drop-active {
    border-color: #aaa;
}

.drop-target {
    background-color: #facc0d;
    border-color: #fff;
    border-style: solid;
}

.drag-drop {
    display: inline-block;
    min-width: 40px;
    padding: 0 5px;
    color: #1d2f6f;
    background-color: #facc0d;
    border: solid 2px #fff;
    touch-action: none;
    transform: translate(0px, 0px);
    transition: background-color 0.3s;
    user-select: none;
    width: fit-content;
    border-radius: 4px;
    border-color: transparent;
    font-size: 1.3cqb;
}

.drag-drop.can-drop {
    /*color: #000;
    background-color: #facc0d;
    border-color: transparent;*/
}

.slow-mo {
    transition: transform 0.3s;
}