@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@700&display=swap');

#cursor {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    width: 60px;
    height: 60px;
    pointer-events: none;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
    transition: 0.35s ease width, 0.35s ease height, 0.35s ease border, 0.35s ease background;
    transform: translate(-50%, -50%);
    z-index: 150;
    mix-blend-mode: difference;
}

#cursor.mute {
    background-image: url("../images/mute.svg");
}

#cursor.sound {
    background-image: url("../images/sound.svg");
}

/* smartphones, touchscreens */
@media (hover: none) and (pointer: coarse) {
    #cursor {
        display: none;
    }
}

/* stylus-based screens */
@media (hover: none) and (pointer: fine) {
    #cursor {
        display: none;
    }
}

/* Nintendo Wii controller, Microsoft Kinect */
@media (hover: hover) and (pointer: coarse) {
    #cursor {
        display: none;
    }
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: "Open Sans", sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

body .home {
    background-color: #000000;
}

h1, h2, h3, nav {
    font-family: "Oswald", sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 2px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    font-size: 1rem;
}

/* Header styles */
header {
    color: #fff;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 7;
}

header img {
    width: 150px;
}

header h1 {
    margin: 0;
}

/* Základný štýl pre navigáciu */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 10px;
    left: 20px;
    transition: top 0.3s ease;
    z-index: 1000;
    box-sizing: border-box;
    width: calc(100% - 40px);
    backdrop-filter: saturate(130%) blur(10px);
    background-color: rgba(0, 0, 0, 1);
    border-radius: 0.8rem;
    border: 1px solid hsla(0, 0%, 100%, .2);
}

nav.home-nav {
    background-color: rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
}

nav ul li a {
    color: #fff;
    text-decoration: none;

}

/* Štýl pre hamburger menu (skryté na veľkých obrazovkách) */
.menu-icon {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

/* Responzívne štýly pre mobilné zariadenia */
@media (max-width: 768px) {
    /* Skryť odkazy na menších obrazovkách a zobraziť hamburger ikonu */
    html {
        font-size: 80%;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: rgba(0, 0, 0, 1);
        border-radius: 0.8rem;
        padding: 15px;
        width: 200px;
    }

    nav ul li {
        margin: 10px 0;
        text-align: right;
    }

    /* Zobraziť menu po kliknutí na hamburger */
    #navLinks.active {
        display: flex;
    }

    .menu-icon {
        display: flex;
    }
}

/* Main section styles */
.home-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.2);
    padding-top: 50px;
}

.home-content h2{
    color: #ffffff;
    font-weight: 600;
    font-size: 19px;
    text-transform: uppercase;
    padding: 0 20px;
    margin: 0 auto;
    max-width: 1450px;
    text-align: center;
}

blockquote {
    font-family: "Oswald", sans-serif;
    font-style: italic;
    font-size: 5rem;
    line-height: 1;
    text-align: center;
    width: 80%;
    margin: 8rem auto;
}

@media (max-width: 768px) {
    blockquote {
        font-size: 2rem;
        width: 100%;
    }
}

