/* 
 _           _         ___ _   
| |_ ___ ___|_|___ ___|  _| |_ 
| '_| . |   | |_ -| . |  _|  _|
|_,_|___|_|_|_|___|___|_| |_|  
                               
The Hungarian Indie Game Studio since 2024.
Hmmm... what are you looking for here? ^-^
*/

:root {
    --bounce-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--main-background) }
::-webkit-scrollbar-thumb { 
    background: rgb(200, 200, 200);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover { background: rgb(170, 170, 170); }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes loading-shine {
  to { transform: translateX(50%) skewX(-20deg); }
}

#fall-container {
    position: absolute;
}

.fade-bg {
    transition: opacity 0.5s ease;
}

.fade-bg.hidden {
    opacity: 0;
}

.grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-vertical-lane) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-horizontal-lane) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    #000000 60%,
    transparent 100%
  );
  mask-size: cover;
  mask-repeat: no-repeat;
  pointer-events: none;
}

#gap-for-news {
    margin-top: 2em;
}

#news-line {
    position: sticky;
    display: flex;
    background-color: var(--jam-news-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    height: 2em;
    text-decoration: none;
    border-bottom: 1px solid var(--jam-news-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    overflow: hidden;
    opacity: 1;
    transition:
        background-color 0.35s var(--smooth-ease),
        filter 0.25s ease,
        height 0.4s var(--smooth-ease),
        opacity 0.3s ease,
        border-color 0.3s ease;
}

#news-line.news-line-hidden {
    height: 0;
    opacity: 0;
    border-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

#news-line:hover {
    filter: brightness(1.12);
}

#news-line p {
    font-size: clamp(12px, 1.9vw, 17px);
    margin-left: auto; 
    margin-right: auto;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.fade-text {
    transition: color 0.5s ease;
    color: var(--text-color);
}

.fade-text.hidden {
    color: transparent;
}

.text-loading {
    background-color: var(--secondary-background);
    border-radius: 2em;
    color: transparent;
}

.image-loading { background-color: var(--secondary-background); }

.text-loading, .image-loading {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    --shine-duration: 1.5s;
    --shine-opacity: .35;
    --shine-angle: 120deg;
    --shine-thickness: 50px;
}

.text-loading::after,
.image-loading::after {
    content: "";
    position: absolute;
    inset: -30% -50%;
    border-radius: inherit;

    background:
        linear-gradient(
            var(--shine-angle),
            rgba(255,255,255,0) calc(50% - (var(--shine-thickness) / 2)),
            rgba(255,255,255,var(--shine-opacity)) 50%,
            rgba(255,255,255,0) calc(50% + (var(--shine-thickness) / 2))
        );

    transform: translateX(-50%) skewX(-20deg);
    animation: loading-shine var(--shine-duration) ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

* {
    transition: background-color 0.35s var(--smooth-ease);
}

body {
    background-color: var(--secondary-background);
    margin: 0;
    padding: 0;
    font-family: "Oxanium", sans-serif;
    color: var(--text-color);
    min-width: 0;
    position: relative;
}

#scroll-to-top {
    position: fixed;
    bottom: 1.5em;
    right: 1.5em;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-background-elements);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    transform: translateY(1em) scale(0.85);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.4s var(--bounce-ease), border-color 0.3s ease;
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#scroll-to-top:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: var(--glass-border);
}

#scroll-to-top svg {
    width: 1.1em;
    height: 1.1em;
    stroke: var(--text-color);
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-width: 0;
}

nav {
    background-color: var(--nav-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    width: 100%;
    height: 4.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    border-bottom: 1px solid var(--glass-border);
}

.dot{
  width:35px;
  height:35px;
  position:absolute;
  background-size: 100% 100%;
}

#header-logo {
    width: 14rem;
    aspect-ratio: 320 / 27;
    margin-left: 1rem;
    background-image: var(--konisoft-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#nav-buttons {
    display: flex;
    gap: 1.5em;
    padding-right: 1em;
}

#nav-split {
    width: 1px;
    background-color: var(--global-border);
    height: 1em;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: -.6em;
    margin-right: -.6em;
}

#menu-buttons {
    display: none;
}

.menu-button {
    color: var(--text-color);
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: font-size 0.35s var(--bounce-ease), transform 0.35s var(--bounce-ease), opacity 0.2s ease;
    font-weight: 500;
}

.menu-button:hover {
    font-size: 1.15em;
    transform: translateY(-2px);
}

#theme-and-settings {
    display: flex;
}

#theme-and-settings-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2em;
}

#language {
  background-image: url(../images/lang_hu.webp);
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 30px;
  width: 30px;
  display: block;
  transition: opacity 0.2s ease-in-out;
  transition: 0.2s;
  opacity: 1;
  margin-right: 1em;
  margin-left: .5em;
}

