/* --- General and Root Variables --- */

:root {
    /* Define colors from the website for easy use */
    --purple: #511866;
    --dark-purple: #3b116b;
    --blue: #007bff;
    --orange: #ff7400;
}

body {
    font-family: 'Comic Relief', 'Henny Penny', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;

    /* background-image: url(./images_coloring/background/bg25down.png); */
    /* background-position:bottom; */
    background-color: #fbcc45;
    background-image: url(./images_coloring/background/bg61.png);
    background-repeat:repeat-x;
    /*background-position: bottom; */
}


/* --- Header & Navigation Styling --- */
header {
    background-color: transparent;
    padding: 0;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0.5rem;
    gap: 1vh
}

.search-bar {
    margin-right: 2rem;
    /* max-width: 200rem; */
    display: flex;
    border: 0.1rem solid #ff7400;
    border-radius: 3.125rem;
    overflow: hidden;
    width: 40vw;
}

.search-bar input {
    border: none;
    padding: 0.625rem 1.25rem;
    flex-grow: 1;
    outline: none;
}

.search-bar button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    cursor: pointer;
}

.social-media-icons {
    display: flex;
    align-items: center;
}

.social-media-icons img {
    height: 1.5rem;
    margin-left: 0.625rem;
}

.luckiest-guy-regular {
    font-family: "Luckiest Guy", cursive;
    font-weight: 100;
    font-style: normal;
}

.henny-penny-regular {
    font-family: "Henny Penny", system-ui;
    font-weight: 400;
    font-style: normal;
}

.comic-relief-regular {
    font-family: "Comic Relief", system-ui;
    font-weight: 400;
    font-style: normal;
}

.comic-relief-bold {
    font-family: "Comic Relief", system-ui;
    font-weight: 700;
    font-style: normal;
}

nav {
    margin: 0;
    padding: 0;
    /* keep your padding for spacing */
    background-color: transparent;
    font-family: 'Henny Penny', 'Courier New', Courier, monospace;
    /* background-image: url(./images_coloring/navbg4.png); */
    /* padding: 0.5rem 2rem; */
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3rem;
}

.nav-links {
    padding-top: 1rem;
    /* adjust until it looks good */
}

nav ul {
    list-style: none;
    padding: 0;
    padding-bottom: 4rem;
    padding-right: 11vw;
    margin: 0;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    /* This aligns the logo and links to the left */
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: var(--purple);
    font-weight: bold;
    padding: 0;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--orange);
}

.nav-links li a {
    text-decoration: none;
    color: var(--purple);
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    padding-bottom: 14vh;
    display: block;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--orange);
}

.logo {
    align-self: flex-start;
    /* moves only the logo up */
    margin-top: -2px;
    /* fine-tune the amount */
}

.logo-item img {
    max-width: 10%;
    height: auto;
    min-height: 9rem;
}

.logo img {
    /* margin-right:3rem; */
    height: 160px;
    /* adjust to match the original site */
    width: auto;
    display: block;
}

/* --- Main Content Sections --- */


.hero {
    margin-top: 0;
}

.hero-section {
    color: white;
    text-align: center;
    padding: 0;
    /* min-height: 31.25rem; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: xx-large;
}

.hero-content h1 {
    font-family: 'Henny Penny', Arial,
        sans-serif;
    font-size: 2.5em;
    font-weight: 1000;
    color: #fff;
    margin-bottom: 0.3em;
    line-height: 1.3;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); */
    background: linear-gradient(90deg, #f81e02, #fbbd03, #e8f404, #05f6f2, rgb(4, 186, 92), #09e6f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* color: red;
        /* your fill color
        -webkit-text-stroke: 0.5px rgb(189, 163, 163);
        /* outline thickness + color 
        text-stroke: 0.5px rgb(254, 252, 252);
        /* fallback */
}


.hero-content h2 {
    background: linear-gradient(90deg, red, orange, yellow, orange, red, yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3em;
    font-weight: normal;
    margin-top: 0;
    /* remove top margin */
    line-height: 0.8;
}

.hero-content p {
    font-size: 1.1em;
    font-weight: normal;
}


main {
    padding: 0;
    /* 20px 50px converted to rem */
    /* background-color: #d16b18; */
}

.adsense-block {
    color: #ddd;
    background-color: #5a2580;
    border: 0.0625rem dashed #5d4e6f;
    border-radius: 15px;
    text-align: center;
    padding: 1rem;
    /* 20px converted to rem */
    margin-bottom: 1.25rem;
    /* 20px converted to rem */
   
    /* 1px converted to rem */
    max-width: 75%;
    margin: 0 auto 4rem auto;
    max-width: 728px;
    /* typical banner width, change if you want */
    width: 100%;
    /* responsive scaling */
     margin: 1rem auto; 
    /* centered with space around */
    text-align: center;
    /* centers the content inside */
    padding: 0.5rem;
    /* optional padding */
}

/* The image inside the box */
.adsense-block img {
    max-width: 100%;
    /* never bigger than its box */
    height: auto;
    /* keeps aspect ratio */
    max-height: 250px;
    /* keeps it from becoming too tall */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}



.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    /* 300px converted to rem */
    gap: 1.25rem;
    /* 20px converted to rem */
    margin-bottom: 2.5rem;
    /* 40px converted to rem */
    max-width: 75%;
    margin: 0 auto 4rem auto;
}

.card a {

    width: 100%;
    /* engedi a videót kitölteni */

    text-decoration: none;
    color: inherit;
    display: block;
    background-color: #f8f8f8;
    border-radius: 0.625rem;
    /* 10px converted to rem */
    overflow: hidden;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
    /* 4px 6px converted to rem */
    transition: transform 0.3s;
}

.card a:hover {
    transform: translateY(-0.3125rem);
    /* 5px converted to rem */
}

video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 16:9 arány */
    overflow: hidden;
}

