/* Full Screen Layout Adjustments */
body,
html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling for splash screen */
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: block;
    /* Override flex from style.css */
    padding: 0;
}

/* Splash Screen */
.fullscreen-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    text-align: center;
}

.splash-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    color: white;
}

.flags-container {
    display: flex;
    gap: 50px;
}

.flag-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flag-option:hover {
    transform: scale(1.15);
}

.flag-option .fi {
    font-size: 8rem;
    /* Big flags */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.lang-label {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* App Content Full Screen */
#app-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.card-container-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card-container {
    width: 100%;
    max-width: 600px;
    /* Wider cards */
    height: 400px;
    /* Taller cards */
    margin: 0;
}

.flashcard {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.word {
    font-size: 3.5rem;
    /* Larger text */
}

.card-hint {
    margin-top: 20px;
    color: #999;
    font-size: 1rem;
}

header {
    margin-bottom: 20px;
}

.controls {
    margin-top: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
}

.btn {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Header Layout Fixes */
header {
    width: 100%;
    max-width: 800px;
    /* Wider header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Space between language switcher and add button */
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.language-switcher span {
    font-size: 1.8rem !important;
    /* Smaller, cleaner flags */
    margin: 0 !important;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    border-radius: 4px;
}

.language-switcher span:hover {
    transform: scale(1.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background-color: white;
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}