* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.screen {
    display: none;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.screen.active {
    display: block;
}

h1,
h2,
h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

img.game-logo {
    display: block !important;
    margin: 0 auto 20px auto !important;
    max-width: 150px !important;
    max-height: 100px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.start-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.player-name-input {
    padding: 15px !important;
    font-size: 18px !important;
    font-weight: bold;
    border: 3px solid #ddd !important;
    margin-bottom: 15px !important;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.primary-btn,
.dice-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.primary-btn:hover,
.dice-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:disabled,
.dice-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Game Board Styles */
.game-header {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.current-player {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #667eea;
}

.game-board {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 400px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #667eea;
}

.board-space {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
    min-height: 80px;
    position: relative;
    font-size: 11px;
    text-align: center;
    padding: 5px;
    line-height: 1.2;
    overflow: visible;
}

.board-space.start {
    background: #28a745;
    color: white;
}

.board-space.finish {
    background: #dc3545;
    color: white;
}

.player-token {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.player-token:hover {
    transform: scale(1.2);
    z-index: 20;
}

.players-info {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.player-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 8px;
}

.player-info.current {
    background: #667eea;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.theme-image {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.modal-content h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.correct-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
}

.incorrect-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s;
}

.correct-btn:hover,
.incorrect-btn:hover {
    transform: translateY(-2px);
}

#dice-result {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .screen {
        padding: 10px;
    }

    .start-form {
        padding: 20px;
    }

    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
        padding: 15px;
    }

    .board-space {
        min-height: 70px;
        font-size: 10px;
        padding: 5px;
        word-wrap: break-word;
        hyphens: auto;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 2em;
    }

    .theme-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .player-token {
        width: 14px;
        height: 14px;
        font-size: 7px;
    }
}

@media (max-width: 480px) {
    .game-board {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
        padding: 10px;
    }

    .board-space {
        min-height: 60px;
        font-size: 9px;
        padding: 4px;
    }

    .player-token {
        width: 12px;
        height: 12px;
        font-size: 6px;
    }
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(102, 102, 102, 0.5);
     color: red;
    font-size: 14px;
    font-weight: bold;
    margin-top: 40px;
}