#language-mobile {
  background-image: url(../images/lang_hu.webp);
  cursor: pointer;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 30px;
  width: 30px;
  display: block;
  transition: opacity 0.2s ease-in-out;
  transition: 0.2s;
  opacity: 1;
  margin-right: 1em;
  margin-left: .5em;
}

#language:hover {
    width: 35px;
    height: 35px;
    transform: rotate(-12deg);
}

#theme-switcher, #language {
    height: 30px;
    width: 30px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#theme-switcher-mobile, #language-mobile {
    height: 40px;
    width: 40px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#theme-switcher {
    background-image: var(--theme-switcher-icon);
    background-size: 100%;
    margin-right: 0em;
    margin-left: 1em;
    transition: width 0.4s var(--bounce-ease), height 0.4s var(--bounce-ease), transform 0.4s var(--bounce-ease);
}

#theme-switcher-mobile {
    background-image: var(--theme-switcher-icon);
    background-size: 100%;
    margin-right: 0em;
    margin-left: 1em;
    transition: 0.2s;
}

#theme-switcher:hover {
    width: 35px;
    height: 35px;
    transform: rotate(25deg);
}

#settings-mobile {
    background-image: var(--dropdown-icon);
    display: block;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    height: 30px;
    width: 30px;
    transition: 0.5s;
}

#settings-mobile.dropdown-menu-up {
    background-image: var(--dropdown-icon);
    background-size: contain;
}

#settings-mobile.dropdown-menu-down {
    background-image: var(--dropdown-close-icon);
    background-size: 90%;
}

#dropdown-menu {
    border-bottom: 1px solid var(--glass-border);
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background-color: var(--nav-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: var(--glass-shadow);

    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;

    transition:
        transform 450ms var(--bounce-ease),
        opacity   300ms ease;
}

#dropdown-menu.dropdown-menu-down {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu-button {
    font-family: "Oxanium", sans-serif;
    font-size: 1.3em;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.9em;
    display: block;
    transition: padding-left 0.3s var(--bounce-ease), background-color 0.25s ease;
}

.dropdown-menu-button:hover {
    padding-left: 1.3em;
    background-color: var(--glass-highlight);
}

#dropdown-menu-icons {
    /* height: 2em; */
    padding: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #dropdown-menu-theme-switcher {
    background-image: url(images/moon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    display: block;
    height: 60px;
    width: 60px;
} */

main {
    display: grid;
    gap: 1em;
    /* width: 100%; */
    padding: 1em;
    min-width: 0;
    overflow-x: hidden;
}

.faq-item {
    padding: 10px 0;
    cursor: pointer;
    position: relative;
}

.faq-question {
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: font-size 0.3s var(--bounce-ease), transform 0.3s var(--bounce-ease);
    margin-left: 0.5em;
}

.faq-question:hover {
    font-size: 1.3em;
    transform: translateX(3px);
}

.faq-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #b8b8b8;
    margin-right: 10px;
    transition: transform 0.4s var(--bounce-ease);
}

.faq-answer {
    margin-top: 1em;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.45s var(--smooth-ease), opacity 0.4s ease, transform 0.45s var(--bounce-ease);
    margin-left: 0.5em;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

#home-container, #home-text-container-mobile, #games-container, #about-container-mobile, #about-container, #contacts-container, #partners-container, #faq-container, #games-intro-container, #news-container {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--main-background-elements);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border-radius: 1.25em;
    padding: 1em;
    min-width: 0;
    border: 1px solid var(--glass-border-soft);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: border-color 0.4s var(--smooth-ease), box-shadow 0.4s var(--smooth-ease), background-color 0.35s var(--smooth-ease);
}

#home-container:hover, #home-text-container-mobile:hover, #games-container:hover, #about-container-mobile:hover, #about-container:hover, #partners-container:hover, #contacts-container:hover, #faq-container:hover, #games-intro-container:hover, #news-container:hover {
    border-color: var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-highlight);
}

#jam-container {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#jam-text-container, #jam-card, #jam-leaderboard {
    background-color: var(--main-background-elements);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border-radius: 1.25em;
    padding: 1em;
    min-width: 0;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform 0.4s var(--smooth-ease), box-shadow 0.4s var(--smooth-ease), background-color 0.35s var(--smooth-ease);
}

#jam-selection {
    width: 100%;
    display: flex;
    gap: 1rem;
    align-content: center;
}

#jam-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-image: url('../images/konis_spring_jam_icon.png');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
}

#jam-name {
    width: auto;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity .6s var(--smooth-ease), transform .6s var(--bounce-ease);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#about-container-mobile {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--main-background-elements);
    border-radius: 1.25em;
    padding: 1em;
    min-width: 0;
    text-align: center;
}

