* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Calibri, sans-serif;

}

.align-center {
    text-align: center;
}

p b {
    color: red;
}

.header {
    border-bottom: 8px solid red;
    background-color: #253042;
    padding: 10px 0px;
    padding-bottom: 0px;
    color: white;
}

.column {
    margin: 0px auto;
    width: 100%;
}

#logo-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 15px;
}

#holder-media {
    flex-grow: 1;
    flex-basis: 0;
    text-align: left;
}

#holder-media a {
    text-decoration: none;
}

#holder-media a img {
    margin: 5px;
    margin-top: 7px;
    margin-right: 0px;
    width: 80px;
    height: 80px;
}

#holder-company {
    flex-grow: 1;
    flex-basis: 0;
    text-align: center;
}

#holder-company img {
    margin-top: 7px;
    width: 100px;
    height: 100px;
}


#holder-contact {
    flex-grow: 1;
    flex-basis: 0;
    text-align: right;
}

#holder-contact h2 a {
    text-decoration: none;
    color: white;
}

/* ////////////////////// */
#main-menu {
    display: flex;
    justify-content: center; /* horizontalno centriranje */
    align-items: center;    /* vertikalno centriranje unutar menija */
    position: sticky;       /* ostaje na vrhu prilikom skrolovanja */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #253042;
    z-index: 1000;
    transition: top 0.3s;
    font-weight: bold;
}

#main-menu.scrolled {
    top: 0;
}

#main-menu a {
    flex-grow: 1;
    text-align: center;
    display: block;
    padding: 10px 10px;
    text-decoration: none;
    color: red;
    transition: 300ms;
}

#main-menu a:hover,
#main-menu a.active {
    background-color: red;
    color: white;
}

/*////////////*/
.page .column {
    height: 100%;
}

#pocetna {
    text-align: center;
    background: url('assets/naslovna1.jpg');
    background-size: cover;
    background-position: 50% 40%;
    border-bottom: 5px solid red;

}

.padding {
    padding: 0px 200px;
    padding-top: 200px;
}

.box {
    border: 1px solid white;
    background-color: rgba(25, 30, 42, 0.7);
    font-size: 24pt;
    color: white;
    padding: 50px;
}

.box p {
    font-size: 30pt;
    padding: 15px;
    font-weight: bold;
}

.hidden {
    opacity: 0;
    transform: translateY(100%);
}

#animatedBox p {
    word-wrap: break-word;
}


.animate-in {
    animation: slideInFromBottom 1s ease-out forwards;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

.cyrcles {
    display: flex;
    margin-top: 146px;
    padding-bottom: 80px;
}

.cyrcle-holder {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0px 10px;
}

.cyrcle {
    color: white;
    background: red;
    font-size: 20pt;
    font-weight: bold;
    padding: 50px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.mark {
    font-size: 18pt;
    font-weight: bold;
    margin-top: 15px;
    color: white;

}

.boxx {
    border: 1px solid white;
    background-color: rgba(29, 28, 28, 0.7);
    color: white;
    padding: 10px;
}

/*------------------------------*/
#PVC-stolarija {
    background-color: #253042;
    color: white;
    display: flex;
    padding: 2%;
    padding-bottom: 80px;
    padding-top: 30px;
    border-bottom: 5PX solid red;
}

#PVC-stolarija h2 {
    margin-bottom: 60px;
    font-size: 40pt;
    padding-left: 2%;
}


.grid {
    display: grid;
    grid-template: "ponuda izrada";
    grid-template-columns: 0.5fr 0.5fr;
    grid-gap: 50px;
    margin-top: 10px;
}

.ponuda {
    grid-area: ponuda;
}

.izrada {
    grid-area: izrada;
}

.text-pvc-alu {
    margin-top: 50px;
    padding: 0px 50px;
    font-size: 21px;
    text-align: justify;
}

.text-pvc-alu p {
    text-indent: 30px;
}

.text-pvc-alu ul {
    padding-left: 40px;
    padding-top: 10px;
    font-weight: bold;
    text-align: left;
}

/*-------------------*/
#ALU-stolarija {
    background-color: #253042;
    color: white;
    display: flex;
    padding: 2%;
    padding-bottom: 80px;
    padding-top: 30px;
    border-bottom: 5PX solid red;
}

#ALU-stolarija h2 {
    margin-bottom: 60px;
    font-size: 40pt;
    padding-left: 2%;
}



/*-------------------------*/
#Roletne-Komarnici {
    background-color: #253042;
    color: white;
    display: flex;
    padding: 2%;
    padding-bottom: 80px;
    padding-top: 30px;
    overflow-x: hidden;
    border-bottom: 5px solid red;
}

#Roletne-Komarnici h2 {
    margin-bottom: 60px;
    font-size: 40pt;
    padding-left: 2%;
}

.delovirk {
    display: flex;
    justify-content: space-around;
}

.roletnekomarnici {
    display: inline-block;
    width: 45%;
    /* Možete prilagoditi širinu slika prema vašim potrebama */
    margin: 10px;
    /* Možete prilagoditi margine između slika */
    text-align: center;
}

.roletnekomarnici img {
    width: 75%;
    height: auto;
    margin-bottom: 15px;
}

.roletnekomarnici p {
    font-size: 21px;
    /* Možete prilagoditi veličinu fonta */
    text-align: justify;
    text-indent: 30px;
    
}

.roletne {
    transform: translateX(-150%);
    transition: transform 0.8s ease;

}

.roletne.show {
    transform: translateX(0%);
}

.komarnici {
    transform: translateX(150%);
    transition: transform 0.8s ease;

}

