@import url("https://fonts.googleapis.com/css2?family=Aboreto&display=swap");
@import url('https://fonts.googleapis.com/css?family=Barlow:400,400i,600,600i,700,700i,800,800i&display=swap">');

body {
    background-color: var(--secondary-color);
}



.page {
    width: 90%;
    height: 90svh;
}

.background_image {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 100svh;
    width: 100vw;
    z-index: 0;
}

.background_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: 100% 100%;
}

.overlay::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none; /* Assurez-vous que l'effet ne bloque pas les interactions avec l'image */
    background-image: radial-gradient(circle, transparent, rgba(255, 0, 168, 0.5) 0%);
}


.typing-effect {
    overflow: hidden; /* Assurez-vous que le contenu qui dépasse sera caché */
    border-right: .15em solid rgb(255,0,168); /* Ajoutez le curseur */
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
    animation:
            typing 2.5s steps(30, end),
            blink-caret .75s step-end infinite;
}

/* Les animations keyframes pour l'effet de frappe et le clignotement du curseur */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgb(255,0,168); }
}


.container {
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.container.gauche > div {
    padding: 0;
    margin: 0;
}

.intro_presentation h3 {
    font-style: normal;
    font-size: 0.8em;
    padding: 0;
    margin: 0;
    font-weight: 200;
}
.subtitle_presentation h1 {
    text-align: center;
    font-weight: 900;
    padding: 0;
    margin: 0;
    font-size: 3em;
    margin-bottom: 5px;
}
.subtitle_presentation h2 {
    width: 70%;
    margin: 0 auto 10px;
    font-style: normal;
    text-align: center;
    font-size: 1em;
    padding: 0;
    font-weight: 400;
}

form{
    margin: auto;
    width: max-content;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#password{
    margin: auto;
    border-color: white;
    color: white;
    border: 2px solid;
    border-radius: 10px;
    margin-bottom: 10px;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 50px 0;
    text-align: center;
}

.countdown-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown {
    display: flex;
    align-items: center;
}

.countdown-digit {
    font-size: 64px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 10px;
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.8);
}

.countdown-separator {
    font-size: 64px;
    color: #ffffff;
}

.title_presentation h1 {
    font-style: italic;
    font-weight: 300;
    font-size: 5em;
    padding: 0;
    margin: 0;
}

.title_presentation h1 b {
    font-weight: 800;
}

.logo {
    width: 100%;
    object-fit: contain;
    height: 100px;
}

.logo img {
    max-height: 100%;
    max-width: 100%;
}

.container.droite {
    align-items: center;
}

.text_under_button.hide {
    display: none;
}

.text_under_button a {
    font-style: italic;
    font-size: 0.8em;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease-out;
    font-weight: 100;
}

.text_under_button a:hover {
    transition: all 0.2s ease-out;
    text-decoration: underline;
}

.scroll_down {
    position: absolute;
    bottom: 5svh;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    border-bottom: white solid 6px;
    border-right: white solid 6px;
    width: 35px;
    height: 35px;
    animation: verticalMove 4s infinite;
    cursor: pointer;
    border-radius: 5px;
}

@keyframes verticalMove {
    from {
        bottom: 5svh;
    }
    40% {
        bottom: 5svh;
    }
    45% {
        bottom: 3svh;
    }
    50% {
        bottom: 5svh;
    }
    55% {
        bottom: 3svh;
    }
    60% {
        bottom: 5svh;
    }
    to {
        bottom: 5svh;
    }
}

.secondPage {
    background-color: var(--secondary-color);
    flex-direction: column;
    width: 100%;
    height: unset;
    position: absolute;
    top: 100svh;
}

.secondPage .container {
    background-color: var(--main-color);
}

.container.headlines,
.container.button {
    width: 100%;
    height: 30svh;
}

.headline,
.subtitle {
    margin: auto;
    width: 90%;
}

.headline h1 {
    text-align: center;
    font-style: italic;
    margin-bottom: 0;
}

.subtitle p {
    text-align: center;
    margin-top: 5px;
}

.container {
    display: flex;
}

.container.matches {
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.card img {
    max-width: 100%;
    max-height: 100%;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #e0e0e0;
}

.card-back img {
    transform: rotateY(180deg); /* Ajout de la rotation corrective */
}

.card {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    margin: 20px;
    transition:
            transform 0.5s,
            z-index 0.5s;
}

.card.active {
    transform: rotateY(180deg) scale(2) translate(-50%);
    z-index: 1;
    position: fixed;
    top: 20%;
    left: 20%;
}

.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card.active .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(0deg);
    background-color: #f0f0f0;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #e0e0e0;
}