#covers-container-mobile {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1em;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

#lumi-cover {
    border: 1px solid var(--global-border);
    background-image: url(../images/lumi_cover.webp);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    flex: 1 1 0;
    aspect-ratio: 7 / 12;
    background-color: var(--main-background);
    border-radius: 1.25em;
    box-sizing: border-box; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    cursor: pointer;
    transition: width 0.45s var(--bounce-ease), height 0.45s var(--bounce-ease), box-shadow 0.3s ease;
}

#lumi-cover:hover {
    width: 102%;
    height: 102%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

#home-text-container-mobile { min-height: 7em; }

#about-container { min-height: 12em; }

#about-container {
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    z-index: 1;
}

#about-container::before {
    width: 100%;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    z-index: -1;
}

#home-container {
    margin-top: 0.2em;
    aspect-ratio: 2.1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 0 1em 0 0;
}

#home-top-section {
    width: 35%;
    height: 40%;
}

#home-logo {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

#home-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#home-background .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    transition: left 1s ease-in-out;
}

#home-text-container, #home-image-container {
    position: left;
    z-index: 1;
}

#home-text-container {
    display: flex;
    flex-direction: column;
    justify-content: end;
    /* gap: 0.7em; */
}

#home-text-1, #home-text-2, #home-text-mobile-1, #home-text-mobile-2, #games-text-1, #games-text-2, #faq-text-1, #about-text-1, #about-text-2, #intro-text-1, #intro-text-2, #jams-card-text-1, #partners-text-1, #partners-text-2, #contacts-text-1, #jams-text-1, #jams-text-2, #jams-card-text-2, #contacts-text-2 {
    padding: 0 0.5rem 0 0.5rem; 
    transition: color 0.5s ease, opacity 0.5s ease;
}

#home-text-1, #home-text-mobile-1, #games-text-1, #about-text-1, #faq-text-1, #about-text-mobile-1, #jams-card-text-1, #contacts-text-1, #jams-text-1, #intro-text-1, #partners-text-1 {
    display: flex;
    align-items: end;
    font-size: 1.5em;
    font-weight: bold;
}

#home-text-2, #home-text-mobile-2, #games-text-2, #about-text-2, #about-text-mobile-2, #jams-text-2, #contacts-text-2, #jams-card-text-2, #intro-text-2, #partners-text-2 {
    display: flex;
    align-items: center;
    line-height: 1.5em;
}

#home-text-1 {
    display: none;
    width: 14rem;
    height: 1.75rem;
    align-content: center;
    padding: 0 1rem 0 1rem;
    /* background-color: rgba(0, 0, 0, 1); */
    background-color: var(--secondary-background);
    border-radius: 0 3rem 0 0;
}

#home-text-2 {
    display: none;
    width: 18rem;
    height: 3.5rem;
    align-content: center;
    padding: 0 1rem 0 1rem;
    /* background-color: rgba(0, 0, 0, 1); */
    background-color: var(--secondary-background);
    border-radius: 0 2rem 0 0;
}

#home-text-1.text-loading, #home-text-2.text-loading {
    background-color: var(--secondary-background);
}

#home-image-container {
    display: flex;
    gap: 1em;
    justify-content: end;
    align-items: end;
    padding-bottom: 1rem;
}

#home-image-1, #home-image-2 {
    aspect-ratio: 13.5 / 6;
    border-radius: 0.75rem;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--global-border);
    filter: drop-shadow(8px 8px 10px black);
    cursor: pointer;
    transition: transform 0.4s var(--bounce-ease);
}

#home-image-1:hover, #home-image-2:hover {
    transform: translateY(-4px) scale(1.03);
}

#home-image-1 .slide, #home-image-2 .slide, #home-logo .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: left 1s ease-in-out;
}

#home-image-2, #home-image-1 { width: 13.5rem; }

#home-text-container-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

#home-text-mobile-1.text-loading {
    min-height: 3rem;
    max-width: 20rem;
}

#home-text-mobile-2.text-loading {
    min-height: 2rem;
    max-width: 30rem;
}

.home-dev-badge {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.35rem 0.6rem;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.home-dev-badge.visible {
    opacity: 1;
}

.dev-dot-wrapper {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.2rem;
}

.dev-dot {
    width: 10px;
    height: 10px;
    background-color: #3fc421; 
    border-radius: 50%;
    z-index: 2;
}

.dev-dot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #20ab3c;
    border-radius: 50%;
    z-index: 1;
    animation: pulse-animation 2.5s infinite;
}