.komarnici.show {
    transform: translateX(0);
}

/*--------------------------------*/
#Klizni-sistemi {
    background-color: #253042;
    color: white;
    display: flex;
    padding: 2%;
    padding-bottom: 80px;
    padding-top: 30px;
    border-bottom: 5PX solid red;
}

#Klizni-sistemi h2 {
    margin-bottom: 60px;
    font-size: 40pt;
    padding-left: 2%;
}

#klizni-sadrzaj {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#klizni-tekst {
    width: 45%;
    /* Prilagodite širinu prema potrebi */
    margin-left: 30px;
    font-size: 21px;
    text-align: justify;
}

#klizni-tekst ul {
    font-size: 25px;
    margin-left: 30px;
}

#klizni-video {
    width: 75%;
    max-width: 1200px;
    /*Primer: ograničavanje maksimalne širine videa */
    margin: 0 auto;
    /*Centriranje videa */
}

/**-----------------------------*/

#contact {
    background-color: #253042;
    color: white;
    display: flex;
    padding: 2%;
    padding-bottom: 60px;
    padding-top: 30px;
}

#contact h2 {
    margin-bottom: 60px;
    font-size: 40pt;
    padding-left: 2%;
}

.contact-region {
    display: grid;
    grid-template: "forma mapa mapa"
        "forma adrese mejlovi";
    grid-template-columns: 1fr 0.5fr 0.5fr;
    grid-gap: 10px;
}

/* Style inputs with type="text", select elements and textareas */
input[type=text],
input[type=tel],
input[type=email],
select,
textarea {
    width: 100%;
    /* Full width */
    padding: 12px;
    /* Some padding */
    border: 1px solid #ccc;
    /* Gray border */
    border-radius: 4px;
    /* Rounded borders */
    box-sizing: border-box;
    /* Make sure that padding and width stays in place */
    margin-top: 6px;
    /* Add a top margin */
    margin-bottom: 16px;
    /* Bottom margin */
    resize: vertical;
    /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    background-color: #45a049;
}

/* Add a background color and some padding around the form */
.container {
    border-radius: 5px;
    background-color: #253042;
    padding-bottom: 20px;
    grid-area: forma;
}

.contact-adress {
    grid-area: adrese;
    font-size: 20pt;
    padding-left: 70pt;
}

.contact-adress a {
    color: white;
    text-decoration: none;
}

.contact-email {
    grid-area: mejlovi;
    font-size: 20pt;
    padding-left: 50pt;
}

.contact-email a {
    color: white;
}

.contact-map {
    grid-area: mapa;
    margin-bottom: 50pt;
    text-align: center;
    width: 100%;
    padding: 0px 10%;
    margin-right: 10px;
}


/* ///////////////////////////// */
.footer {
    border-top: 8px solid red;
    background-color: #253042;
    color: white;
    padding-left: 2%;
    padding-right: 2%;
    font-size: 18px;
}

.footer .column {
    display: flex;
    padding: 20px 15px;
}

.adress {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

}

.info {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.website {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.website a {
    color: white;
    text-decoration: none;
}

.chtl-script{
    width: 250px;
    height: 350px;
}
.slideshow, .slideshowAlu {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: auto;
    overflow: hidden;
    background: #253042; /* pozadina da se vidi razmak */
    border-radius: 10px;
}

.slideshow img,
.slideshowAlu img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; /* KLJUČNO */
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slideshow img.active,
.slideshowAlu img.active {
    opacity: 1;
}
/* ========================= */
/* RESPONSIVE – TELEFONI */
/* ========================= */

@media (max-width: 768px) {
    #logo-social {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    #holder-media,
    #holder-company,
    #holder-contact {
        text-align: center;
    }

    /* MENI */
    #main-menu {
        flex-wrap: wrap;
    }

    #main-menu a {
        flex: 1 1 50%;
        font-size: 14px;
        padding: 12px 5px;
    }

     /* KRUGOVI */
    .cyrcles {
        flex-direction: column;
        gap: 30px;
        margin-top: 80px;
    }
    .cyrcle{
        width: 5em;
        height: 5em;
        font-size: 1.2em;
    }


    /* HERO */
    .padding {
        padding: 140px 20px 0;
    }

    .box {
        padding: 25px;
    }

    .box p {
        font-size: 18pt;
    }
    /* TEKST PVC / ALU */
    .text-pvc-alu {
        padding: 0 15px;
        font-size: 21px;
    }

    .grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "ponuda"
            "izrada";
        gap: 30px;
    }
    /* ROLETNE / KOMARNICI */
    .delovirk {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        
    }

    .roletnekomarnici {
        width: 100%;
    }

    .roletnekomarnici img {
        width: 90%;
    }

    /* KLIZNI SISTEMI */
    #klizni-sadrzaj {
        flex-direction: column;
        padding: 0 15px;
    }

    #klizni-video {
        width: 100%;
    }

    #klizni-tekst {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
        font-size: 21px;
    }

    /* KONTAKT */
    .contact-region {
        grid-template:
            "forma"
            "mapa"
            "adrese"
            "mejlovi";
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .contact-adress,
    .contact-email {
        padding-left: 0;
        text-align: center;
        font-size: 22px;
    }

    .contact-map {
        padding: 0;
    }
    .contact-region > * {
    min-width: 0;
}
    .contact-map iframe {
    width: 100%;
    max-width: 100%;
    display: block;
}

    /* FOOTER */
    .footer .column {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .adress,
    .info,
    .website {
        align-items: center;
    }
}
