* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-align: left;
    max-width: 100%;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.header {
    background-color: #e10600;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid #333;
}

.logo {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-title {
    padding: 30px 20px;
    text-align: center;
    font-size: 2.5rem;
    background-color: #fff;
    color: #e10600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e0e0e0;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    grid-template-rows: auto auto;
    gap: 20px;
    padding: 20px;
    flex-grow: 1;
    background-color: #fff;
}

.menu-section {
    grid-column: 1;
    grid-row: 1 / span 2;
    background-color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #e0e0e0;
}

.intro-section {
    grid-column: 2;
    grid-row: 1;
    background-color: #fff;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-title {
    color: #e10600;
    font-size: 1.5rem;
    margin: auto
}

.countdown-section {
    grid-column: 3;
    grid-row: 1 / span 2;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    gap: 15px;
    padding: 15px;
    border-left: 1px solid #e0e0e0;
}

.theme-controls {
    grid-column: 2;
    grid-row: 2;
    background-color: #fff;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.menu-button {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    font-weight: 600;
}

.menu-button:hover {
    background-color: #e10600;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #e10600;
}

.intro,
.countdown,
.audio {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro {
    min-height: 400px;
}

.countdown {
    min-height: 300px;
    border: 1px solid #e0e0e0;
}

.audio {
    max-width: 100%;
    height: auto;
    max-width: 500px;
}

.footer {
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    background-color: #e10600;
    color: white;
    margin-top: auto;
}

#dark-mode-toggle {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#dark-mode-toggle:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* Dark Mode */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .container {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.dark-mode .header,
.dark-mode .footer {
    background-color: #1a1a1a;
    border-color: #333;
}

.dark-mode .main-title {
    background-color: #1a1a1a;
    color: #e10600;
    border-color: #333;
}

.dark-mode .content-grid,
.dark-mode .menu-section,
.dark-mode .intro-section,
.dark-mode .countdown-section,
.dark-mode .theme-controls {
    background-color: #1a1a1a;
    border-color: #333;
}

.dark-mode .menu-button {
    background-color: #333;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .menu-button:hover {
    background-color: #e10600;
    color: white;
}

.dark-mode .intro,
.dark-mode .countdown,
.dark-mode .audio {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .theme-controls {
    background-color: #252525;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Mobil nézet (1 oszlop) */
@media screen and (max-width: 600px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .menu-section {
        flex-direction: column;
        gap: 10px;
    }

    .theme-controls,
    .intro-section,
    .countdown-section {
        grid-column: 1;
    }
}

/* Tablet nézet (2 oszlop) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .menu-section {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .intro-section {
        grid-column: 2;
        grid-row: 1;
    }

    .theme-controls {
        grid-column: 2;
        grid-row: 2;
    }

    .countdown-section {
        grid-column: span 2;
        grid-row: 3;
    }
}

/* Asztali nézet (eredeti 3 oszlop) */
@media screen and (min-width: 1025px) {
    .content-grid {
        grid-template-columns: 250px 1fr 300px;
        grid-template-rows: auto auto;
    }
}


@media screen and (max-width: 600px) {
    .content-grid {
        display: block;
    }

    .menu-section,
    .intro-section,
    .countdown-section,
    .theme-controls {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
    .content-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .menu-section {
        grid-column: span 2;
    }
}

@media screen and (min-width: 1025px) {
    .content-grid {
        display: grid;
        grid-template-columns: 250px 1fr 300px;
        grid-template-rows: auto auto;
        gap: 20px;
    }
}