img {
    max-width: 100%;
    max-height: 100%;
}

.carousel {
    background-color: var(--secondary-color);
    height: 100%;
    display: flex;
    width: max-content;
    align-items: center;
    animation: horizontalMove infinite 100s linear;
}

@keyframes horizontalMove {
    from {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-70%);
    }
    to {
        transform: translateX(0);
    }
}

.boxMatch {
    position: relative;
    width: 350px;
    height: 90%;
    background: white;
    border-radius: 25px;
    border: var(--alternate-color) solid;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 200px;
    padding: 0 10px;
}

.infosMatch {
    color: black;
    text-align: center;
    font-size: 0.8rem;
}

.infosMatch p {
    margin: 7px;
}

.infosMatch .poule {
    font-weight: bold;
}

.scoreMatch {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50%;
}

.embleme {
    width: 20%;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.embleme img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.score {
    position: relative;
    width: 18%;
    height: 80%;
    border: var(--alternate-color) solid;
    background-color: rgba(245, 44, 0, 0.1);
    border-radius: 15px;
}

.cote {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7em;
    color: var(--alternate-color);
}

.popup {
    z-index: 10;
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100svh;
    justify-content: center;
    align-items: center;
    color: black;
    transition: ease-out 0.3s;
    display: flex;
}

.logo.popup {
    height: 30px;
    position: relative;
}

#disclaimPopup .popup-body {
    padding-right: 30px;
    padding-left: 30px;
    padding-bottom: 40px;
    text-align: justify;
    font-size: 1.06rem;
}

#disclaimPopup .popup-body p {
    margin: 0px;
    max-height: 200px;
    overflow-y: scroll;
}

#disclaimPopup .popup-body p::-webkit-scrollbar {
    display: none;
}

.popup-actions {
    padding: 0;
    padding-bottom: 20px;
}

.popup-content {
    max-height: 90%;
}

.disclaimer {
    max-height: 350px;
}

.disclaimer h1 {
    text-align: center;
    margin-bottom: 0;
    font-size: 1.2em;
}

.mb-10 {
    margin-bottom: 0;
}

.disclaimer a {
    color: unset;
}
.popup .button {
    border: 2px solid;
}

.bounce {
    animation: bounce 1s infinite;
}

.gold-row {
    background-color: gold;
    font-weight: bold;
}

.silver-row {
    background-color: silver;
    font-weight: bold;
}

.bronze-row {
    background-color: #cd7f32;
    font-weight: bold;
}

.playStore {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.playStore > div {
    max-width: 60%;
}

.playStore.visible {
    display: flex;
}

.closeButton {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media only screen and (max-width: 768px) {
    .card.active {
        transform: rotateY(180deg) scale(1.7) translate(-50%);
        z-index: 1;
        position: fixed;
        top: 20%;
        left: -27%;
    }

    .subtitle_presentation{
        margin-bottom: 10px;
    }

    .subtitle_presentation h1{
        font-size: 1.7em;
    }

    .subtitle_presentation h2{
        font-size: .8em;
    }

    .countdown-digit {
        font-size: 24px;
    }

    .countdown-separator {
        font-size: 24px;
    }

    .countdown-text {
        font-size: 20px;
        padding: 0px 20px;
    }

    .logo {
        height: 80px;
    }


    .text_under_button a {
        font-size: 0.8em;
    }

    .page {
        flex-direction: column;
        justify-content: center;
    }
    .container.gauche {
        order: 1;
        text-align: center;
        width: 100%;
        height: 60%;
        margin: unset;
    }
    .container.droite {
        order: 2;
        width: 100%;
        text-align: center;
        height: 25%;
    }

    .logo img {
        max-height: 60px;
    }

    .text_under_button a {
        font-size: 0.7em;
    }

    .container.headlines {
        height: 40svh;
    }

    .container.button {
        height: 20svh;
    }

    .boxMatch {
        width: 300px;
    }

    .carousel {
        padding: 10px 0;
    }

    .secondPage {
        padding-top: unset;
        margin-top: 0;
    }

    .disclaimer {
        max-height: 350px;
        overflow: scroll;
    }

    .headline,
    .subtitle {
        margin: 20px auto;
    }

    .headline h1 {
        font-size: 2.5rem;
    }

    .subtitle p {
        font-size: 1.2rem;
    }

    .button.x-large {
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 508px) {

}
