@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');

@keyframes slidePC {
    0% {
        left: -150px;
    }
    100% {
        left: 770px;
    }
}
@keyframes slideMobile {
    0% {
        left: -100px;
    }
    100% {
        left: 420px;
    }
}

* {
    font-family: inherit;
}
body {
    /* font-family: "Lato", sans-serif; */
    font-family: "Space Grotesk", sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: default;
}
html {
    scroll-behavior: smooth;
}
button,
a.heroButton {
    cursor: pointer;
    transition: 0.3s ease-in-out;
    background-color: #013A6E;
}
button:hover {
    background-color: #014A8B;
    transition: 0.3s ease-in-out;
}
h2 {
    text-align: center;
    color: #333333;
    font-size: 2.5rem;
    margin-inline: auto;
}
ul {
    display: flex;
    list-style-type: none;
}
main {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
@media screen and (max-width: 1500px) {
    main {
        max-width: 1500px;
    }
}
/* SECTION HERO */
section.hero {
    display: flex;
    flex-direction: column;
    background-image: url(/img/hero.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    height: fit-content;
    padding-bottom: 50px;
}
@media screen and (max-width: 1500px) {
    .hero {
        min-height: 100vh;
        padding-bottom: 0;
    }
}
h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 600;
    margin: 80px 0 30px 150px;
}
.hero p.main {
    margin-left: 170px;
    width: 900px;
    color: white;
    font-size: 1.4rem;
}
.hero .checks {
    flex-direction: column;
    margin-left: 150px;
    gap: 10px;
}
.checks li {
    height: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    font-size: 1.4rem;
}
.checks img {
    width: 26px;
    height: 26px;
}
.hero .container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 50px 0 50px 150px;
}
.heroButton {
    border: none;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 0px 40px;
    border-radius: 99px;
    margin: 0;
    font-size: 1.6rem;
    width: fit-content;
    text-decoration: none;
    cursor: pointer;
}
@media screen and (max-width: 683px) {
    .hero .container {
        margin: 30px 0 50px 20px;
    }
}
.heroButton:hover {
    background-color: #013A6E;
}
.heroButton p {
    color: white !important;
}
@media screen and (max-width: 1287px) {
h1 {
    font-size: 3rem;
}
.hero p.main {
    font-size: 1.2rem;
}

}
@media screen and (max-width: 1115px) {
h1 {
    margin: 80px 0 30px 50px;
}
.hero p.main {
    margin-left: 70px;
}
.hero .checks {
    margin-left: 50px;
}
}
@media screen and (max-width: 983px) {
h1 {
    font-size: 3rem;
    width: fit-content;
}
.hero p.main {
    width: fit-content;
}
}
@media screen and (max-width: 795px) {
	h1 {
    margin: 80px 0 30px 20px;
}
.hero p.main {
    width: 80vw;
    margin-left: 40px;
}
.hero .checks {
    margin-left: 20px;
}
}
@media screen and (max-width: 725px) {
    	h1 {
    font-size: 2rem;
    margin: 25px;
}
.hero p.main {
    font-size: 1.2rem;
}
	.checks li {
    height: 60px;
}
}
@media screen and (max-width: 483px) {
	.checks li {
    height: 70px;
}
}
/* SECTION LOGO SLIDER */
.slider {
    width: 620px;
    height: 200px;
    margin-top: 20px;
    position: relative;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 30%,
        rgba(0,0,0,1) 70%,
        rgba(0,0,0,0) 100%
  );
  /* for WebKit browsers */
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 30%,
        rgba(0,0,0,1) 70%,
        rgba(0,0,0,0) 100%
  );
}
.slider .item {
    position: absolute;
    animation: slidePC var(--time) infinite linear;
    --time: 15s;
    animation-delay: calc((var(--time) / var(--item-count) * var(--index)) * -1);
}
.slider img {
    width: 150px;
}
@media screen and (max-width: 680px) {
.slider {
    width: 320px;
    height: 150px;
} 
.slider img {
    width: 100px;
}
.slider .item {
    position: absolute;
    --time: 20s;
    animation: slideMobile var(--time) infinite linear;
    animation-delay: calc((var(--time) / var(--item-count) * var(--index)) * -1);
}
}


