:root {
    --sale-banner-height: 40px;
    --header-height: 60px;
}

/* Base Styles */
html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Lexend', sans-serif;
    color: #000;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal overflow on iOS Chrome */
}


html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent any horizontal scroll */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lexend', sans-serif;
    color: #000;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sale banner sticky at the top */
.sale-banner {
    background-color: #00c3d7;
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-family: 'Lexend', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.sale-banner a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sale-banner a:hover {
    color: #ffeb3b;
}

h2, h3, p {
    margin:0;
    padding:0;
}

.section {
    margin:0;
    padding:0;
}

/* Header below banner, normal scroll, sticky if desired */
.header {
    width: calc(100% - 2em);
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    position: static;
    z-index: 999;
    background: #fff;
    box-shadow: none;
}

.header li {
    display: inline-block;
    margin-left: 1em;
}

.header li a {
    color: #000;
    text-decoration: none;
}

a {
    text-decoration: none;
    color: #24A2AE;
    transition: .25s;
}

a:hover {
    transition: .25s;
    text-decoration: underline;
}

a.noline:hover {
    text-decoration: none;
}

.header li:hover {
    transform: translate(-1px, -1px);
}

.header li.button, button {
    background-color: #24A2AE;
    padding: .75em 1em;
    border: 4px solid #fff;
    border-radius: 1em;
    cursor: pointer;
    transition: .25s;
    color: #fff;
    font-family: 'Lexend', sans-serif;
    font-size:16px;
    font-weight:bold;
}

.inheritcolor {
    color:inherit;
}

button.right-arrow {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    transition: .25s;
    display: block;
    margin-top: 1em;
    text-align: left;
    line-height: 1em;
}

button.right-arrow::after {
    content: '→';
    font-size: 24px;
    margin-left:8px;
    transition:.25s;
}

button.right-arrow:hover, .section-third:hover button.right-arrow {
    transform: translate(-1px, -1px);
    text-shadow: 4px 4px 1px #0000001e;
    transition:.25s;
    box-shadow:none;
}

button.right-arrow:hover::after, .section-third:hover button.right-arrow::after  {
    margin-left:16px;
    transition:.25s;
}

.header .button a {
    color: #fff;
}

.button:hover, button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px #0000001e;
    transition: .25s;
    cursor: pointer;
}

.button {
    transition: .25s;
    border-radius: 1em;
}

.header li img {
    vertical-align: bottom;
}

.logo.button {
    border-radius: 1em;
    vertical-align: center;
    line-height: 0;
    padding: 0;
}

.logo:hover {
    transform: translate(-1px, -1px);
}

.full-width {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#hero {
    background: linear-gradient(128deg, rgba(0,0,0,0.40378158099177175) 0%, rgba(255,255,255,0) 80%), url('/img/hero.jpg') no-repeat center center;
    background-size:cover;
    color:#fff;
    text-shadow:1px 1px 1px #00000050;
    padding:6em 6em;
    height: 50vh;
}

#hero .content {
    display:flex;
    flex-direction:column;
    max-width:460px;
    gap:1em;
}
#hero .content a {
    color:#FFCD3A;
}
#hero .content h1 {
    margin:0;
    padding:0;
}

#hero-footer {
    margin-top:-6em;
    display:flex;
    flex-direction:column;
    padding: 0 6em;
}

#hero-footer .components {
    background:#F9194F;
    border-radius:1em;
    border: solid 4px #fff;
    box-shadow: 2px 2px 8px #0000001e;
    display:flex;
    flex-direction:row;
    align-items:center;
    padding:1em;
}

#hero-footer .components .hero-image {
    width:70%;
    max-width:1000px;
    flex-shrink:0;
}

#hero-footer .components .hero-image img {
    width:100%;
    max-width:100%; /* Ensure no overflow from images */
}

