@font-face {
    font-family: "ChiptuneValentine";
    src: url('../fonts/ChiptuneValentineRegular-p7aRr.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    text-align: center;
    font-family: 'ChiptuneValentine', sans-serif;
    background-color: #f4dfea;
    overflow: hidden;
    min-height: 100vh;
    overscroll-behavior: none;
}

h1 {
    font-size: 3em;
    color: #f04f4f;
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 30px;
}

p {
    font-size: 1.7em;
    color: #ec5656; 
    margin-top: 40px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}


.heart {
    position: absolute;
    color: #ff4d94;
    font-size: 20px;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    background-color: #fce4ec;
    border: 2px solid #ec6b6b;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px rgba(255, 128, 171, 0.3);
}

.cell:hover {
    background-color: #f8e1e7;
    box-shadow: 0px 6px 8px rgba(255, 128, 171, 0.5);
}


.cell img {
    width: 100%; 
    height: auto;
    display: block;
    margin: auto;
}

#status {
    font-size: 1.5em;
    margin-top: 25px;
    font-weight: bold;
}

#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

button {
    font-family: 'ChiptuneValentine', sans-serif;
    padding: 10px 20px;
    font-size: 1.7em;
    cursor: pointer;
    background-color: #f04f4f;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

button:hover {
    background-color: #ff1a75;
}

#reset {
    display: none;
}

#win-button {
    display: none;
}

@media only screen and (max-width: 768px) {
    html, body {
        overflow: hidden;
        position: fixed; /* Prevents any scrolling */
        height: 100vh;
        width: 100vw;
        margin: 0;
        padding: 0;
        touch-action: none; /* Stops touch-based scrolling */
    }
}