#games-container {
    position: relative;
    display: flex;
    justify-content: left;
    flex-direction: row;
    gap: 2.5rem;
    min-height: 20em;
    overflow: hidden;
    z-index: 0;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, var(--game-container-fade-start), var(--game-container-fade-mid));
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
}

#games-image-1,
#games-image-2,
#games-image-3,
#games-text-container {
    position: relative;
    z-index: 2;
}

#games-images-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1em;
}

#games-image-1, #games-image-2, #games-image-3 {
    border-radius: 1em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: var(--secondary-background);
    transition: 0.2s;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

#games-image-1, #games-image-2, #games-image-3 {
    border-radius: 1em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;   
    cursor: pointer;
    background-color: var(--secondary-background);
    transition: transform 0.4s var(--bounce-ease), box-shadow 0.4s var(--smooth-ease);
    flex: 1 1 0;
    aspect-ratio: 181 / 265;
    height: auto;
    max-width: 16em;
    position: relative;
    overflow: hidden;
}

#games-image-1:hover, #games-image-2:hover, #games-image-3:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

#games-image-1 { 
    background-image: url("../images/lumi_cover.webp"); 
    background-size: cover;
}

#games-image-2 {
    background-image: url("../images/speedruns_banner.webp");
    background-size: contain;
}

.dev-overlay {  
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%; 
    background-color: rgba(58, 140, 6, 0.55); 
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 3; 
    pointer-events: none; 
    white-space: pre-line; 
    text-align: center;
    line-height: 1.2;
}

#games-image-1.image-loading, #games-image-2.image-loading, #games-image-3.image-loading { background-image: none; }

#games-image-1 { 
    background-image: url("../images/lumi_cover.webp"); 
    background-size: cover;
}

#games-image-2 {
    background-image: url("../images/speedruns_banner.webp");
    background-size: contain;
}

#games-text-1 {
    width: 25rem;
    height: 3.5rem;
}

#games-text-2 {
    /* min-width: 15rem; */ 
    /* height: 3.5rem; */
    text-align: left;
    justify-content: start;
}

#games-text-2.text-loading {
    min-height: 4rem;
}

#games-buttons-container {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease; 
}

.game-store-btn {

    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.35s var(--bounce-ease), filter 0.2s ease, box-shadow 0.35s var(--smooth-ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 50%;
    height: 50px;
    background-color: var(--main-background-elements);
     backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.game-store-btn.disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.65;
    filter: grayscale(100%);
}

.store-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.steam-icon {
    background-image: var(--steam-icon);
}

.itch-icon {
    background-image: var(--itch-icon);
}

.game-store-btn:hover {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

#about-container-mobile {
    height: 6em;
    display: block;
    text-align: center;
    align-items: center;
}

#about-text-container {
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    width: 100%;
}

#about-text-1 {
    width: 24rem;
    height: 3.5rem;
}

#faq-text-1 {
    width: 40rem;
    height: 3.5rem;
}

#news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#news-display {
    position: relative;
    overflow: hidden;
    border-radius: 1em;
    min-height: 14em;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    border: 1px solid var(--glass-border);
}

#news-display-image {
    position: absolute;
    inset: 0;
    background-color: var(--secondary-background);
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: background-image 0.3s ease, opacity 0.3s ease;
}

#news-display-fade {
    position: absolute;
    inset: 0;
    background: var(--news-fade);
    z-index: 1;
    pointer-events: none;
}

#news-display-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 100%;
    box-sizing: border-box;
}

#news-display-tag {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.75;
    width: fit-content;
    min-width: 4em;
    min-height: 1em;
    border-radius: 0.5em;
}

#news-display-title {
    font-size: 1.35em;
    font-weight: bold;
    min-width: 10em;
    min-height: 1.4em;
    border-radius: 0.5em;
    color:white;
}

#news-display-text {
    line-height: 1.5em;
    opacity: 0.9;
    min-width: 12em;
    min-height: 2.5em;
    border-radius: 0.5em;
    color:white;
}

#news-headlines-container {
    width: 100%;
    min-width: 0;
}

#news-headlines {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.news-headline-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: color-mix(in srgb, var(--secondary-background) 12%, transparent);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s var(--bounce-ease), background-color 0.3s ease, box-shadow 0.3s var(--smooth-ease), border-color 0.3s ease;
}

.news-headline-item:hover {
    transform: translateX(5px) scale(1.012);
    background-color: color-mix(in srgb, var(--secondary-background) 78%, transparent);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.news-headline-item.active {
    border-color: var(--text-color);
    background-color: color-mix(in srgb, var(--secondary-background) 85%, transparent);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.news-headline-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.news-headline-title {
    font-weight: 700;
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-headline-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.6;
}

.news-headline-date {
    font-size: 0.8rem;
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    #news-container {
        flex-direction: row;
        align-items: stretch;
        gap: 2rem;
    }

    #news-display {
        width: 42%;
        flex-shrink: 0;
        min-height: 100%;
    }

    #news-headlines-container {
        width: 58%;
    }
}