cite {
    font-size: 1rem;
    display: block;
    margin-top: 10px;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

mark {
    background-color: yellow;
}

q {
    quotes: "“" "”";
    font-style: italic;
}

/* Footer styles */
footer {
    background-color: #5542FF;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1450px;
    margin: 0 auto 20px;
    border-radius: 0.8rem;
    border: 1px solid hsla(0, 0%, 100%, .2);
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .hero-content {
    position: absolute;
    top: 130px;
    left: 80px;
    z-index: 5;
    width: calc(100% - 160px);
    height: 80vh;
    mix-blend-mode: difference;
}

.hero .hero-content h1 {
    font-size: 11vw;
    color: white;
    margin: 0;
    object-fit: contain;
}

.hero .hero-content h1 span {
    position: absolute;
    bottom: 20px;
    right: 0;
}

.hero .hero-content p {
    font-size: 1.7vw;
    color: white;
    line-height: 1.1;
    margin: 0.2vw 0 0 0;
    width: 25vw;
}

.hero .btn {
    color: white;
    display: inline-block;
    background-color: #5542FF;
    border-radius: 50px;
    padding: .8vw 2vw;
    border: 1px solid hsla(0, 0%, 100%, .2);
    font-size: 1vw;
    flex-shrink: 0;
    text-decoration: none;
    position: absolute;
    left: 80px;
    top: calc(140px + 16vw);
    z-index: 6;
}

@media (max-width: 768px) {
    .hero {
        height: 75vh;
    }

    .hero .hero-content {
        left: 20px;
        width: calc(100% - 40px);
        height: 60vh;
    }

    .hero .hero-content h1 {
        font-size: 19vw;
    }

    .hero .hero-content h1 span {
        position: absolute;
        bottom: 0;
        right: 0;
    }

    .hero .hero-content p {
        font-size: 4.5vw;
        margin: 1vw 0 0 0;
        width: 67vw;
    }

    .hero .btn {
        padding: 3vw 6vw;
        font-size: 4vw;
        left: 20px;
        top: calc(130px + 35vw);
    }
}

.hero #toggleSound {
    z-index: 5;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.2;
    cursor: none;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    unicode-bidi: isolate;
}

.background-video video {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: 0.9;
}

.home {
    background-color: #000000;
}

.grid-card {
    padding: 50px 150px 100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 stĺpce s rovnakou šírkou */
    grid-template-rows: auto; /* Automatické výšky riadkov */
    gap: 2.5rem; /* Medzera medzi prvkami */
    max-width: 1450px;
}

.item {
    transition: transform 0.3s ease;
    border: 1px solid hsla(0, 0%, 100%, .2);
    border-radius: .8rem;
    padding: 2.5rem;
    contain: content;
    display: flex;
    overflow: hidden;
    position: relative;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden; /* Skryje zadnú stranu elementu pri transformácii */
    -webkit-font-smoothing: antialiased; /* Zlepšuje vykresľovanie textu na Webkit prehliadačoch */
}

.item:hover {
    transform: scale(0.95) translateZ(0);
}

.item:before {
    content: "";
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 1) 120%);
    width: 100%;
    height: 100%;
    z-index: 2;
    left: 0;
    top: 0;
    position: absolute;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.item:hover:before {
    opacity: 0.3;
}

.text {
    z-index: 3; /* Uistite sa, že text je nad pseudo-elementom :before */
    transform: none; /* Žiadna transformácia priamo na texte */
}

.item1 {
    grid-column: 1 / span 2;
    background-color: black;
    aspect-ratio: 1300 / 500;
    position: relative;
}

.item img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

.item video {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

.item h3 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
    font-size: 19px;
    text-transform: uppercase;
}

.item p {
    margin: 0;
    color: #ffffff;
    flex-shrink: 0;
    font-size: 15px;
    opacity: 0.8;
}

.item2 {
    grid-column: 1 / span 1; /* Druhý prvok je v prvom stĺpci */
    grid-row: 2 / span 2; /* Druhý prvok sa rozprestiera cez druhý a tretí riadok */
    background-color: black;
    aspect-ratio: auto;
}

.item3 {
    grid-column: 2 / span 1; /* Tretí prvok je v druhom stĺpci */
    grid-row: 2; /* Tretí prvok je v druhom riadku */
    background-color: black;
    aspect-ratio: 630 / 300;
}

.item4 {
    grid-column: 2 / span 1; /* Štvrtý prvok je v druhom stĺpci */
    grid-row: 3; /* Štvrtý prvok je v treťom riadku */
    background-color: black;
    aspect-ratio: 630 / 300;
}

