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

html {
    scroll-behavior: smooth;
}

/* BODY, SECTION, FOOTER */

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Lato", sans-serif;
    line-height: 1.6;
    background-color: #FEEEE6;
}


section {
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    padding: 20px;
}

footer {
    background-color: #fff;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgb(0, 0, 0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
    font-family: "DM Serif Display", serif;
    font-weight: 800;
    color: #337FAE;
}

h2 {
    font-size: 2em;
}

/* NAVIGACIJA */

nav {
    background-color: #FEEEE6;
    width: 100%;
    position: fixed;
    z-index: 1;
    font-size: 24px;
    font-family: "DM Serif Display", serif;
    box-shadow: 0 2px 4px rgb(0, 0, 0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 3em;
}

nav ul li {
    list-style: none;
}

nav a {
    text-decoration: none;
}

nav a {
    color: #337FAE;
    padding: 8px 12px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #F28705;
}

/* HERO SECTION */

.hero {
    background: url('media/lemon.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 5.8em;
    margin-bottom: 20px;
}

.hero p {
    color: #000000;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: #F2A71B;
    color: #011526;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #F28705;
    transform: translateY(-3px);
}

/* GALERIJA SECTION */

#galerija .slika-blok {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#galerija .slike-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    justify-content: center;
    text-align: center;
}

.img-container img {
    width: 350px;
    height: 400px;
    transition: transform 0.3s ease-in-out;
}

.img-container img:hover {
    transform: scale(1.1);
}

#galerija h2 {
    margin: 3em 0 1em 0;
    text-align: center;
}

/* OBJECT FIT */

.fill2 {
    object-fit: fill;
}

.contain2 {
    filter:hue-rotate(180deg);
    object-fit: contain;
}

.cover2 {
    filter:grayscale(100%);
    object-fit: cover;
}

.none2 {
    filter:grayscale(70%);
    object-fit: none;
}

.scale-down2 {
    filter:grayscale(50%);
    object-fit: scale-down;
}

/* OBJECT POSITION */

.topLeft {
    filter: saturate(150%);
    object-position: top left;
}

.centarCentar {
    object-position: center center;
}

.bottomRight {
    object-position: bottom right;
}

.customPosition {
    object-position: 25% 75%;
}

/* CONTAINER SECTION */

#container h1 {
    margin: 0 0 0 20px;
    font-size: 3em;
}

#container h2 {
    margin-top: 0;
}

#container p {
    margin-left: 20px;
    font-size: 14pt;
    text-align: justify;
}

#container .card p {
    margin: 0;
    font-size: 14pt;
    text-align: justify;
}

#container .opcenito{
    margin-top: 5em;
}

#container div{
    border-radius: 10px;
    padding: 20px;
    background-color: #DAE6CE;
    margin-bottom: 20px;
}

.container-card {
    background-color: #DAE6CE;
    padding: 20px;
    border-radius: 10px;
    margin-top: 0;
    container-name: container;
    container-type: inline-size;
}

@container container (width < 500px) {
    .card {
        width: 90%;
        border: 2px solid rgb(51, 84, 196);
        background-color: #e6d6ce;
    }
}

/* TABLE SECTION */

#table section{
    min-height: 100vh;
}

#table h2 {
    margin: 3em 0 1em 0;
}

table,
th,
td {
    border-top: 1px solid #3498db;
    border-bottom: 1px solid #3498db;
    border-collapse: collapse;
}

.naslovtd{
    background-color: #E6E6CE;
}

td{  
   background-color: #DAE6CE;
}

table * {
    margin: auto;
    width: 50%;
    padding: 10px;
}

/* FAQ SECTION */

#faq section{
    min-height: 100vh;
}

#faq .cjelina {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#faq .sadrzaj {
    margin-top: 10px;
    border-radius: 10px;
    padding: 20px;
    background: #f4f4f4;
    animation: fadeIn 0.3s ease;
}

#faq details {
    margin-bottom: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

#faq details[open] summary:after {
    content: "-";
    transform: rotate(0deg);
    font-size: 1.8em;
    transition: all 0.3s ease-in-out;
}

#faq summary {
    border-radius: 10px;
    padding: 15px 20px;
    background: #f4f4f4;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    list-style: none;
    position: relative;
    transition: background 0.2s ease;
}

#faq summary:hover {
    background: #e9ecef;
}

#faq summary::-webkit-details-marker {
    display: none;
}

#faq summary:after {
    content: "+";
    position: absolute;
    bottom: 12%;
    right: 20px;
    font-size: 1.8em;
    color: #3498db;
    transition: transform 0.3s ease;
}

/* MODAL BOX */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 2.5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 700px;
    border-radius: 5px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
}

.modal-content img {
    width: 400px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* GUMB MODAL  */

.modal-btn {
    margin-top: 50px;
    margin-bottom: 50px;
    background-color: #3498db;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.modal-btn:hover{
    animation: bounce 0.5s ease-in-out;
}

.modal-btn:hover {
    background-color: #2980b9;
}

/* SCROLL-SNAP */

.snap * {
    margin: 0px;
    padding: 0px;
}

.snap1 {
    scroll-snap-type: x;
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
    width: 100%;
    height: 200px;
}

.jedan {
    background-image: url('media/snap1.jpg');
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.dva {
    background-image: url('media/snap2.jpg');
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.tri {
    background-image: url('media/snap3.jpg');
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
}

.snap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ANIMACIJE, KEYFRAMES */

@keyframes bounce {
    0% {
        transform: rotate(0deg) translateY(0px);
    }

    50% {
        transform: rotate(0deg) translateY(-10px);
    }

    100% {
        transform: rotate(0deg) translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}