#contacts-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
}

#partners-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
}

#jam-text-container {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#jam-card {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

#jam-banner {
    min-width: 12em;
    min-height: 10em;
    max-width: 15em;
    border-radius: 1em;
    background-image: url("../images/jam-banner.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#jam-leaderboard {
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    z-index: 20; 
}

#jam-competitors {
    width: 100%;
    /* height: 100%; */
}

#jam-selection {
    width: 100%;
    position: relative;
}

#jam-selector-button {
    width: 100%;
    display: flex;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s var(--bounce-ease);
    box-sizing: border-box;
    font-size: 0.93598976349364rem;
}

#jam-selector-button:hover {
    background-color: var(--secondary-background);
    transform: translateX(2px);
}

#jam-dropdown-arrow {
    font-size: 0.8rem;
    margin-left: auto;
    transition: transform 0.3s;
}

#jam-selector-button.open #jam-dropdown-arrow {
    transform: rotate(180deg);
}

#jam-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 15em;
    overflow-y: auto;
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    box-shadow: var(--glass-shadow);
    transition: opacity 0.3s ease, transform 0.4s var(--bounce-ease);
}

#jam-dropdown:not(.dropdown-hidden) {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.jam-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease, padding-left 0.25s var(--bounce-ease);
}

.jam-dropdown-item:hover {
    font-weight: bold;
    padding-left: 1.3rem;
    background-color: var(--glass-highlight);
}

.jam-dropdown-icon {
    width: 32px;
    height: 32px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

#jam-competitors {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 21em;
    overflow: auto;
    padding-right: 0.5rem;
}

.competitor-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background-color: color-mix(in srgb, var(--secondary-background) 12%, transparent);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    gap: 1rem;
    transition: transform 0.3s var(--bounce-ease), background-color 0.3s ease;
}

.competitor-item:hover {
    transform: translateX(3px);
    background-color: color-mix(in srgb, var(--secondary-background) 75%, transparent);
}

.competitor-position {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-color);
    min-width: 2rem;
    text-align: center;
}

.trophy-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.competitor-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.competitor-name {
    font-size: 0.95rem;
    font-weight: 700;
}

a.competitor-game {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

a.competitor-game:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.empty-competitors {
    justify-content: center;
    font-style: italic;
    opacity: 0.7;
}

#games-intro-container {
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 0;
}

#games-intro-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background-image: var(--game-image);
    background-size: contain    ;
    background-repeat: no-repeat;
    background-position: right;
    opacity: var(--about-image-opacity);
    background-color: var(--main-background);
    z-index: -1;
    pointer-events: none;
}

#faq-container {
    position: relative;
    text-align: left;
    width: 100%;
    z-index: 0;
}

#faq-container::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: var(--question-image);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
    opacity: var(--about-image-opacity);
    z-index: -1;
    pointer-events: none;
}

#contacts-text-container {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 0.7em;
}

#partners-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    text-align: left;
    gap: 0.7em;
    flex: 0 0 auto;
}

#games-text-container {
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 0.7em;
}

#contacts-text-1 { 
    height: 3rem;
}

#partners-text-1 { 
    height: 3rem;
}

#partners-images-container {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

#partners-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5em;
    width: max-content;
    animation: partners-marquee-scroll 28s linear infinite;
}

#partners-images-container:hover #partners-marquee-track {
    animation-play-state: paused;
}

@keyframes partners-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partner-logo-item {
    flex: 0 0 auto;
}

.partner-logo {
    width: 7em;
    height: 6em;
    border-radius: 0.75em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 80%;
    opacity: 0.2;
    transition: opacity 0.3s var(--smooth-ease), transform 0.3s var(--bounce-ease);
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.partner-logo-1 { background-image: var(--mechwart-logo); }
.partner-logo-2 { background-image: var(--mechwart-logo); }
.partner-logo-3 { background-image: var(--mechwart-logo); }
.partner-logo-4 { background-image: var(--mechwart-logo); }
.partner-logo-5 { background-image: var(--mechwart-logo); }
.partner-logo-6 { background-image: var(--mechwart-logo); }

@media (min-width: 900px) {
    #partners-text-container {
        max-width: 40%;
    }

    #partners-images-container {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    #partners-marquee-track {
        animation: none;
    }
}

#jams-card-text-1 {
    min-height: 3rem;
}

