body {
    background: #FFCF9C;
    position: relative;
    min-height: 100vh;
    margin: 0;
}
@font-face {
    font-family: 'SelectedFont';
    src: url(../fonts/JacquesFrancois-Regular.ttf) format('truetype');
}

h1{
    color: #3B1C32;
    text-align: left;
    font-size: clamp(3rem, 6vw, 13rem);
    font-family: 'SelectedFont';
    font-weight: normal;
    margin-left: 5%;
}

a{
    color: #3B1C32;
    font-family: 'SelectedFont';
    font-weight: normal;
    font-size: clamp(1rem, 2vw, 4rem);
    margin-left: 3%;
    margin-top: 2%;
}

button{
    background: url(../images/ButtonBG.png) no-repeat center center;
    background-size: 100% 100%;
    border: none;
    color: #3B1C32;
    width: 85%;
    height: clamp(70px, 10vw, 140px);
    font-size:clamp(1rem, 4vw, 5rem);
    font-family: 'SelectedFont';
    margin-bottom: 3.5%;
    margin-left: 10%;
    text-align: left;
    padding-left: 20px;
    transition-duration: 0.3s;
}

button:hover{
    background: url(../images/BtnHovered.png) no-repeat center center;
    background-size: 100% 100%;
}

button#btn-main-menu{
    background: url(../images/Mbutton.png) no-repeat;
    background-size: contain;
    width: clamp(60px, 8vw, 115px);
    height: clamp(60px, 8vw, 115px);
    margin: 15px;
}

button#btn-main-menu:hover{
    background: url(../images/BtnMainMHovered.png) no-repeat;
    background-size: contain;
}

button#btn-exit-game{
    background: url(../images/Xbutton.png) no-repeat;
    background-size: contain;
    width: clamp(40px, 8vw, 100px);
    height: clamp(40px, 8vw, 100px);
    margin: 5px;
}

.leftcontent{
    float: left;
    width: 50%;

}

.rightcontent{
    background: url(../images/RecordsTemplate.png) no-repeat;
    background-size: 100% 100%;
    float: left;
    width: 35%;
    height: clamp(200px, 40vw, 550px);
    margin-top: 7%;
    margin-left: 5%;
}

.rightcontent #recordsText{
    float: left;
    padding-top: clamp(30px, 10vw, 200px);
    padding-left: 5%;
    height: auto;
    width: 30%
}

.rightcontent #recordsText p{
    color: #FFCF9C;
    font-family: 'SelectedFont';
    font-weight: normal;
    font-size:clamp(1rem, 4vw, 4rem);
    margin: 0;
    
}
.rightcontent #records{
    float: right;
    padding-top: clamp(30px, 10vw, 200px);
    height: auto;
    width: 40%
    
}

.rightcontent #records p{
    color: #AF6242;
    font-family: 'SelectedFont';
    font-weight: normal;
    font-size:clamp(1rem, 4vw, 4rem);
    margin: 0;
    padding-left: 5%;
}

.rightcontent img{
    width: 100%;
    height: auto;
}

#card-examples{
    display: block;
    margin: 0 auto;
    width: clamp(300px, 45vw, 600px);
    height: auto;
    margin-top: -6%;
}

#Levels-container button{
    background: none;
    margin: 0;
    img{
        width: 100%;
        height: auto;
    }
    width: clamp(200px, 20vw, 400px);
    height: auto;
}

#Levels-container{
    display: flex;
    margin-top: 3%;
    justify-content: center;
    gap: 2%;
}

#game-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    row-gap: clamp(8px, 4vw, 40px);
    column-gap: clamp(6px, 2vw, 24px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    height: auto;
}

#game-container button {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    width: clamp(50px, 10vw, 200px);
    aspect-ratio: 1;
    height: auto;
    margin: 5%;
    padding: 0;
    cursor: pointer;
}

#game-container button.card-face-down {
    background-image: url('../images/HiddenCard.png');
    background-size: contain;
}

#game-container button.card-face-up {
    background-image: url('../images/ShowingCard.png');
    background-size: contain;
    cursor: none;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container button.card-face-up img,
#game-container button.card-matched img {
    width: 60%;
    height: auto;
    display: block;
    margin: auto;
}

#game-container button.card-matched {
    background-image: url('../images/CorrectCard.png');
    background-size: contain;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
}

#Time{
    color: #CA054D;
    font-family: 'SelectedFont';
    font-weight: normal;
    font-size:clamp(2rem, 5vw, 7rem);
    text-align: center;
    margin-top: -8%;
}