@media (max-width: 1200px) {
    .grid-card {
        grid-template-columns: 1fr; /* 1 stĺpec */
        grid-template-rows: repeat(4, auto); /* 4 riadky */
        padding: 20px 20px 100px; /* Menšia výplň pre menšie obrazovky */
    }

    .item1, .item2, .item3, .item4 {
        grid-column: 1 / span 1; /* Každý prvok obsadí 1 celý stĺpec */
        aspect-ratio: 630 / 300;
    }

    .item2 {
        grid-row: 2; /* Druhý prvok sa rozprestiera cez druhý a tretí riadok */
    }

    .item3 {
        grid-row: 3; /* Tretí prvok je v druhom riadku */
    }

    .item4 {
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .item1, .item2, .item3, .item4 {
        grid-column: 1 / span 1; /* Každý prvok obsadí 1 celý stĺpec */
        aspect-ratio: 630 / 500;
    }

    .item2 {
        grid-row: 2; /* Druhý prvok sa rozprestiera cez druhý a tretí riadok */
    }

    .item3 {
        grid-row: 3; /* Tretí prvok je v druhom riadku */
    }

    .item4 {
        grid-row: 4;
    }
}

.item .text {
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.4rem 2rem;
    width: calc(100% - 4rem);
    backdrop-filter: saturate(130%) blur(10px);
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.8rem 0.8rem 0 0;
}

@media (max-width: 768px) {
    .item .text {
        flex-direction: column;
    }

    .item p {
        display: none;
    }
}

.button {
    background-color: black;
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid hsla(0, 0%, 100%, .2);
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 20px;
    text-decoration: none;
}

.hero-sub {
    width: 100%;
    height: 450px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5542FF;
    color: #000000;
    padding: 1rem;
}

.hero-sub h1 {
    font-size: 6rem;
    letter-spacing: 0;
    padding-top: 70px;
}

.sub-page {
    width: calc(100% - 40px);
    max-width: 1450px;
    margin: 0 auto;
    padding: 60px 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto; /* Umožňuje horizontálne posúvanie */
    -webkit-overflow-scrolling: touch; /* Zlepšuje posúvanie na mobilných zariadeniach */
    padding: 2px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

tbody tr {
    background-color: #fff; /* Biele pozadie pre každý riadok */
    border-radius: 15px; /* Zaoblené rohy riadkov */
    box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 20%);
}

tbody tr:hover {
    background-color: #f0f0f0;
}

td {
    padding: 10px;

}

th {
    font-weight: bold;
    text-align: center;
}

tbody td:first-child, th:first-child {
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
}

tbody td:last-child, th:last-child {
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
}

table img {
    width: 250px;
    height: 160px;
    object-fit: cover;
    border-radius: 0.8rem;
}

.scroll {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    table img {
        width: 120px;
        height: 120px;
    }

    .hero-sub {
        height: 300px;
    }

    .hero-sub h1 {
        font-size: 3rem;
    }

    tbody tr {
        background-color: #f4f4f4
    }

    td {
        text-align: left;
    }

}

.contact-section {
    box-sizing: border-box;
    width: calc(100% - 40px);
    max-width: 1450px;
    margin: 0 auto 20px;
    height: calc(100vh - 130px);
    padding-top: 240px;
}

.contact-card:before {
    content: "";
    position: absolute;
    width: calc(100% + 70px);
    left: -24px;
    top: 17px;
    height: 100%;
    border-radius: 0.8rem;
    transform: matrix3d(0.959064, -0.0060741, 0, -0.0002573, 0.0094876, 0.994729, 0, -0.0002786, 0, 0, 1, 0, -22.4604, -23.6293, 0, 1);
    z-index: -1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}


@media (max-width: 600px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
}


.img-map {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 40px 0;

}

.img-map img {
    width: 599px;
    max-width: 100%;
    box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 20%);
    border-radius: 0.8rem;
}

.img-map figcaption {
    width: 599px;
    max-width: 100%;
    margin-top: 10px;
    display: block;
    text-align: justify;
}

dt {
    font-weight: bold;

}

dd {
    margin: 0 0 10px;
}

figcaption {
    font-size: 0.85rem;
}

.audio-figure {
    width: 100%;
    background-color: white;
    border-radius: 0.8rem;
    box-shadow: 0 0 0 1px hsl(0deg 0% 0% / 20%);
    display: flex;
    align-items: center;
    margin: 0 0 10px;
}

audio {
    width: 40%;
    flex-shrink: 0;
}

audio::-webkit-media-controls-panel {
    background-color: white; /* Zmení pozadie panelu na tmavosivú */
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-timeline,
audio::-webkit-media-controls-volume-control-container {
    filter: hue-rotate(120deg); /* Zmení farebný odtieň ovládacích prvkov */
}

@media (max-width: 768px) {
    .audio-figure {
        flex-direction: column;
        padding: 0 10px;
        box-sizing: border-box;
    }

    audio {
        width: 100%;
        flex-shrink: 0;
        order: 2;
    }

    .audio-figure figcaption {
        margin: 20px 0 0;
        text-align: center;
    }
}

.float-img {
    float: left;
    margin: 0 15px 10px 0;
    width: 250px;
}