#hero-footer .components .hero-text {
    color: white;
    font-size: 24px;
    font-family: Lexend;
    font-weight: 700;
    padding: 0 1em;
    max-width:340px;
}

.section-third {
    display:flex;
    flex-direction:column;
    width:30%;
}

.section-third:hover {
    cursor:pointer;
}

.section-third .image {
    width:100%;
    padding-top:66%;
    border-radius:1em;
    transition:.25s;
}

#steam-image {
    background:no-repeat bottom -80% right -10% / 30% url('/img/littleguys.png'), center / cover url('/img/steam.jpg');
}

#crafts-image {
    background:center / cover url('/img/crafts.jpg');
}

#art-image {
    background: center / cover url('/img/art.jpg');
}

.section-third img {
    border-radius:1em;
    transition:.25s;
    width:100%;
    max-width:100%;
}

.section-third:hover .image {
    transform:translate(-4px,-4px);
    box-shadow: 4px 4px #0000001e;
    transition:.25s;
}

.section-third h2, p {
    margin:0;
    padding:.5em 0;
}

.section-third button {
    margin-top:0;
    color:#24A2AE;
}

.new-products {
    padding:2em 3em 3em 3em;
    align-items:center !important;
}

.new-products:hover {
    cursor:pointer;
}

.new-product {
    flex: 1;
    max-width: 33.333%;
    margin: 0 0.5em;
}
.new-product:first-child {
    margin-left: 0;
}
.new-product:last-child {
    margin-right: 0;
}
.new-products:has(.new-product:only-child) .new-product {
    width:100%;
    max-width:1200px;
    margin:0 auto;
}
.new-product img {
    width:100%;
    max-width:100%;
    border-radius: 0 0 10px 10px;
    transition:.25s;
}

.new-products:hover img {
    transform:translate(-4px,-4px);
    box-shadow: 4px 4px #0000001e;
    transition:.25s;
}

.new-products:hover ~ div button {
    transform:translate(-4px,-4px);
    box-shadow: 4px 4px #0000001e;
    transition:.25s;
}

div:has(> div>.tape-header) {
    filter: drop-shadow(4px 4px 2px #0000000a);
}

div:has(>.tape-header) {
    --mask: conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) 50%/100% 15px;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    background:#fff;
    display:inline-block;
    padding:4px 6px 4px 0;
}

.tape-header {
    --mask: conic-gradient(from -135deg at right,#0000,#000 1deg 89deg,#0000 90deg) 50%/100% 15px;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    padding: 1em 2em;
    display:inline-block;
    background:#FFCD3A;
}

.new-button {
    display:flex;
    flex-direction:column;
    align-items:center;
}

.feed {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:1em;
    margin:3em;
    background:#3AC9D71A;
    padding:1em;
    border-radius:1em;
}

.feed h2 {
    font-size:12px;
    font-weight:normal;
}
.feed .title {
    display:flex;
    flex-direction:column;
    width:300px
}

.feed-item {
    display:flex;
    flex-direction:row;
    border-radius:1em;
    background:#fff;
    flex:1;
    align-items:center;
}

.feed-list {
    display:flex;
    flex-direction:row;
    gap:1em;
}

.feed-content h3 {
    font-size:16px;
}

.feed-content {
    padding:1em;
    display:flex;
    flex-direction:column;
    width:66%;
    gap:.5em;
}

.feed-image {
    border-radius: 0 1em 1em 0;
    width:33%;
    flex-shrink:0;
    height:100%;
}

.feed-content img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-width:100%;
}

button.round {
    border-radius:1.5em;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:right;
    padding:2px .6em 0 2px;
    margin:0;
    width:3em;
    height:3em;
    gap:.5em;
    transition-delay:.25s;
}

button.round::after {
    content: url('/img/carat-right.svg');
}

.feed-more button::before {
    content:'See all posts';
    opacity:0;
    transition:.25s;
}
.feed-more button:hover {
    width:10em;
}
.feed-more button:hover::before {
    content:'See all posts';
    opacity:1;
    transition:.5s;
    transition-delay:.3s;
}

