/* Last modified: 2025-02-04 */    
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px; 
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5em;
}

/* Room Display */
.room-display {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.room-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.room-number {
    color: white;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.multiplier-display {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.multiplier-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-right: 8px;
}

.multiplier-value {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hex Controls */
.hex-controls {
    margin-bottom: 40px;
}

.hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hex-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.hex-row-middle {
    gap: 40px;
}

.hex-button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hex-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.hex-button:active {
    transform: translateY(-2px) scale(1.02);
}

.hex-button.disabled {
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
    cursor: not-allowed;
    opacity: 0.4;
}

.hex-button.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #ccc 0%, #999 100%);
}

.hex-button .direction-label {
    font-size: 0.6em;
    opacity: 0.8;
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 5px;
}

.hex-button .arrow {
    font-size: 1.8em;
}

.hex-center {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-hex {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* History Section */
.history-section {
    margin-bottom: 30px;
}

.history-section h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.history-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    font-size: 0.9em;
    color: #333;
}

.history-item:last-child {
    margin-bottom: 0;
}

/* Actions */
.actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.action-button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.action-button:active {
    transform: translateY(0);
}

/* Attribution Footer */
.attribution {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
}

.attribution p {
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.attribution a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline;
}

.attribution a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.attribution .cc-icons {
    display: inline-block;
    white-space: nowrap;
    margin-left: 0.3em;
}

.attribution .cc-icon {
    width: 1em;
    height: 1em;
    max-width: 1em;
    max-height: 1em;
    margin-left: 0.2em;
    vertical-align: middle;
    display: inline-block;
}

/* License Section */
.license-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.license-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Author Section */
.author-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
}

.author-image {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Scrollbar styling */
.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .hex-button {
        width: 60px;
        height: 60px;
        font-size: 1.2em;
    }
    
    .center-hex {
        width: 70px;
        height: 70px;
        font-size: 2em;
    }
    
    .hex-row-middle {
        gap: 20px;
    }
    
    .author-image {
        max-width: 150px;
    }
    
    .attribution {
        font-size: 0.75em;
    }
}

@media (max-width: 400px) {
    .attribution {
        font-size: 0.7em;
    }
    
    .attribution .cc-icons {
        display: block;
        margin-left: 0;
        margin-top: 0.3em;
    }
}
