html {
    scroll-padding-top: 1.7rem;
}

body {
    font-family: 'Nunito', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #121212;
    color: #f5f0e6;
    padding-top: 50px;
}

.custom-navbar {
    background-color: #1e1e1e;
}

.custom-card {
    background-color: #1f1f1f;
    color: #f3e8dc;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

div.col-md-4 .custom-card:hover {
    transform: translateY(-0.8rem);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.card img {
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.hero {
    height: 100vh;
    min-height: 600px;
    background: url("img/kesz.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.game-section {
    background: linear-gradient(135deg, #ffb347, #ff6b6b);
    color: white;
    border-radius: 20px;
}

.toggle-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-left: 15px;
    cursor: pointer;
}

footer {
    background: #000;
    margin-bottom: 0;
}

section.py-5 {
    padding-bottom: 0 !important;
}

#jatek {
    margin-bottom: 3rem;
}

body.light-mode {
    background-color: #f3f5e8;
    color: #212529;
}

body.light-mode .custom-navbar {
    background-color: #e2e5cf;
}

body.light-mode .navbar-brand,
body.light-mode .nav-link {
    color: #212529 !important;
}

body.light-mode .custom-card {
    background-color: #ffffff;
    color: #212529;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

body.light-mode .game-section {
    background: linear-gradient(135deg, #ffc371, #ff5f6d);
    color: #212529;
}

body.light-mode .toggle-btn {
    background: #ddd;
    color: #212529;
}

body.light-mode footer {
    background: #dee0d2;
}

body.light-mode .modal-content {
    background-color: #e2e3e4;
    color: #212529;
}

body .modal-content {
    background-color: #1d1f20;
    color: #f3e8dc;
}

.btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23%46%46%46%44%44%30'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

body.light-mode .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='110000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.col-md-4 .card.custom-card:hover {
    cursor: pointer;
}
footer p {
    color: #d1c8bc;
}
body.light-mode footer p {
    color: #212529;
}



.pin {
    width: 22px;
    height: 22px;
    background-color: red;
    border-radius: 50%;
    border: 3px solid white;
    position: absolute;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.pin:hover {
    transform: translate(-50%, -50%) scale(1.2);
}
.infobox {
    position: absolute;
    padding: 10px 2px;
    transform: translate(-50%, -110%);
    display: none;
    min-width: 150px;
    z-index: 20;
}
.infobox button {
    margin-top: 5px;
}

button.navbar-toggler {
    background-color: #363434 !important;
}

body.light-mode button.navbar-toggler {
    background-color: unset !important;
}

#gamePage
{
    border: 2px solid black;
    position: relative;
    width: 50%;
    height: 50vh;
    margin: auto;
}
    #gamePage canvas
    {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

.game-section .buttons
{
    padding: 1rem;
}

.lenyil {
    width: 30px;
    transition: transform 0.5s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .lenyil {
    transform: rotate(-180deg);
}

#lenyildiv {
    width: 30px;
}

#lenyildiv a {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.p-4 {
    align-items: center;
}

body.light-mode #collapseExample .card-body,
body.light-mode #collapseExample1 .card-body {
    background-color: unset;
    
}

#collapseExample .card-body,
#collapseExample1 .card-body {
    padding: var(--bs-card-spacer-y) 0px !important;
    border: none !important;
    border-top: 1.5px solid #ff1500 !important;
    border-radius: unset !important;
    background-color: #1f1f1f;
}

#gamePage
{
    border: 2px solid black;
    position: relative;
    width: 50%;
    height: 50vh;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
}
    #gamePage canvas
    {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

.game-section .buttons
{
    padding: 1rem;
}

#purchase{
    visibility: hidden;
}

#tovabbilatvanyossag {
    text-decoration: none;
    font-weight: bold;
    color:#e2aa32;
}
#tovabbilatvanyossag[aria-expanded=true] #show{
    font-size: 0px;
}
#tovabbilatvanyossag[aria-expanded=false] #noshow{
    font-size: 0px;
}


@media (max-width: 991px) and (min-width: 576px) {
    #kultura,
    #recon {
        flex-direction: column !important;
    }

    #kultura .col-md-8,
    #recon .col-md-8 {
        order: 2;
        margin-top: 1.5rem;
    }

    #kultura .col-md-4,
    #recon .col-md-4 {
        order: 1;
        min-width: 440px;
        max-height: 380px;
        object-fit: cover;
        object-position: center;
    }

    button#themetoggle {
        margin-left: 0px !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    #szoveg1 div.row div,
    #szoveg2 div.row div {
        width: unset;
    }
}

@media (max-width: 991px) {
    #themeToggle {
        margin-left: 0px;
    }
}