/* SECTION TIM */
.gula {
    position: absolute;
    height: auto;
    z-index: -1;   /* keeps it behind text/content */
    pointer-events: none; /* prevents it from blocking clicks */
}
.gula1 {
    top: 200px;   
    left: -100px;  
    width: 400px;
}
.gula2 {
    top: 200px;   
    right: 0;
    width: 300px;
}
.gula4 {
    left: 0;
    bottom: 0;
    width: 600px;
}
.tim {
    position: relative;
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tim .container {
    display: flex;
    justify-content: center;
    margin-inline: auto;
    gap: 20px;
    margin-top: 120px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tim .pfp {
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    min-width: 225px;
    min-height: 225px;
    background-color: #D9D9D9;
    border-radius: 999px;
    left: 37.5px;
    top: -100px;
}
.tim .box {
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 4px -3px rgba(0, 0, 0, 0.25);
    width: 300px;
    height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    background: #ffffff;
    background: radial-gradient(circle, rgb(250, 248, 248) 50%, rgb(245, 247, 248) 100%);
}
.tim h4 {
    color: #1A1A1A;
    font-size: 1.5rem;
    margin: 20px 0 0 0;
}
.tim .box p {
    color: #014A8B;
    font-weight: 500;
    letter-spacing: 1.4px;
}
.tim .box img {
    margin-bottom: 20px;
}
@media screen and (max-width: 965px) {
	.tim .container .box.olo {
        margin-top: 100px;
    }
}
@media screen and (max-width: 632px) {
		.tim .container .box.peto {
        margin-top: 100px;
    }
}
.tim .pfp.profil1 {
    background-image: url(../img/cinege.jpg);
}
.tim .pfp.profil2 {
    background-image: url(../img/logo.png);
}
/* SECTION HRACI */
.hraci {
    margin-top: 130px;
    display: flex;
    width: 90vw;
    gap: 50px;
    max-width: 1300px;
}
.hraci .left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hraci .left .heroButton {
    margin-left: 0;
    align-self: flex-start;
}
.hraci .left p {
    color: #333333;
    font-size: 1.2rem;
}
.hraci .right {
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.hraci .right .row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.hraci .right .wrapper {
    width: fit-content;
    display: flex;
    gap: 20px;
}
.hraci .box {
    text-align: center;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 4px 4px -3px rgba(0, 0, 0, 0.25);
    width: 190px;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    background: #ffffff;
    background: radial-gradient(circle, rgb(250, 248, 248) 50%, rgb(245, 247, 248) 100%);
}
.hraci .pfp {
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    min-width: 130px;
    min-height: 130px;
    background-color: #D9D9D9;
    border-radius: 999px;
    left: 27.5px;
    top: -65px;
}
.hraci .box h4 {
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
    margin: 0 5px;
}
.hraci .box p {
    text-align: center;
    color: #013A6E;
}
@media screen and (max-width: 1244px) {
    .hraci {
        width: 98vw;
        margin-top: 130px;
        flex-direction: column;
    }
    .hraci .right {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }
    .hraci .left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
@media screen and (max-width: 914px) {
    .hraci .right .row {
        flex-wrap: wrap;
        gap: 100px;
}
}
@media screen and (max-width: 453px) {
.hraci .left p {
    margin-left: 10px;
}
.hraci {
    gap: 100px;
}
.hraci .left {
    margin-left: 15px;
}
}
@media screen and (max-width: 400px) {
    .hraci .pfp {
    left: 30px;
    top: -50px;
}
.hraci .box {
    width: 160px;
}
.hraci .pfp {
    min-width: 100px;
    min-height: 100px;
}
}

/* NASTAVOVANIE HRACOV PROFILOVKY */
.hraci .pfp.q {
    background-image: url(../img/hraci/rafael.jpg);
}
.hraci .pfp.w {
    background-image: url(../img/hraci/Tulio.jpg);
}
.hraci .pfp.e {
    background-image: url(../img/hraci/Gabriel.jpg);
}
.hraci .pfp.r {
    background-image: url(../img/hraci/Caio.jpg);
}
.hraci .pfp.t {
    background-image: url(../img/hraci/Caue.jpg);
}
.hraci .pfp.z {
    background-image: url(../img/hraci/Yan.jpg);
}
.hraci .pfp.u {
    background-image: url(../img/hraci/Igor_Souza.jpg);
}

/* SECTION PROGRAMY */
.programy {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}
.programy .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.programy .box {
    position: relative;
    background-color: #F8F9FA;
    border-radius: 20px;
    height: 500px;
    width: 375px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
@media screen and (max-width: 400px) {
main .programy .box {
    height: 535px;
}
}
.programy .box .first {
    color: #4D4D4D;
    font-size: 1.2rem;
    height: fit-content;
}
.programy .box ul {
    flex-direction: column;
}
.programy .box li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.programy .wrapper {
    position: absolute;
    flex-grow: 1;
    bottom: 20px;
    left: 20px;
}
.programy li p {
    color: #1A1A1A;
    margin: 8px 0;
}
.programy h3 {
    color: #013A6E;
    font-size: 2rem;
}
.programy ul {
    padding: 0 0 0 20px;
}
.programy img {
    width: 19px;
    height: 19px;
}
.programy button {
    color: white;
    border-radius: 99px;
    padding: 10px 80px;
    font-size: 1.4rem;
    border: none;
    margin-inline: auto;
}
.programy .aligner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}
.gula3 {
    bottom: 0;
    right: 0;
    width: 800px;
}
@media screen and (max-width: 459px) {
.programy .box {
    height: 500px;
    width: 85vw;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.programy .box.next {
    height: 530px;
}
}
@media screen and (max-width: 402px) {
.programy .box.next {
    height: 560px;
}
}
@media screen and (max-width: 385px) {
.programy .box.next {
    height: 600px;
}
}

/* HAMBURGER MENU BASE */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    gap: 6px;
    z-index: 100;
}
.menu-toggle .bar {
    width: 100%;
    height: 4px;
    background-color: #013A6E;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* OVERLAY MENU */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    overflow: hidden;
}
body.no-scroll {
    overflow: hidden;
    max-height: 100vh !important;
}
.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Overlay list styling */
.nav-overlay ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}
.nav-overlay ul a {
    text-decoration: none;
    color: #013A6E;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: color 0.2s ease-in-out;
}
.nav-overlay ul a:hover {
    color: #014A8B;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    font-weight: 400;
    color: #013A6E;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    z-index: 100000;
}
.close-btn:hover {
    color: #014A8B;
}

/* MOBILE TRIGGER */
@media screen and (max-width: 800px) {
    nav {
        max-width: 78vw;
    }
    nav ul {
        display: none;
    }
    nav button {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* Animate bars into X */
.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
/* Avoid pull-to-refresh/overscroll bubbling while overlay is open */
.nav-overlay {
  overscroll-behavior: contain;
}

/* If you want to belt-and-suspenders it for some Android browsers: */
html, body {
  overscroll-behavior-y: none;
}
