@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Cinzel:wght@400;600;700&display=swap');

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

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
/* Modal animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-fade-in {
    animation: modalFadeIn 0.3s ease-out;
}

/* Standard Array Modal Styles */
.standard-array-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.standard-array-content {
    background: #2d3748;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #4a5568;
}

.standard-array-score {
    background: #4a5568;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.standard-array-score.assigned {
    background: #667eea;
    color: white;
}
/* Standard array modal styling */
.standard-array-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.standard-array-content {
    background: #2d3748;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #4a5568;
}

.standard-array-score {
    background: #4a5568;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.standard-array-score.assigned {
    background: #667eea;
    color: white;
}

.standard-array-select {
    transition: all 0.2s ease;
}
.standard-array-select:focus {
    outline: none;
    ring: 2px;
    ring-color: #667eea;
}

.used-score {
    background-color: #4a5568;
    color: #a0aec0;
    cursor: not-allowed;
}

.used-score:hover {
    background-color: #4a5568;
}
/* Dropdown scrollbar styling */
select {
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #2d3748;
}

select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: #2d3748;
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

select::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Character sheet styling */
.character-sheet {
    background: linear-gradient(145deg, #2d3748 0%, #4a5568 100%);
    border: 2px solid #4a5568;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* Responsive text sizes */
@media (max-width: 640px) {
    .responsive-text {
        font-size: 0.875rem;
    }
}

/* Dice rolling animation */
.dice-roll {
    animation: diceRoll 0.5s ease-out;
}

@keyframes diceRoll {
    0% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0) rotate(180deg); }
    75% { transform: translateY(-10px) rotate(270deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
