@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --font2family: "Bruno Ace", cursive;
}


/* ---------- KATEGÓRIA SZINEK -------------- */
.color-L { color: rgb(255, 154, 162) !important; }
.color-M { color: rgb(135, 191, 242) !important; }
.color-B { color: rgb(144, 238, 144) !important; }
.color-T { color: rgb(255, 218, 185) !important; }
.color-Q { color: rgb(221, 190, 255) !important; }
.bg-color-L { background-color: rgb(255, 154, 162) !important; }
.bg-color-M { background-color: rgb(135, 191, 242) !important; }
.bg-color-B { background-color: rgb(144, 238, 144) !important; }
.bg-color-T { background-color: rgb(255, 218, 185) !important; }
.bg-color-Q { background-color: rgb(221, 190, 255) !important; }

h2 {
    color: #460383;
}

.clear {
    clear: both;
}


/* Wrapper ensures footer positioning */
body, html {
    margin: 0;
    padding: 0;
    height: 100%; /* Allows flexbox alignment to function properly */
}

body {
    background-color: #f7f8fa;
    color: #333;
    line-height: 1.6;
}

#bodyDiv {
    background-color: #ffffff;
    background-image: url('../images/szines-kep.jpg');
    background-size: cover; /* A kép arányosan nagyítva kitölti a területet */
    background-repeat: no-repeat; /* Ne ismétlődjön a kép */
    background-position: left calc(25vw) center; /* A kép bal oldala 20%-kal beljebb indul, középre igazítva */
    background-attachment: fixed; /* A háttér nem mozdul el görgetéskor */

}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the wrapper takes up the full height */
}

header {
    flex-shrink: 0; /* Keeps the header fixed at the top */
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    /*background: linear-gradient(90deg, rgba(253, 197, 202, 0.7), rgba(253, 222, 194, 0.7), rgba(207, 251, 188, 0.7));*/
    background-color: rgba(255, 255, 255, 0.15);
}
.header-container_temp {
    background-image: url('../images/szines-kep.jpg'); /* Helyezd el a háttérképet */
    background-size: 100% auto; /* Szélességben kitölt, magasságot arányosan igazít */
    background-position: center 25%; /* A kép tetejének 25%-a a gomb közepén legyen */
}
/* Színátmenet réteg a háttérkép fölött */
.header-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 154, 162, 0.5), rgba(255, 218, 185, 0.1)); /* Átlátszó színátmenet */
    opacity: 0.7; /* Az átlátszóság mértéke */
    z-index: 1; /* A színátmenet a háttér fölött, de a szöveg alatt helyezkedik el */
    pointer-events: none; /* Ne zavarja a kattintást */
}

footer {
    flex-shrink: 0; /* Ensures the footer stays at the bottom */
    background: linear-gradient(90deg, rgba(255, 154, 162, 0.4), rgba(255, 218, 185, 0.4), rgba(181, 231, 160, 0.4));

    color: #fff;
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}
footer_temp {
    background-image: url('../images/szines-kep.jpg'); /* Helyezd el a háttérképet */
    background-size: 100% auto; /* Szélességben kitölt, magasságot arányosan igazít */
    background-position: center 75%; /* A kép tetejének 25%-a a gomb közepén legyen */
}
footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(110, 4, 13, 1), rgba(67, 3, 12, 0.6)); /* Átlátszó színátmenet */
    opacity: .9; /* Az átlátszóság mértéke */
    z-index: 1; /* A színátmenet a háttér fölött, de a szöveg alatt helyezkedik el */
    pointer-events: none; /* Ne zavarja a kattintást */
}

footer > div {
    position: relative;
    z-index: 100;
}

footer .support-logo {
    height: 100px;
    float: left;
}


main {
    flex: 1; /* Pushes the footer down if content is insufficient */
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
}

.container {
    margin: 0 auto;
    width: 100%;
    display: block;
}

.game-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

.logo_img {
    height: 64px;
    margin: -2px;
    background-color: white;
    padding: 10px;
    position: relative;
    z-index: 200;
}
.logo-img-box {
    margin-left: 24px;
}

.btn {
    padding: 10px 15px;
    border: 1px solid gray;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #033460;
    text-decoration: none;
    background-color: transparent;
}
.btn:hover {
    background-color: lightcyan;
}

.back-menu {
    background-color: #ff6b6b;
}

.btn-home {
    background-color: #ffffff;
}


.sidebar {
    width: 250px;
    background: #ffecf0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


.page-info {
    font-size: 12px;
    color: #999;
}

.content {
    width: 70%;
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #ffecf0, #d7e8ff);
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.text-box {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 200%;
}

.text-box h2 {
    margin-bottom: 12px;
}




/* =============== STORY CARDS =============== */
.card {
    display: flex;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
    gap: 20px;
}


/* Ha csak 1 gyermek van, az legyen 100% */
.card:has(.child):not(:has(.child:nth-child(2))) .child {
    flex: 0 0 100%; /* Az egyetlen gyermek szélessége */
}

.card img {
    width: 35%;
    object-fit: cover;
}

.card-content {
    padding: 16px;
    flex: 1;
}
.card:has(:nth-child(2)) .child:nth-child(2) {
    flex: 0 0 65%; /* A második gyermek szélessége */
}

.card-title {
    font-size: 1.8em;
    font-weight: 400;
    margin: 0 0 8px;
    color: #333;
}

.card-text {
    font-size: 1.1em;
    font-weight: 400;
    color: #555;
    line-height: 2;
}

