#popup{
    transition: opacity 0.5s ease;
}

#hightlight img {
    object-fit: cover;   /* Couvre l'élément tout en conservant le ratio de l'image */
    width: 50px;          /* L'image occupe toute la largeur de son conteneur */
    height: 30px;         /* Hauteur fixe pour l'image */
    object-position: center; /* Centre l'image (verticalement et horizontalement) */
}

#en-de-button img{
    object-fit: cover;
    width: 35px;
    height: 35px;
    object-position: center;
    filter: invert(17%) sepia(40%) saturate(6931%) hue-rotate(360deg) brightness(97%) contrast(135%);
}

#popup.hidden{
    display: none;
    opacity: 0;
}

.blur-sm{
    filter: blur(4px);
}

button.closePopup{
    border: 0;
}

.backgroundtoday {
    background-image: url('../img/Adventskalender_Kachel2.svg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    height: 90dvh;
    width: 144vh;
    box-sizing: border-box;
}

.backgroundtoday.plain {
    background-image: url('../img/Adventskalender_Kachel1.svg');
}

.backgroundtoday>div.content-border-top{
    height: 80px;
}

.backgroundtoday>div.content-border-bottom{
    height: 80px;
}

.backgroundtoday>div.content {
    /* margin-top: 13dvh; */
    max-height: 100%;
    min-width: 90%; /* assures scrollbar is not too much in the middle */
    overflow: auto;
}


hr{
    border: solid 1px #2B0504;
    width: 200px;
}



.backgroundfutur {
    background-image: url('../img/Adventskalender_Kachel1.svg');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    width: 1162px;
    height: 613px;
}


.corp{
    padding: 1.5rem;
    color: #2B0504;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    /* width: 700px; */
}

.petitcorp{
    color: #2B0504;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 700px;
}


.petitcorpflex{
    color: #2B0504;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 400px;
}

.question{
    color: #2b050477;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 500px;
}


.petitquestion{
    color: #2b050477;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 500px;
}

.title{
    color: #de0000;
    font-size: 44px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.petittitle{
    color: #de0000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

#spam{
    font-size: 14px;
}

#confirmation{
    font-size: 14px;
}

.kalnia{
}


body{
    height: 100dvh;
}

header{
    height: 5dvh;
}

body>section{
    height: 95dvh;
    background: #dfe2e3;
}

#backgroundContainer{
    aspect-ratio: 2 / 1;
    margin: auto;
    max-height: 100%;
    box-sizing: border-box;
    background-color: #dfe2e3;
}

section.desktop-section>#backgroundContainer{
    aspect-ratio: 2 / 1;
}

section.mobile-section>#backgroundContainer{
    aspect-ratio: 1 / 2;
}

sew-ws-button {
    width: 100%;
}

.nbback{
    font-size: 430px;
    position: absolute;
    z-index: 1;
    color: #F4EEEF;

}

.resultats{
    top: 2vh;
    width: 100vh;
    border-radius: 50px;
}

.popupresults .backgroundtoday {
    padding-top: 4rem;
}


.nom{
    color: white;
    font-size: 20px;
    font-weight: 500;
}


.lot{
    color: white;
    font-size: 16px;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/home.svg);
    background-position: bottom;
    background-size: cover;
    filter: brightness(70%) contrast(100%);
    z-index: -1;
}


.overlay-content {
    position: relative;
    color: white;
    text-align: center;
}

.fade-out {
    opacity: 0;
}

#headerContainer button{
    height: 40px;
    border: 0;
}

#playButton{
}

.snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.flake {
    position: absolute;
    top: -10px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}



.case {
    transition: transform 0.3s ease;
    box-shadow: 0 0 2px #999;
}

.case:hover {
    transform: scale(1);
    cursor: pointer;
}

.initial {
    box-shadow: none;
}

.glow-effect {
    box-shadow: 0 0 17.4px 18px #c19240;
    transition: box-shadow 0.5s ease;
}

.overlayglow {
    background: radial-gradient(50.95% 50% at 50% 50%, #FFFAD1 0%, #c19240 100%);
    opacity: 1;
    border-radius: 0.25rem;
}

.hiddenglow {
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

#hightlight{
}

.memory-game {
    width: 540px;
    height: 340px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
  }
  
  .memory-card {
    width: calc(25% - 10px);
    height: calc(33.333% - 10px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    /* box-shadow: 1px 1px 1px rgba(0,0,0,.3); */
  }
  
  .memory-card:active {
    transform: scale(0.97);
    transition: transform .2s;
  }
  
  .memory-card.flip {
    transform: rotateY(180deg);
  }
  
  .front-face,
  .back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    border-radius: 5px;
    background: #343d44;
    backface-visibility: hidden;
  }
  
  .front-face {
    transform: rotateY(180deg);
  }

/*@media (min-width: 1600px) and (max-width: 3000px) {*/
/*    .content {*/
/*        transform: scale(1.3);*/
/*    }*/

/*    .resultats{*/
/*        transform: scale(1.3);*/
/*        width: 80vh;*/
/*        top: 50px;*/

/*    }*/
/*}*/



@media (min-width: 300px) and (max-width: 1024px) {

    .memory-game {
        width: 340px;
        height: 300px;
    }

    .backgroundtoday, .backgroundtoday.plain {
        height: 100dvh;
        width: 100vw;
        background: #fff none;
    }

    .backgroundfutur {
        height: 100dvh;
        width: 100vw;
    }

    .resultats{
        margin-top: 0;
        top: 0;
        width: 100%;
        border-radius: 0 0 25px 25px;
    }

    .nom{
        font-size: 14px;
        font-weight: 500;
    }
    
    
    .lot{
        font-size: 12px;
    }

    .nbback{
        font-size: 230px;
    }

    .corp{
        font-size: 16px;
        /* width: 500px; */
    }
    
    .petitcorp{
        font-size: 14px;
        width: 375px;
    }
    
    
    .petitcorpflex{
        font-size: 12px;
        width: 375px;
    }
    
    .question{
        font-size: 16px;
        width: 375px;
    }

    .petitquestion{
        font-size: 14px;
        width: 375px;
    }
    
    .title{
        font-size: 30px;
    }

    iframe{
        width: 220px;
        height: 100px;
    }

    #hightlight img {
        object-fit: cover;
        width: 43px;
        height: 23px;
        object-position: center;
    }

    .backgroundtoday>div.content-border-top{
        height: 0;
    }

    .backgroundtoday>div.content-border-bottom{
        height: 0;
    }
}