#jam-joining-mobile {
    text-decoration: none;
    display: none;
    background: linear-gradient(to top, rgb(53, 141, 60), rgb(41, 155, 6));
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 1.25em;
    padding: 1em;
    min-width: 0;
    box-shadow: 0 8px 24px rgba(41, 155, 6, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.35s var(--bounce-ease), box-shadow 0.35s var(--smooth-ease);
}

#jam-joining {
    color: white;
    display: flex;
    background: linear-gradient(to top, rgb(53, 141, 60), rgb(41, 155, 6));
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    border-radius: 1.25em;
    padding: 1em;
    min-width: 0;
    box-shadow: 0 8px 24px rgba(41, 155, 6, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.35s var(--bounce-ease), box-shadow 0.35s var(--smooth-ease);
}

#jam-joining:hover, #jam-joining-mobile:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 14px 32px rgba(41, 155, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#jam-joining-text {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    text-align: center;
    color: white;
}

#jam-joining-text-a {
    text-decoration: none;
    color: white;
}

#jam-joining-text-mobile {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3em;
    color: white;
    text-align: center;
}

#jam-joining-text-a-mobile {
    text-decoration: none;
}

#jam-joining.jam-ended,
#jam-joining-mobile.jam-ended {
  filter: grayscale(100%);
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}

#jam-card-banner.jam-ended:hover,
#jam-card-banner.jam-upcoming:hover {
  opacity: 0.65;
}

#jam-card-banner.jam-ended::after,
#jam-card-banner.jam-upcoming::after {
  content: attr(data-overlay-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border-radius: 1rem;
}

.jam-badge-ongoing {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.35rem 0.6rem 0.35rem 0.6rem;
    pointer-events: none;
}

.jam-dot-wrapper {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.2rem;
}

.jam-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    z-index: 2;
}

.jam-dot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #22c55e;
    border-radius: 50%;
    z-index: 1;
    animation: pulse-animation 2.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    40% {
        transform: scale(2.8);
        opacity: 0;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

#jam-card-banner {
    background-image: url(../images/konis_spring_jam_banner.webp);
    background-size: cover;
    background-position: center;
    width: auto;
    min-height: 17em;
    border-radius: 1em;
    transition: opacity 0.35s ease, transform 0.35s var(--bounce-ease), box-shadow 0.35s var(--smooth-ease);
    opacity: 100%;
}

#jam-card-banner:hover {
    opacity: 88%;
    transform: scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

#jams-text-1 {
    height: 3em;
}

#jam-card-banner {
  position: relative;
}

#jam-joining.jam-ended,
#jam-joining-mobile.jam-ended {
  filter: grayscale(100%);
  opacity: 0.65;
}

#jam-card-banner.jam-ended {
  /* filter: grayscale(100%); */
  opacity: 0.65;
  cursor: not-allowed;
}

#jam-card-banner.jam-ended:hover {
  opacity: 0.65;
}

#intro-text-1 {
    /* width: 7rem;  */
    height: 3rem;
}

#socials-container {
    display: flex;
    flex-direction: column;
}

.socials-layout { 
    display: flex;
    flex-direction: column;
    gap: 1em; 
}

.socials-2rows { display: none; }
.socials-3rows { display: flex; }

.socials-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social {
    background-color: color-mix(in srgb, var(--secondary-background) 12%, transparent);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    border: 1px solid var(--glass-border);
    height: 5em;
    width: 5em;
    border-radius: 1em;
    transition: transform 0.35s var(--bounce-ease), box-shadow 0.35s var(--smooth-ease), background-color 0.3s ease;
}

.social:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.x, .youtube, .discord, .facebook {
    align-self: end;
}

.x-icon, .youtube-icon, .discord-icon, .bluesky-icon, .instagram-icon, .facebook-icon, .tiktok-icon, .email-icon, .reddit-icon {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: 70%;
    background-repeat: no-repeat;
    opacity: 0.25;
    transition: 0.2s;
}

.x-icon:hover, .youtube-icon:hover, .discord-icon:hover, .bluesky-icon:hover, .instagram-icon:hover, .facebook-icon:hover, .tiktok-icon:hover, .email-icon:hover, .reddit-icon:hover {
    opacity: 0.9;
    background-size: 80%;
}


.youtube-icon { background-image: var(--youtube-icon); }
.discord-icon { background-image: var(--discord-icon); }
.facebook-icon { background-image: var(--facebook-icon); }
.x-icon { background-image: var(--x-icon); }
.bluesky-icon { background-image: var(--bluesky-icon); }
.instagram-icon { background-image: var(--instagram-icon); }
.tiktok-icon { background-image: var(--tiktok-icon); }
.email-icon { background-image: var(--email-icon); }
.reddit-icon { background-image: var(--reddit-icon); }

footer {
    background-color: var(--nav-glass);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    height: 9em;
    position: sticky;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em;
    min-width: 0;
    border-top: 1px solid var(--glass-border);
}

