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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.top-nav {
    text-align: center;
    margin-bottom: 20px;
}

.home-button {
    display: inline-block;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border: 2px solid transparent;
}

.home-button:hover {
    background: linear-gradient(135deg, #6bb6ff 0%, #4a90e2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    border-color: #6bb6ff;
}

.home-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 2px solid #4a90e2;
    box-shadow: 0 8px 32px rgba(74, 144, 226, 0.3);
}

header h1 {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    font-style: italic;
}

.intro {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #4a90e2;
}

.intro p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.signature {
    font-weight: bold;
    color: #4a90e2;
    text-align: right;
    font-style: italic;
}

.search-container {
    margin-bottom: 30px;
    text-align: center;
}

#searchInput {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #00ff88;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
}

#searchInput::placeholder {
    color: #888;
}

.search-hint {
    margin-top: 10px;
    color: #b0b0b0;
    font-style: italic;
    text-align: center;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    justify-items: center;
}

.country-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

.country-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
}

.country-card {
    display: none;
}

.country-card.visible {
    display: block;
}

.country-number {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.country-name {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 3px;
}

.country-name-de {
    font-size: 0.95rem;
    color: #b0b0b0;
    font-style: italic;
}

.phonetic-section, .phonetic-section h2 {
    color: #4a90e2;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.phonetic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    justify-items: center;
}

.phonetic-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.phonetic-item:hover {
    border-color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

.phonetic-letter {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.phonetic-word {
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .home-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .countries-grid {
        grid-template-columns: 1fr;
    }
    
    .phonetic-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6bb6ff;
}