.products {
    background:#3AC9D7;
    gap:2em;
    padding:3em;
    align-items:center;
}

.product-content {
    display:flex;
    flex-direction:column;
    gap:2em;
    width:90%;
}

.product-list {
    gap:2%;
    display:flex;
    flex-direction:row;
    justify-content:center;
}

.product {
    flex:1;
    display:flex;
    flex-direction:column;
    background:#fff;
}
.product h2 {
    font-size:20px;
}
.product img {
    border-radius: 1em 1em 0 0;
    width:100%;
    max-width:100%;
}
.even-space {
    display:flex;
    flex-direction:row;
    justify-content:space-between;
    align-items:flex-start;
    padding:3em;
}

.product-info {
    display:flex;
    flex-direction:row;
    padding: 0 2em 1em 2em;
    justify-content: space-between;
    align-items:center;
    gap:1em;
}

.learn-more {
    display:flex;
    flex-direction:column;
}

.learn-more .content {
    background:#fff;
    border-radius:1em;
    display:flex;
    padding:1em;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:1em;
}

.learn-more .content p {
    margin:0;
    padding:0;
    max-width:400px;
}

.newsletter {
    background:#F9194F;
    padding:3em;
}

.zig-bottom {
    --mask: conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50%/15px 100%;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}

.zig-top {
    --mask: conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) 50%/15px 100%;
    -webkit-mask: var(--mask);
    mask: var(--mask);
}

.newsletter-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    align-self:center;
    gap:1em;
    padding:3em;
    color:#fff;
    max-width:400px;
    position:relative;
}

.discount {
    position:absolute;
    top:-25px;
    right:-100px;
    width:150px;
    height:150px;
    background:url('img/Shiny\ thing.svg')center / cover;
    filter: drop-shadow(4px 4px 2px #00000020);
    transform:rotate(30deg);
    transition: .25s;
}

.discount:hover {
    transform:rotate(0deg);
    transition: .25s;
}

form {
    display:flex;
    flex-direction:row;
    gap:1em;
    width:100%;
    justify-content:space-between;
}

form input {
    padding:1em;
    border-radius:1em;
    border:none;
    font-family: 'Lexend', sans-serif;
}

#mce-EMAIL {
    width:100%;
}

.sosmed {
    display:flex;
    flex-direction:column;
    padding:3em;
    gap:3em;
}

.insta {
    background:#FFCD3A1a;
    padding:1em;
    border-radius:1em;
    display:flex;
    flex-direction:row;
    gap:1em;
    align-items:center;
    justify-content:center;
    position:relative;
}

.insta::before {
    content: url('/img/instagram-1.svg');
}

.sosmed div::before {
    position:absolute;
    left:-1em;
    top:-2em;
}
.youtube {
    background:#F9194F1a;
    padding:1em;
    border-radius:1em;
    display:flex;
    flex-direction:row;
    gap:1em;
    align-items:center;
    justify-content:center;
    position:relative;
}
.youtube::before {
    content: url('/img/youtube-1.svg');
}

.youtube-video {
    flex: 1;
    padding: 10px;
}

.youtube-video iframe {
    width: 100%;
    aspect-ratio: 1.5;
}

.footer {
    display:flex;
    flex-direction: row;
    background:#24A2AE;
    justify-content:space-between;
    padding:2em 0;
    color:#fff;
    max-width:100%;
}

.footer-left {
    display:flex;
    flex-direction:column;
    gap:1em;
    flex:1;
    justify-content:space-between;
}

.socials {
    display:flex;
    flex-direction:row;
    gap:.5em;
    padding-top:1em;
}

.footer-logo {
    display:flex;
    flex-direction:row;
    gap:1em;
    align-items:center;
    padding:1em 2em;
}

.footer-nav {
    flex:1;
}

