:root {
    --header-height: 14vh;
    --main-width: 100vw;
    --fortune-bg-color: rgb(200, 23, 23);
    --fortune-text-color: #ffbf00;
}

/* Base and Layout */
body {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 0;
    background-color: #000000;
}

.main-content {
    max-width: var(--main-width);
    margin: 0 auto;
}

/* Header & Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    font-size: 1.3em;
    padding: 1% 2%;
    color: #b38c34;
    position: relative;
    z-index: 20;
}

.logo img {
    height: clamp(50px, 20vh, 100px);
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2vw;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #f9edb9;
    text-decoration: none;
    padding: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #d9b161;
    color: #100f0b;
}

/* Dropdown alapok */
.nav-links>li {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #444;

    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 180px;
    display: none;
    z-index: 999;
}

.submenu li a {
    display: block;
    padding: 12px;
    color: #fbf3cd;
    text-decoration: none;
}

.submenu li a:hover {
    background: #555;
}

/* Hover (desktop) */
.nav-links>li:hover>.submenu,
.nav-links>li:focus-within>.submenu {
    display: block;
}

/* Mobil open osztály */
.has-sub.open>.submenu {
    display: block !important;
    position: static;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 22px;
}

.hamburger .bar {
    width: 100%;
    height: 2px;
    background-color: #fcea9d;
    transition: all 0.3s ease-in-out;
    border: 2px solid #6f6744;
}

/* Hide the checkbox */
#menu-toggle {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #444;
        border: 2px solid goldenrod;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .submenu li {
        background: #555;
        border-bottom: 2px solid goldenrod;
    }

    #menu-toggle:checked~.nav-links {
        display: flex;
    }

    /* Hamburger animation */
    #menu-toggle:checked~.hamburger .bar:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.hamburger .bar:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    #menu-toggle:checked~.hamburger .bar:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

/* Main wrapper */
.main-wrapper {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: auto;
    background-color: rgba(56, 55, 55, 0.5);
    border-radius: 15px;
    padding: 1%;
}

/* Slideshow Section */
.slideshow-container {
    position: relative;
    max-width: var(--main-width);
    margin: 20px auto;
    height: 300px;
    overflow: hidden;
}

.mySlides {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
    background-color: #352c46;
}

.mySlides.active {
    transform: translateX(0);
}

.mySlides.prev-active {
    transform: translateX(-100%);
}

.mySlides.next-active {
    transform: translateX(100%);
}

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dots */
.dot-container {
    text-align: center;
    padding-top: 10px;
    position: absolute;
    bottom: 10px;
    width: 100%;
    z-index: 10;
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #717171;
}

/* Prev/Next Buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    background-color: rgba(0, 0, 0, 0.5);
    user-select: none;
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Video Section */
.video-section {
    padding: 20px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: var(--main-width);
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content & Ad Section */
.content-ad-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    justify-content: center;
}

.content-box {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    border: 2px solid rgb(104, 59, 128)
}

.content-box p:first-child {
    font-weight: 700;
}

.content-box p:last-child {
    font-weight: 400;
    font-size: 1rem;
    margin-top: 5px;
}



/* Add the new styles for the image and text containers */
.box-icon {
    width: 150px;
    /* Set a fixed size for the image container */
    height: 150px;
    margin-bottom: 20px;
    /* Adds space between the image and the text */
}

.box-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the container */
    border-radius: 60%;
    /* Makes the image circular */
}

/* Fortune Cookie Box */
.fortune-box {
    background-color: #212121;
    color: #fff;
}


/* Horoscope Box */
.horoscope-box {
    background-color: #212121;
    color: #fff;
}

/* REMOVE THIS SECTION
.horoscope-box::before {
    background-image: url("./images/moon.png");
}
*/

.ad-box {
    flex: 1;
    min-width: 250px;
    background-color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .content-ad-section {
        flex-direction: column;
        align-items: center;
    }

    .content-box,
    .ad-box {
        width: 100%;
        max-width: 400px;
    }
}

/* Other Boxes */
.fortune-teller-box {
    background-color: #2e8b57;
    color: #ffc000;
}

.ghost-detector-box {
    background-color: #ff8c00;
    color: #000000;
}

.numerology-box {
    background-color: #4169e1;
    color: #7cfc00;
}

/* Info Strip Section */
.info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #b38c34;
    border-radius: 8px;
    align-items: stretch;
}

/* .info-box-left {
            flex: 1;
            min-height: 150px;
            background-color: #6c27a5;
            background-size: cover;
            border-radius: 6px;
} */

.info-box-left img,
.info-box-left video {
    width: 21vw;
    height: 250px;
    /* pick a size you like */
    object-fit: contain;
    border-radius: 6px;
}




.info-box-right {
    flex: 2;
    padding: 20px;
    border-radius: 6px;
    background-color: #eee;
}




/* chatgpt */

/* === EGYSÉGES KÉPFORMÁZÁS MINDEN SZEKCIÓHOZ === */
section[id] img {
    width: 100%;
    max-width: 250px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    margin: 0 auto 15px auto;
    /* középre igazítva, alul kis térköz */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Ha néhol túl kicsi vagy nagy, így finomíthatod */
#jsquis img {
    max-width: 35vw;
}

#treasure-hunt img {
    max-width: 230px;
}

#numerology img {
    max-width: 220px;
}


/* Extra Responsiveness */
@media (max-width: 600px) {
    .content-ad-section {
        flex-direction: column;
    }

    .info-strip {
        flex-direction: column;
    }

    .slideshow-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Mobil dropdown submenu teljes szélességben */
@media (max-width: 768px) {
    .nav-links .submenu {
        position: static;
        width: 100%;
        background: #333;
        border-top: 1px solid #555;
    }

    .nav-links .submenu li a {
        padding: 14px 10px;
        text-align: left;
        border: 2px solid goldenrod;
        border-bottom: 1px solid #444;
    }

    .nav-links .submenu li:last-child a {
        border-bottom: none;
    }

    @media (max-width: 768px) {
        .main-wrapper {
            width: 100% !important;
            border-radius: 0;
        }

        .prev,
        .next {
            padding: 0 11px !important;
        }
    }
}