/* CSS variables are set dynamically via Blade template */

html {
    scroll-behavior: smooth;
    font-size: var(--base-font-size);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    position: relative;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color); /* Matches the page design */
    z-index: 1000; /* Ensures it's above other elements */
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds shadow to distinguish from content */
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap; /* Prevents wrapping by default */
    margin: 0;
    padding: 0;
}

/* Adjustments for smaller devices */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap; /* Allows items to wrap onto the next line */
        justify-content: space-around; /* Adjusts spacing to fill available space */
    }
}

nav ul li {
    margin: 0 15px;
    white-space: nowrap;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: calc(1.2 * var(--base-font-size));
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--nav-hover-color);
}


body {
    padding-top: 60px; /* Adjust to the height of the fixed nav */
}


.hero {
    z-index: 2;
}

.hero h1 {
    font-size: clamp(calc(3 * var(--base-font-size)), 16vw, calc(5 * var(--base-font-size)));
    font-weight: bold;
}

.hero p {
    font-size: calc(1.5 * var(--base-font-size));
}

/* Gallery with click-to-enlarge feature */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
    margin: 0 auto;
    padding: 2em 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

/* Brighter Canvas for Particles */
#abstractCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    background-color: var(--canvas-bg-color);
}

.section {
    padding: 4em 0;
    text-align: center;
    z-index: 2;
    position: relative;
}

.container {
    width: 80%;
    margin: 0 auto;
}

h2 {
    font-size: calc(2.5 * var(--base-font-size));
    margin-bottom: 1.5em;
    color: var(--text-color);
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
}

label {
    margin-top: 1em;
    font-size: calc(1.1 * var(--base-font-size));
    color: var(--text-color);
}

input, textarea, select {
    width: 100%;
    max-width: 500px;
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: var(--base-font-size);
    background-color: #fff;
    color: var(--text-color);
}

input[type=color] {
    height: 42px;
    width: 42px;
}

button, a.button {
    padding: 0.7em 2em;
    font-size: calc(1.2 * var(--base-font-size));
    border: none;
    background-color: var(--button-bg-color);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin: 5px;
    margin-top: 1.5em;
}

button:hover, a.button:hover {
    background-color: var(--button-hover-color);
}

/* Smaller button */
button.small-button, a.small-button {
    margin-top: 2em; /* Higher vertical margin */
    padding: 0.5em 1.5em; /* Smaller padding */
    font-size: calc(1.2 * var(--base-font-size)); /* Slightly smaller font size */
    border-radius: 5px; /* Same border radius for consistency */
    margin: 5px;
}

button.small-button:hover, a.small-button:hover {
    background-color: var(--button-hover-color);
}

footer {
    text-align: center;
    padding: 2em 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.mosaic-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background-color: var(--canvas-bg-color);
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100vh;
    gap: 5px;
}

.mosaic-item {
    position: relative;
    flex: 1 1 calc(50% - 10px); /* Pro mobilní zobrazení (2 sloupce) */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(5px); /* Původně rozmazané */
    transition: filter 0.3s ease; /* Přechod rozmazání */
    animation: fadeAnimation 5s infinite alternate; /* Prolínání */
}

/* Nová vrstva pro překrytí obrázků */
.mosaic-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease; /* Plynulý přechod mezi obrázky */
}

.mosaic-item img.active {
    opacity: 1; /* Zobrazí aktivní obrázek */
}

/* Animace prolínání obrázků */
@keyframes fadeAnimation {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Pro větší obrazovky (4 sloupce) */
@media (min-width: 768px) {
    .mosaic-item {
        flex: 1 1 calc(25% - 10px); /* 4 sloupce */
    }
}

/* Po najetí myši se rozmazání odstraní a animace zastaví */
.mosaic-item:hover {
    filter: blur(0);
    animation-play-state: paused;
}

#artistName, #artistSlogan {
    color: #fff;
    /* Efekt kontrastního obrysu */
    text-shadow:
            0 0 5px #000,
            0 0 5px #000,
            0 0 5px #000,
            0 0 5px #000,
            0 0 5px #000,
            0 0 5px #000,
            0 0 5px #000
}

/* Gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust to your desired min/max width */
    gap: 5px; /* Space between images */
}

.gallery-item {
    position: relative;
    overflow: hidden; /* Ensures round corners and hover scaling stay inside the container */
    border-radius: 10px; /* Rounded corners */
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without stretching */
    transition: transform 0.3s ease;
    border-radius: 10px; /* Ensure the images follow the rounded corners */
}

.gallery-item:hover {
    z-index: 10; /* Bring hovered item to the front */
}

.gallery-item img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Optional text styling */
.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover p {
    opacity: 1; /* Show text on hover */
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
}

#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* 16:9 aspect ratio */
    height: 100vh;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Prevent clicks on the video */
    filter: blur(10px);
}

#linkTree {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: row;
}

.block-text {
    font-size: calc(1.1 * var(--base-font-size));
}