.footer-nav ul {
    display:flex;
    flex-direction: column;
    gap:1em;
    list-style-type:none;
}

.footer a {
    color:#fff;
    text-decoration:none;
}

.footer-nav li:hover {
    transform: translate(-1px,-1px);
}

div:has(>.impressum){
    position:relative;
}
.impressum {
    font-size:12px;
    padding:1em;
    position:absolute;
    bottom:0;
    right:0;
}

.footer .tape-header {
    background:#F9194F;
}

.footer div:has(>.newsletter-content) {
    flex:2;
}

/* Hamburger Menu */
.hamburger {
    display: none; /* Hidden by default, enabled in mobile view */
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    position: relative;
    z-index: 3000;
    background-color: transparent;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
        /* Handle iOS safe area insets to prevent gap at top */
        padding-top: 0;
    }

    .sale-banner {
        font-size: 0.9rem;
        padding: 10px 15px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: #00c3d7;
    }

    .header {
        position: sticky;
        /* Default to top: 0 when no sale banner, adjust if banner is present */
        top: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        padding: 1em;
        margin-top: 0;
    }

    /* If sale banner exists, push header down */
    .sale-banner ~ .header {
        top: var(--sale-banner-height);
    }

    .hamburger {
        display: flex;
        z-index: 3000;
    }

    .header .navbar {
        display: none;
        background-color: #fff;
        position: absolute;
        /* Position directly below the header */
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 2000;
        flex-direction: column;
        box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
        padding: 1em;
    }

    .header .navbar ul li {
        display: block;
        margin:1em 0;
    }

    .header .navbar.open {
        display: flex;
    }

    .header li {
        display: none;
    }

    #hero {
        background: linear-gradient(128deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 80%, rgba(255,255,255,0) 100%), url('/img/hero.jpg') no-repeat center center;
        background-size:cover;
    }

    #hero-footer {
        margin-top:0;
        padding:1em;
    }

    #hero-footer .components {
        flex-direction:column;
    }

    #hero-footer .components .hero-image {
        width:100%;
        max-width:100%;
    }

    #hero-footer .components .hero-text {
        padding:1em 0 0 0;
    }

    .section.even-space {
        flex-direction:column;
    }

    .new-product {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0.5em 0 !important;
        flex: none !important;
    }
    
    .new-products {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .section-third {
        width:90%;
        padding-bottom:4em;
    }

    .feed {
        flex-direction:column;
        gap:2em;
        padding:2em;
    }

    .feed .title {
        width:100%;
    }

    .feed-list {
        flex-direction:column;
        gap:1em;
    }

    .feed-item {
        align-items:stretch;
        min-height:8em;
    }

    .feed-content {
        justify-content:center;
    }

    .feed-image {
        height:auto;
    }

    .feed-more button {
        width:10em;
    }
    .feed-more button::before {
        opacity:1;
    }

    .product-list {
        flex-direction:column;
    }

    .product a {
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    .discount {
        display:none;
    }

    .footer {
        flex-direction:column;
        gap:1em;
    }

    .footer .newsletter-content {
        display:none;
    }

    .medals img {
        width:15%;
    }

    .youtube {
        flex-direction:column;
    }
}

@media (max-width: 920px) {
    .product-list {
        flex-direction:column;
        gap:2em;
        font-size:24px;
    }
}

@media (max-width: 1024px) {
    .product h2, .product button {
        font-size:16px;
    }
}

.gcse-searchbox, .gcse-searchresults {
    margin-top: 10px;
}

.logo.button {
    display: flex;
    align-items: center;
}

#google-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcse-search {
    width: 80%;
    max-width: 600px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#search-icon-trigger {
    margin-right: 10px;
}

#search-input {
    margin-top: 5px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 180px;
}

#search-input::placeholder {
    color: #888;
    font-style: italic;
}

#search-input:focus {
    border-color: #24A2AE;
    outline: none;
}
