@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');

:root {
    --color-medium: #9e4747;
    --color-strong: #722020;
    --color-light: #f2dcdc;
    --text-color: #333;
    --sidebar-width: 250px;
}

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

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-strong);
    background-image: repeating-linear-gradient(
        135deg,
        var(--color-strong) 0px,
        var(--color-strong) 60px,
        #72202099 70px,
        var(--color-medium) 130px
    );
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

.lang-toggle-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-bg {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: transform 0.3s ease;
    z-index: 0;
}

.lang-toggle-container[data-active-lang="hu"] .lang-bg {
    transform: translateX(50px);
}

html[data-initial-lang="hu"] .lang-toggle-container:not([data-active-lang]) .lang-bg {
    transform: translateX(50px);
}

html[data-initial-lang="hu"] .lang-toggle-container:not([data-active-lang]) #lang-hu,
html[data-initial-lang="en"] .lang-toggle-container:not([data-active-lang]) #lang-en {
    transform: scale(1.1);
}

.lang-option {
    cursor: pointer;
    width: 40px;
    height: 34px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.lang-option.active {
    transform: scale(1.1);
}

.flag-icon {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}


.welcome-screen {
    height: 100vh;
    width: 100%;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.scroll-indicator {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3rem;
    animation: jump 2s infinite;
    cursor: pointer;
}

@keyframes jump {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.glassy-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    max-width: 800px;
    line-height: 1.1;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    background-color: transparent;
}

.hero h1 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    display: none;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
    border-radius: 20px;
    color: #ffffff;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.3s, box-shadow 0.3s;
    position: relative;
}

.tile.visible {
    opacity: 1;
    transform: translateY(0);
}

.tile:nth-child(1) { transition-delay: 0.1s; }
.tile:nth-child(2) { transition-delay: 0.2s; }
.tile:nth-child(3) { transition-delay: 0.3s; }
.tile:nth-child(4) { transition-delay: 0.4s; }
.tile:nth-child(5) { transition-delay: 0.5s; }
.tile:nth-child(6) { transition-delay: 0.6s; }

.tile.visible:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.tile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 1rem;
}

.tile i {
    font-size: 2.5rem;
    margin: 0;
}

.tile h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 1rem;
}

.tile-description {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .glassy-text {
        font-size: 2.5rem;
    }
}

.guide-container {
    display: flex;
    min-height: calc(100vh - 70px); 
}

.sidebar {
    width: var(--sidebar-width);
    background-color: #fff;
    border-right: 1px solid #ddd;
    padding: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: #555;
    font-weight: 500;
}

.sidebar a:hover, .sidebar a.active {
    background-color: var(--color-light);
    color: #000;
}

.content {
    flex-grow: 1;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.content h1 {
    margin-bottom: 1.5rem;
    color: var(--color-strong);
    border-bottom: 2px solid var(--color-light);
    padding-bottom: 0.5rem;
}

.content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-medium);
}

.content p {
    margin-bottom: 1rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 70px;
        left : 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 900;
        width: 80%;
        max-width: 300px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }

    .sidebar.open {
        transform: translateX(0);
    }
    
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid white;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.tile.visible:hover::after {
    opacity: 1;
}
