.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.game-area {
    margin: 20px auto; /* Reduced from 40px */
    background: none; /* Removed green background */
    border: none;
    box-shadow: none;
    padding: 20px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 300px 1fr; /* Three columns layout */
    gap: 20px;
    align-items: start;
}

.left-panel, .right-panel {
    padding: 20px;
}

.coin-wrapper {
    grid-column: 2;
    text-align: center;
}

.coin {
    width: 300px;  /* Increased from 200px */
    height: 300px; /* Increased from 200px */
    margin: 50px auto;
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
    outline: none; /* Remove outline */
    background: transparent; /* Ensure transparent background */
}

.coin:hover {
    transform: scale(1.02);
    /* Remove box-shadow to prevent any visible hover effect */
}

.coin.animation {
    animation: flip-coin 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.heads, .tails {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: bold;
    backface-visibility: hidden;
    border: 12px solid #FFD700;
    font-family: 'Press Start 2P', cursive;
    background-size: 400%;
    background-position: center;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.heads {
    background: radial-gradient(circle at 30% 30%,
        #FFD700,
        #FDB931 20%,
        #F89B31 40%,
        #DAA520 60%,
        #B8860B 80%);
    transform: rotateY(0deg);
    color: #4a3100;
    text-shadow: 
        2px 2px 0px #FFD700,
        -2px -2px 0px #B8860B;
}

.tails {
    background: radial-gradient(circle at 30% 30%,
        #E0E0E0,
        #C0C0C0 20%,
        #A0A0A0 40%,
        #808080 60%,
        #696969 80%);
    transform: rotateY(180deg);
    color: #2a2a2a;
    text-shadow: 
        2px 2px 0px #E0E0E0,
        -2px -2px 0px #696969;
}

.coin::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(5px);
    z-index: -1;
    display: none; /* Remove the white shadow */
}

.flip-button {
    padding: 15px 30px;
    font-size: 14px; /* Changed from 18px */
    font-family: 'Press Start 2P', cursive;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.flip-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.stats-box {
    margin-top: 40px;
    padding: 30px; /* Changed from 20px */
    border-radius: 15px; /* Changed from 10px */
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    grid-column: 3;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    margin-bottom: 20px;
    color: #FFD700;
}

.stat-item {
    margin-bottom: 15px;
}

.stat-label {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #ffffff90;
}

.stat-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: #fff;
}

.control-panel {
    grid-column: 1;
    text-align: right;
}

.reset-button {
    margin-top: 10px;
    padding: 8px 16px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: #ff4444; /* Make reset button always red */
    color: white;
}

.reset-button:hover {
    background-color: #cc0000;
}

@keyframes flip-coin {
    0% { 
        transform: rotateY(0) rotateX(0); 
        animation-timing-function: ease-in;
    }
    35% { 
        transform: rotateY(900deg) rotateX(900deg);
        animation-timing-function: linear;
    }
    100% { 
        transform: rotateY(1800deg) rotateX(1800deg);
        animation-timing-function: ease-out;
    }
}

h1 {
    font-family: 'Press Start 2P', cursive !important;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

/* Content Section Styles */
.content-section {
    background: linear-gradient(135deg, #1a472a, #2a623d);
    margin-top: 40px;
    font-family: 'Roboto', sans-serif;
}

.content-section h2 {
    font-family: 'Press Start 2P', cursive;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 1rem;
}

.content-section ul li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-area {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .control-panel {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
    }

    .coin-wrapper {
        grid-column: 1;
        grid-row: 2;
    }

    .stats-box {
        grid-column: 1;
        grid-row: 3;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .coin {
        width: 250px;
        height: 250px;
    }

    .heads, .tails {
        font-size: 60px;
    }

    .flip-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .content-section {
        margin: 20px;
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .coin {
        width: 200px;
        height: 200px;
    }

    .heads, .tails {
        font-size: 40px; /* Changed from 50px */
    }
}
