* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Knightkrawler';
    src: url('../assets/fonts/Knightkrawler_v1.ttf') format('truetype');
}

body {
    font-family: 'Knightkrawler';
    font-weight: bold;
    background: #800000;
    padding: 20px;
    min-height: 100vh;
}

h1 {
    font-family: 'Knightkrawler';
    font-weight: bold;
    color: #ffff7e;
}

.homepage-link {
    width: 0px;
    height: 0px;
    width: 100%;
}

.homepage-link p{
    color: #ffff7e;
    font-weight: bold;
    font-size: 1.2em;
    transform: translateY(10px);
}

.homepage-link img {
    transform: translateY(10px);
    width: 80px;

}

.homepage-link:hover img {
    transform: scale(1.1);
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 25px;
    background: #ffff7e;
    border-radius: 25px;
    box-shadow: 0 8px 0 #ffb300;
}

.moveImageLeft {
    width: 80px;
    margin-right: 10px;
    transform: translateX(-10px);
    transform: translateY(10px);
}

.moveImageRight {
    width: 80px;
    margin-left: 10px;
    transform: translateX(10px);
    transform: translateY(10px);
}


.highlight1 {
    color: #ffff7e;
    font-weight: bold;
}

h1 {
    color: #000000;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: #800000;
    color: #eae5e5;
    padding: 12px 25px;
    box-shadow: 0 5px 0 #ffff7e;
    border-radius: 20px;
    border: 4px solid #800000;
}

.stat-label {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
}

/*.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}*/

.game-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    justify-content: center;
}

.card {
    width: 150px;
    height: 150px;
    display: inline-block;
    background: transparent;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover {
    transform: scale(1.1);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card.flipped:hover {
    transform: scale(1.1) rotateY(180deg);
}

.card.matched {
    pointer-events: none;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-front {
    background: #ffff7e;
    color: #800000;
    font-size: 3.5em;
    box-shadow: 0 6px 0 #ffb300;
    border: 5px solid #000000;
}

.card-front img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.card-back {
    background: #800000;
    color: #eae5e5;
    transform: rotateY(180deg);
    box-shadow: 0 6px 0 #ffb300;
    border: 5px solid #000000;
    overflow: hidden;
    font-size: 2.5em;;
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-back span {
    position: absolute;
    bottom: 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.65);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.5em;
    font-weight: bold;
}

.controls {
    text-align: center;
}

.btn {
    font-family: 'Knightkrawler';
    text-decoration: none;
    font-weight: bold;
    background: #ffb300;
    color: rgb(0, 0, 0);
    border: 5px solid rgb(0, 0, 0);
    padding: 15px 40px;
    border-radius: 20px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 5px 0 #800000;
    transition: all 0.3s ease;
    animation: bounce 0.5s;
    transform: translateY(25px);
}

.btn:hover {
    background: #ffff7e;
    color: #000000;
    box-shadow: 0 9px 0 #800000;
    transform: translateY(22px);
}

.btn:active {
    transform: translateX(2px);
    box-shadow: 0 3px 0 #ffb300
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffb300;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 0 #000000;
    border: 6px solid #000000;
    animation: bounce 0.5s;
}

@keyframes bounce {
    0% {
        transform: scale(0.5);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.modal-content h2 {
    color: #800000;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.modal-content p {
    color: #800000;
    font-size: 1.4em;
    margin-bottom: 30px;
    font-weight: bold;

}

@media (max-width: 768px) {
    .game-board {
        grid-template-columns: repeat(3, 1fr);
    }

    /* h1 {
        font-size: 2em;
    }*/

}

@media (max-width: 480px) {
    .game-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    h1 {
        font-size: 1.6em;
    }

    .card-front {
        font-size: 2.5em;

    }

}

.versions {
    margin-top: 20px;
    color: #959595  ;
    font-weight: bold;
    width: 50%;
    transform: translateX(-15px);
    transform:translateY(15px);
}

.Bugs{
    text-align: center;
    color: #959595;
}
