.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.dice-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.die-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.die {
    width: 80px;
    height: 80px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0; /* Remove padding since we're using images */
}

.die-face {
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default */
    transition: transform 0.05s ease-in-out;
}

.die.held {
    border-color: #ffd700;
    border-width: 3px;
    background-color: #fffae6;
}

.held-label {
    display: none;
    color: #ffd700;
    font-weight: bold;
    font-size: 14px;
}

.die.held + .held-label {
    display: block;
}

.scorecard {
    margin: 20px auto;
    max-width: 800px;
    border: 2px solid #333;
    padding: 20px;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.scorecard::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background-image: url('images/logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.scorecard h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.scorecard-grid {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr;
    gap: 2px;
    border: 1px solid #333;
    position: relative;
    z-index: 1;
}

.section-header {
    background-color: #f0f0f0;
    padding: 8px;
    font-weight: bold;
    text-align: center;
    border: 1px solid #333;
}

.score-label {
    padding: 8px;
    border: 1px solid #333;
    font-weight: bold;
}

.score-desc {
    padding: 8px;
    border: 1px solid #333;
    font-size: 0.8em;
    text-align: center;
}

.score-cell {
    padding: 8px;
    border: 1px solid #333;
    text-align: center;
}

.score-btn {
    width: 100%;
    background: #4CAF50;  /* Green background */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px 12px;
    color: white;
    font-weight: bold;
}

.score-btn:hover {
    background: #45a049;
}

.score-btn:disabled {
    background: none;
    color: #333;
    cursor: not-allowed;
    padding: 4px;
}

.claim-text {
    display: inline;
}

.score {
    display: none;
}

/* When button is disabled, hide claim text and show score */
.score-btn:disabled .claim-text {
    display: none;
}

.score-btn:disabled .score {
    display: inline;
}

/* Style for totals and bonus rows */
.score-label:has(+ .score-desc:empty) {
    background-color: #f0f0f0;
}

.score-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.dialog-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.dialog-buttons .score-it {
    background-color: #2a9d8f;
    color: white;
}

.dialog-buttons .go-back {
    background-color: #e76f51;
    color: white;
}

.dialog-buttons button:hover {
    opacity: 0.9;
}

.dialog-content h2 {
    color: #2a9d8f;
    margin-bottom: 15px;
}

.dialog-buttons .play-again {
    background-color: #2a9d8f;
    color: white;
}

.dialog-buttons .end-game {
    background-color: #e76f51;
    color: white;
}

/* Add a subtle "shake" effect during roll */
.die.rolling {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(1px, 1px) rotate(1deg); }
    50% { transform: translate(-1px, -1px) rotate(-1deg); }
    75% { transform: translate(1px, -1px) rotate(1deg); }
}

.score-label-die {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Style the header logo */
.game-header {
    margin-bottom: 20px;
    text-align: center;
}

.logo {
    max-width: 300px;
    height: auto;
}

.dialog-logo {
    width: 200px;
    height: auto;
    margin-bottom: 15px;
}

/* Add media query for mobile devices */
@media screen and (max-width: 600px) {
    .die {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }

    .dice-container {
        gap: 5px;  /* Reduce gap between dice on mobile */
    }

    .held-label {
        font-size: 12px;  /* Slightly smaller "held" text */
    }
} 