:root {
    --primary-color: #1a5f7a;
    --secondary-color: #86e5ff;
    --background-color: #eaf6fb;
    --text-color: #222;
    --correct-color: #6aaa64;
    --present-color: #c9b458;
    --absent-color: #787c7e;
    --tile-border: #d3d6da;
    --tile-shadow: 0 2px 8px rgba(30, 60, 90, 0.08);
    --keyboard-bg: #d3d6da;
    --keyboard-shadow: 0 2px 4px rgba(30, 60, 90, 0.10);
    --keyboard-active: #b4b8bb;
    --lang-btn-bg: #f5faff;
    --lang-btn-active: #1a5f7a;
    --lang-btn-hover: #b4e0f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: linear-gradient(135deg, #eaf6fb 0%, #cbe7f6 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.container {
    max-width: 600px;
    width: 95vw;
    padding: 2rem 1rem;
    background: rgba(255,255,255,0.95);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(30, 60, 90, 0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 6rem auto 0 auto;
}

header {
    text-align: center;
    margin-bottom: 1.5rem;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.language-selector button {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--lang-btn-bg);
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(30, 60, 90, 0.07);
    transition: background 0.2s, color 0.2s;
}
.language-selector button.active {
    background: var(--lang-btn-active);
    color: #fff;
}
.language-selector button:hover {
    background: var(--lang-btn-hover);
}

.game-info {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.game-board {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 0.6rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.tile {
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2.5px solid var(--tile-border);
    border-radius: 10px;
    background: #fff;
    color: var(--text-color);
    box-shadow: var(--tile-shadow);
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s, border 0.3s;
    user-select: none;
}

.tile.correct {
    background-color: var(--correct-color);
    color: #fff;
    border-color: var(--correct-color);
}
.tile.present {
    background-color: var(--present-color);
    color: #fff;
    border-color: var(--present-color);
}
.tile.absent {
    background-color: var(--absent-color);
    color: #fff;
    border-color: var(--absent-color);
}

/* Keyboard styles */
.keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.keyboard-row {
    display: flex;
    gap: 0.4rem;
}

.key {
    min-width: 44px;
    height: 54px;
    background: var(--keyboard-bg);
    border: none;
    border-radius: 7px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: var(--keyboard-shadow);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-bottom: 2px;
    outline: none;
    position: relative;
}
.key:active {
    background: var(--keyboard-active);
    box-shadow: 0 1px 2px rgba(30, 60, 90, 0.10);
}
.key.correct {
    background-color: var(--correct-color);
    color: #fff;
}
.key.present {
    background-color: var(--present-color);
    color: #fff;
}
.key.absent {
    background-color: var(--absent-color);
    color: #fff;
}

.key.wide {
    min-width: 70px;
}

.message {
    text-align: center;
    margin-bottom: 1rem;
    min-height: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

#restart {
    display: block;
    margin: 0 auto;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(30, 60, 90, 0.10);
    transition: background 0.3s;
}
#restart:hover {
    background-color: var(--secondary-color);
}

.hidden {
    display: none;
}

.error-tile {
    background-color: #e53935 !important;
    color: #fff !important;
    border-color: #b71c1c !important;
    animation: shake 0.3s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@media (max-width: 900px) {
    .container {
        max-width: 98vw;
        padding: 0.5rem;
    }
    .game-board {
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    .row {
        gap: 0.3rem;
    }
    .tile {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    .key {
        min-width: 28px;
        height: 38px;
        font-size: 0.9rem;
    }
    .key.wide {
        min-width: 45px;
    }
    .keyboard {
        gap: 0.2rem;
        margin-bottom: 0.5rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    .language-selector button {
        padding: 0.3rem 0.7rem;
        font-size: 0.9rem;
    }
    #restart {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
    .game-info {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        max-width: 100vw;
        padding: 0.2rem;
    }
    .game-board {
        gap: 0.15rem;
        margin-bottom: 0.5rem;
    }
    .row {
        gap: 0.15rem;
    }
    .tile {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .key {
        min-width: 18px;
        height: 28px;
        font-size: 0.7rem;
    }
    .key.wide {
        min-width: 30px;
    }
    .keyboard {
        gap: 0.1rem;
        margin-bottom: 0.2rem;
    }
    h1 {
        font-size: 1.1rem;
    }
    .language-selector button {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    #restart {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
    .game-info {
        font-size: 0.8rem;
    }
}

/* Remove input-section styles */
.input-section {
    display: none;
}

#submit-guess {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

#submit-guess:hover {
    background-color: var(--secondary-color);
}

.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    z-index: 1000;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.fullscreen-btn svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Fullscreen styles */
:fullscreen .fullscreen-btn svg {
    transform: rotate(180deg);
}

/* Fallback for older browsers */
:-webkit-full-screen .fullscreen-btn svg {
    transform: rotate(180deg);
}

:-moz-full-screen .fullscreen-btn svg {
    transform: rotate(180deg);
}

:-ms-fullscreen .fullscreen-btn svg {
    transform: rotate(180deg);
}

.header-content {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover {
    color: var(--secondary-color);
    background-color: rgba(26, 95, 122, 0.1);
}

.main-nav a:hover::after {
    width: 80%;
}

.main-nav li {
    position: relative;
}

.main-nav li::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.main-nav li:last-child::before {
    display: none;
}

@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .main-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.8rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
    }
    
    .main-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }
    
    .logo-container img {
        width: 64px;
        height: 64px;
    }
}

.main-nav a.active {
    color: var(--secondary-color);
    background-color: rgba(26, 95, 122, 0.1);
}

.main-nav a.active::after {
    width: 80%;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
} 