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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5)), url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 140px;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.language-dropdown:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.language-dropdown option {
    background: #667eea;
    color: white;
    padding: 10px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.markers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.marker-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #667eea;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.marker-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.marker-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
}

.marker-btn:hover::before {
    left: 100%;
}

.marker-btn.active {
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.05);
}

.content-display {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-message {
    text-align: center;
    color: #666;
}

.welcome-message h2 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-item {
    width: 100%;
    max-width: 100%;
}

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

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

.content-item audio {
    width: 100%;
    margin: 15px 0;
}

.content-item h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.content-item p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.content-item .external-link {
    display: inline-block;
    background: linear-gradient(145deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.content-item .external-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.content-item .back-btn {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.content-item .back-btn:hover {
    background: #667eea;
    color: white;
}

/* Text file content styling */
.text-content {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.text-content h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.text-file-content {
    line-height: 1.8;
    color: #555;
}

.text-file-content p {
    margin-bottom: 10px;
}

.text-error {
    color: #dc3545;
    font-style: italic;
}

.loading {
    color: #6c757d;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.9;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.language-switcher {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .markers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .marker-btn {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .content-display {
        padding: 20px;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .markers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .marker-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
