/**
 * Ordvis.no Stylesheet
 * Version: v1.8.0
 */

body {
    background: #f5f5dc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.word-button {
    height: 120px;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0;
    border: 3px dashed #ccc;
    background: #f8f9fa;
    transition: all 0.3s;
}

.word-button:hover {
    border-color: #667eea;
    background: #e7f1ff;
}

.word-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.word-button.selected {
    border-style: solid;
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.icon-item {
    text-align: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-5px);
}

.icon-item i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 10px;
}

.icon-item .word {
    font-size: 0.9rem;
    font-weight: 600;
}

.category-item {
    background: #f0f4ff;
}

.category-item:hover {
    background: #e0e8ff;
}

.back-item {
    background: #fff3e0;
    border-color: #ff9800;
}

.back-item:hover {
    background: #ffe0b2;
    border-color: #f57c00;
}

.result-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    display: none;
}

.result-sentence {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.play-btn {
    display: none;
    margin: 20px auto;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}