/* Set the CSS variable for viewport height */
:root {
    --vh: 100vh;
}
/* General Styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
    box-sizing: border-box;
}


h1 {
    margin-bottom: 20px;
    font-size: 2em;
    text-align: center;
}

#result {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

#flip-button {
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
}

/* Coin Container */
#coin {
    width: 150px;
    height: 150px;
    perspective: 1000px;
    margin: 20px 0;
}

.coin-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Removed background-color from here */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    /* Removed color from here if you want to set it per side */
    backface-visibility: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Front Side (Yes) */
.heads {
    background-color: green; /* Or use a specific shade */
    color: white; /* Adjust text color if needed */
}

/* Back Side (No) */
.tails {
    background-color: red; /* Or use a specific shade */
    color: white; /* Adjust text color if needed */
    transform: rotateY(180deg);
}

/* Responsive Styles */
@media (max-width: 599px) {
    body {
        padding: 10px 0;
    }

    /* Resize the coin */
    #coin {
        width: 60vw;
        height: 60vw;
        margin-bottom: 15px;
    }

    /* Adjust font sizes */
    h1 {
        font-size: 6vw;
        margin-bottom: 15px;
    }

    #result {
        font-size: 5vw;
        margin-bottom: 15px;
    }

    #flip-button {
        padding: 8px 16px;
        font-size: 4vw;
    }

    .side {
        font-size: 8vw;
    }
}
