@font-face {
    font-family: "HennyPenny-Regular";
    src: url("HennyPenny-Regular.ttf");
}

@font-face {
    font-family: "DarumadropOne-Regular";
    src: url("DarumadropOne-Regular.ttf");
}

body {
    background-color: #fff0f5;
}

.gameScreen {
    padding-top: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 50%;
    left: 50%;

    width: 1100px;
    height: 600px;

    border: thick solid #d67ab1;
    border-radius: 25px;

    transform: translate(-50%, -50%);
    background-color: #ffeeef;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.gameContent {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

#exit {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    /*transform: translateX(-50%);*/
    z-index: 1000;

    justify-content: space-between;
    align-items: center;

    background-color: #4b0037;
    padding: 0 20px;
    width: 100%;
    height: 30px;

    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid #d67ab1;
    border-radius: 20px 20px 0 0;
    color: #fffafc;
}

.exitButtons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.exitButtons a {
    background-color: #e63946;
    color: #fffafc;
    padding: 0 5px;
    cursor: pointer;

    font-weight: bold;
    border-radius: 10px;
    border: solid 1px black;

    text-decoration: none;
    font-family: "DarumadropOne-Regular", serif;
    font-size: 1rem;
    transition: 0.3s ease;
}

.exitButtons a:hover {
    background-color: #ff6b81;
}

.startScreen {
    background-color: #ffdde8;
    padding: 30px 40px;
    border-radius: 20px;
    border: 2px solid #c25e92;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    margin: 20px auto;
}

.startScreen h1 {
    font-family: "HennyPenny-Regular", serif;
    font-size: 4rem;
    background-color: #fbd2e0;
    color: #4b0037;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff9ecb, #d65fa1, #6a1e55);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.startScreen h2 {
    font-family: "DarumadropOne-Regular", serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #4b0037;
}

.startScreen a {
    font-family: "DarumadropOne-Regular", serif;
    background-color: #ffe0ec;
    text-align: center;
    padding: 10px 15px;
    border: 2px solid #c25e92;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #c25e92;
    text-decoration: none;
    margin-top: 10px;
    transition-duration: all 0.4s ease;
    display: inline-block;
}

.startScreen a:hover {
    background-color: #c25e92;
    color: #fffafc;
    transform: scale(1.05);
}

#attribute a {
    font-family: "DarumadropOne-Regular", "serif";
    font-size: x-small;
    color: #4b0037;
    text-decoration: none;
}

#attribute a:hover {
    text-decoration: underline;
    color: #c25e92;
}

#levelChoose {
    font-family: "HennyPenny-Regular", serif;
    text-align: center;
    position: relative;
    padding-top: -30px;
}

#levelChoose h1 {
    font-size: 4rem;
}

.buttons a,
.buttons button {
    font-family: "DarumadropOne-Regular", "serif";
    font-size: larger;
    background-color: #ffe0ec;
    padding: 10px;
    border: 2px solid #c25e92;
    border-radius: 7px;
    color: #c25e92;
    text-decoration: none;
    margin: clamp(6px, 2vw, 14px);
    transition-duration: 0.4s;
    cursor: pointer;
}

.buttons a:hover,
.buttons button:hover {
    background-color: #c25e92;
    color: #fffafc;
    box-shadow: 5px 10px 16px 0 rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

#gameBoard {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    display: grid;

    width: 100%;
    height: 100%;

    grid-gap: 10px;
    border-width: thick;
    border: double;
    border-color: #d67ab1;
    border-radius: 0 0 20px 20px;

    justify-content: center;
    align-content: center;

    background-color: #ffeeef;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.card {
    width: 100%;
    height: 100%;
    background-color: #ffcbe5;
    border: 2px solid #c25e92;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: transparent;
    transition:
        transform 0.3s,
        color 0.3s;
    user-select: none;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped .card-inner {
    color: black;
    background-color: #fdf7fa;
    transform: rotateY(180deg);
    border-radius: 10px;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 2.5rem;
    user-select: none;
}

.card-front {
    background: radial-gradient(circle, #c25e92 5%, #a43c71 100%);
    /*border: 2px solid #912a5c;*/
}

.card-back {
    background: #ffcbe5;
    color: black;
    /*border: 2px solid #c25e92;*/
    transform: rotateY(180deg);
}

.card:hover {
    background-color: #f8b9d4;
}

#winMessage button,
#gameOver button {
    margin-top: 15px;
    font-size: 1.2rem;
}

#gameOver,
#winMessage {
    color: #4b0037;
    display: none;
    font-size: 2.5rem;
    align-content: center;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#gameOver h1,
#winMessage h1 {
    font-family: "HennyPenny-Regular", "serif";
    margin: 0;
    padding: 0;
}

#gameOver h2,
#winMessage h2 {
    font-family: "DarumadropOne-Regular", "serif";
    margin: 5px 0 10px 0;
}

#livesDisplay {
    font-family: "DarumadropOne-Regular", "serif";
    color: white;
    font-size: 1.2rem;
    user-select: none;
    text-align: left;
}

#livesDisplay,
#backButton a {
    visibility: hidden;
}