.video-wrapper .video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card {
    width: 90%;
    /* fix px helyett % */
    max-width: 700px;
    margin: 1rem auto;
}

.card img {
    width: 100%;
    height: auto;
    border-bottom: 0.0625rem solid #ddd;
    /* 1px converted to rem */
}

.card-info {
    padding: 0.9375rem;
    /* 15px converted to rem */
}

.card-info button {
    background-color: var(--blue);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    /* 10px 20px converted to rem */
    border-radius: 1.25rem;
    /* 20px converted to rem */
    cursor: pointer;
    font-weight: bold;
}

.featured-section h2 {
    text-align: center;
    font-size: 1.5em;
    color: var(--purple);
    margin-bottom: 1.25rem;
    /* 20px converted to rem */
}


/* featured section */
/* General container for sections */
section {
    max-width: 1200px;
    /* keep things readable */
    margin: 0 auto;
    /* center content */
    padding: 0 1rem;
    /* spacing for small screens */
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 1.25rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-item img {
    width: 100%;
    height: auto;
    max-height: 250px;
    /* keeps them smaller */
    object-fit: cover;
    /* trims instead of stretching */
    border-radius: 3rem;
    border: 1px solid #ddd;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.collection-item img {
    width: 100%;
    height: auto;
    max-height: 200px;
    /* keeps them from being huge */
    object-fit: contain;
    border-radius: 3rem;
    border: 1px solid #ddd;
}

.featured-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- Collections & Footer --- */

.collections-wrapper {
    max-width: 75%;
    /* ✅ brings back your old centered 75% width */
    margin: 0 auto;
    /* ✅ centers it */
    padding: 0 1rem;
    /* ✅ some breathing room on small screens */
}


.collections-section {
    width: 100%;
    margin: 0;
    /* cancel out section auto-centering */
    max-width: 100% !important;
    /* force full width */
    background-color: #3b0a73;
    background-image: url(./images_coloring/background/bg42.jfif);
    background-repeat: repeat-x;
    padding: 2rem 0;
    /* optional breathing room */
}
.collections-section h2 {
    text-align: center;
    font-size: 2em;
    color: var(--orange);
    margin-bottom: 1.25rem;
    /* 20px converted to rem */
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* ✅ 6 equal columns */
    gap: 0.5rem;
    /* ✅ small spacing between images */
    text-align: center;
    max-width: 100%;
    /* ✅ let it stretch full width */
    margin: 0 auto;
}



.collection-item a {
    text-decoration: none;
    color: rgb(219, 84, 21);
    display: block;
    font-weight: 800;
    background: #f0f3f3;
    border-radius: 16px;
    gap: 2em;
}

.collection-item img {
    width: 100%;
    height: auto;
    border-radius: 0.625rem;
    /* 10px converted to rem */
    border: 2px solid #6c079f;
    /* 1px converted to rem */
}

.collection-item span {
    display: block;
    margin-top: 0.3125rem;
    /* 5px converted to rem */
    font-weight: bold;
}

/* xxxx */


/* Collection Items */
.collection-item {
    background: #f0f3f3;
    /* give background to the whole card */
    border-radius: 0.5rem;
    /* rounded corners on the whole thing */
    overflow: hidden;
    /* keep image + text aligned inside */
    border: 3px solid #6919c4;
    /* single border around the full card */
    text-align: center;
}

.collection-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    /* remove extra radius, let parent handle it */
    border: none;
    /* remove double border */
    display: block;
}

footer {
    background-color: var(--dark-purple);
    color: white;
    padding: 2.5rem 3.125rem;
    /* 40px 50px converted to rem */
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    /* 200px converted to rem */
    gap: 1.25rem;
    /* 20px converted to rem */
    margin-bottom: 1.25rem;
    /* 20px converted to rem */
}

.footer-column h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0.625rem;
    /* 10px converted to rem */
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: white;
    line-height: 1.5;
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.1);
    /* 1px converted to rem */
    padding-top: 1.25rem;
    /* 20px converted to rem */
}

.footer-logo img {
    height: 10rem;
    /* 40px converted to rem */
}

.footer-social-media img {
    height: 1.5rem;
    /* 24px converted to rem */
    margin-left: 0.625rem;
    /* 10px converted to rem */
}