#footer-logo {
    width: 20rem;
    aspect-ratio: 320 / 27;
    background-image: var(--konisoft-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#footer-text-1, #footer-text-2, #footer-text-3 {
    text-align: center;
    font-size: 0.9em;
}

#footer-text-1 {
    width: 16em;
    height: 1.3em;
    margin-top: 1em;
}

#footer-text-2 {
    width: 11em;
    height: 1.3em;
    margin-top: 0.5em;
}

#footer-text-3 {
    width: 12em;
    height: 1.2em;
    margin-top: 3em;
}

@media (max-width: 469px) {
    #games-text-1 {
        width: 20rem;
        height: 3.5rem;
        font-size: 2em;
    }
    #games-text-container { justify-content: end; }
    #home-image-2, #home-image-1 { display: none }
    #covers-container { display: none; }
    /* #games-image-1, #games-image-2, #games-image-3 {display: none;} */
    #games-container { flex-direction: column; }

    #jam-joining {
        display: none;
    }

    #jam-joining-mobile {
        display: flex;
    }
    #header-logo {
        width: 16rem;   
    }
    #language, #theme-switcher {
        display: none;
    }
}   

@media (min-width: 470px) {
    #games-text-1 {
        width: 20rem;
        height: 3.5rem;
        font-size: 2em;
    }
    #games-text-container { justify-content: end; }
    #header-logo {
        width: 20rem;
        margin-right: 1.5rem;
    }

    #about-container-mobile {
        display: none;
    }
    #games-image-1, #games-image-2, #games-image-3 {display: block;}

    #nav-buttons { padding-right: 1.5rem; }
    #home-text-1, #home-text-mobile-1, #about-text-1, #faq-text-1, #contacts-text-1, #partners-text-1, #jams-card-text-1, #jams-text-1, #intro-text-1 { font-size: 2em; }

    #games-container { flex-direction: column; }
    #theme-and-settings { gap: 1rem; }

    #home-image-1, #home-image-2 {
        aspect-ratio: 0 / 0;
        border-radius: 1.5rem;
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        display: none;
    }

    #about-text-1, #faq-text-1 { display: block; }

    #socials-container {
        flex-direction: column;
        justify-content: center;
    }

    #jam-text-container {
        flex-direction: column;
        justify-content: center;
    }

    #covers-container { display: none; }

    #jam-joining {
        display: none;
    }

    #jam-joining-mobile {
        display: flex;
    }
    #language, #theme-switcher {
        display: none;
    }

    .socials-2rows { display: flex; }
    .socials-3rows { display: none; }
}

@media (max-width: 615px) {

    #games-text-1 {
        width: 20rem;
        height: 3.5rem;
        font-size: 2em;
    }

    #games-text-container { justify-content: end; }
    
    #socials-container {
        flex-direction: column;
    }

    #jam-text-container {
        flex-direction: column;
        justify-content: center;
    }

    #jam-joining {
        display: none;
    }

    #jam-joining-mobile {
        display: flex;
    }
    #language, #theme-switcher {
        display: none;
    }
}

@media (min-width: 616px) {

    #games-text-1 {
        width: 50rem;
        height: 3.5rem;
        font-size: 2em;
    }
}

@media (min-width: 768px) {
    #games-text-1 {
        width: 50rem;
        height: 3.5rem;
        font-size: 2em;
    }
    .background-video {
        display: flex;
    }
    /* #games-image-1, #games-image-2, #games-image-3 {display: none;} */

    #home-image-2, #home-image-1 { width: 13.5rem; }

    #home-image-1, #home-image-2 {
        aspect-ratio: 13.5 / 6;
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        display: inline-block;
    }
    #games-text-container { justify-content: end; }
    #games-intro-container {
        flex-direction: row;
        gap: 2rem;
    }

    #games-container { 
        flex-direction: row; 
        gap: 1rem;
    }

    #games-image-1, #games-image-2, #games-image-3 {
        display: inline-block;
        min-width: 10em;
        max-width: 12em;
    }

    #faq-container {
        flex-direction: row;
        gap: 2rem;
    }

    #socials-container{
        flex-direction: column;
    }

    #jam-joining {
        display: none;
    }

    #jam-joining-mobile {
        display: flex;
    }
    #language, #theme-switcher {
        display: none;
    }

    #jam-container {
        flex-direction: row;
        flex-wrap: wrap; 
    }

    #jam-text-container {
        width: 100%; 
        box-sizing: border-box;
    }

    #jam-card {
        width: calc(65% - 0.5rem); 
        box-sizing: border-box;
    }

    #jam-leaderboard {
        width: calc(35% - 0.5rem); 
        box-sizing: border-box;
    }
}

