@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: poppins;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #e3f2fd;
}

.wrapper {
    width: 65vmin;
    height: 70vmin;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border-radius: 10px;
    background: #293447;
}

.game-details {
    color: #b8c6dc;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 20px 27px;
    display: flex;
    justify-content: space-between;
}

.play-board {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template: repeat(30, 1fr) / repeat(30, 1fr);
    background: #212837;
}

.play-board .food {
    background: #ff003d;
    border-radius: 50%;
}

.play-board .head {
    background: #60cbff;
}

.controls {
    display: none;
    justify-content: space-between;
}

.controls i {
    padding: 25px 0;
    color: #b8c6dc;
    text-align: center;
    cursor: pointer;
    font-size: 1.3rem;
    width: calc(100% / 4);
    border-right: 1px solid #171b26;
}

/* Sweet Alert Styling */
.swal-popup {
    width: 90%;
    max-width: 300px;
    padding: 1rem;
    background-color: #293447;
    color: #ffffff;
    border-radius: 8px;
}

/* Title font size and styling */
.swal-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    opacity: 80%;
}

/* Text font size and styling */
.large-emoji {
    font-size: 2.5rem;
    line-height: 1.2;
}

/* Button styles */
.swal-button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: #60cbff;
    color: #ffffff;
    border-radius: 20px;
    border: 1px solid #60cbff;
    transition: background-color .3s ease;
}

/* Button hover effect */
.swal-button:hover {
    background-color: #70c8f5;
}


@media screen and (max-width: 800px) {
    .wrapper {
        width: 90vmin;
        height: 115vmin;
    }

    .game-details {
        font-size: 1rem;
        padding: 15px 27px;
    }

    .controls {
        display: flex;
    }

    .controls i {
        padding: 15px 0;
        font-size: 1rem;
    }
}