@media (min-width: 900px) {
    #contacts-container {
        flex-direction: row;
        gap: 2rem;
    }

    #partners-container {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

@media (min-width: 1076px) {
    #language, #theme-switcher {
        display: block;
    }

    #jam-joining {
        display: flex;
    }

    #jam-joining-mobile {
        display: none;
    }

    #games-text-1 {
        width: 50rem;
        height: 3.5rem;
        font-size: 2em;
    }
    #nav-buttons {
        display: flex;
        gap: 1.5em;
        padding-right: 1.5em;
    }

    #menu-buttons {
        display: flex;
        gap: 2em;
    }

    .menu-button {
        color: var(--text-color);
        font-size: 1em;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    #settings-mobile {
        background-image: url(../images/settings-mobile.webp);
        display: none;
        cursor: pointer;
        background-size: contain;
        background-repeat: no-repeat;
        height: 30px;
        width: 30px;
    }

    #dropdown-menu { display: none !important; }

    main {
        grid-template-columns: 15em 1fr;
    }

    #home-container, #home-text-container-mobile, #games-container, #contacts-container, #partners-container, #games-intro-container, #about-container, #faq-container, #jam-container, #news-container {
        grid-column: 1 / 3;
    }

    #home-text-1 { width: 19rem; }
    #home-text-2 { width: 24rem; }

    #home-image-2 { display: block; }
    #covers-container-mobile { display: none; }
    #games-image-1, #games-image-2, #games-image-3 {
        display: inline-block;
        min-width: 14em;
        max-width: 16em;
    }

    #covers-container { display: inline-block; }

    #about-container-mobile { display: none; }

    #about-text-2 {
        height: 5.25rem;
    }

    #contacts-text-1 { width: 24rem; }
    #partners-text-1 { width: 24rem; }
    #jams-card-text-1 {width: 20rem;}
    #jams-text-1 { width: 16rem; }
    #intro-text-1 { width: 24rem; }

    #jam-container {
        flex-wrap: nowrap;
    }

    #jam-text-container {
        width: 25%;
    }

    #jam-card {
        width: 50%;
    }

    #jam-leaderboard {
        width: 25%;
    }

    #footer-logo { width: 20em; }
    #footer-text-1 { width: 18rem; }
    #footer-text-2 { width: 14rem; }
    #footer-text-3 { width: 15rem; }
}

@media (min-width: 1100px) {
    main {
        margin: auto;
    }

    /* #home-logo {
        width: 28em;
        height: 14em;
        position: relative;
        overflow: hidden;
        background-position: center;
        background-size: cover;
    } */

    #home-bottom-section {
        display: flex;
    }

    #games-text-1 {
        width: 50rem;
        height: 3.5rem;
        font-size: 3em;
    }

    #home-text-1 {
        width: 20rem;
        height: 4rem;
        max-width: 24em;
        display: block;
    }
    
    #home-text-2 {
        width: 30rem;
        height: 2rem;
        display: block;
    }

    #home-text-container-mobile { display: block; }
    #home-text-container {display: none;}

    #home-image-container {
        margin-left: auto;
    }


    #about-text-2 {
        width: 45rem;
        height: 5.25rem;
    }

    #contacts-text-1 { width: 24rem; }
    #partners-text-1 { width: 24rem; }
    #jams-card-text-1 { width: 20rem; }
    #jams-text-1 { width: 18rem; }
    #intro-text-1 { width: 24rem; }

    #contacts-text-2 { 
        width: 40rem; 
        height: 5.25rem;
    }

    #partners-text-2 { 
        width: 40rem; 
        height: 5.25rem;
    }

    #intro-text-2 { 
        width: 40rem; 
        height: 5.25rem;
    }
}

@media (min-width: 1380px) {
    #home-text-container-mobile { display: none; }
    #home-text-container {display: flex;}
    
    main {
        max-width: 70%;
        min-width: 1328px;
    }
    
    #home-text-1 {
        width: 30rem;
        height: 5rem;
        font-size: 3em;
        max-width: 24em;
        display: block;
        margin-bottom: -0.3em;
    }
    
    #home-text-2 {
        width: 40rem;
        height: 3rem;
        font-size: 1.5em;
        display: block;
    }

    #about-text-1, #faq-text-1 {
        width: 40em;
        height: 3.5rem;
    }

    #about-text-2 {
        width: 55rem;
        height: 3.5rem;
    }

    #contacts-text-2 { 
        width: 50rem; 
        height: 3.5rem;
    }

    #partners-text-2 { 
        width: 50rem; 
        height: 3.5rem;
    }

    #intro-text-2 { 
        width: 50rem; 
        height: 3.5rem;
    }
}