html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16pt;
}

main {
    min-height: 100vh;
}

.padding-80 {
    padding-top: 80px;
}

.padded-main {
    padding-top: 100px;
}

.no-content-warning {
    text-align: center;
}

.heading-img {
    width: 100%;
}

/* Container za sliku i tekst */
.background-image-container {
    position: relative;
    width: 100%;
    padding-top: 50.76%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
    background-image: url('../images/naslovna-ratio.png'); /* Tvoja slika */
    background-size: contain; /* Slika će uvijek pokriti cijeli container */
    background-position: center top; /* Centriraj sliku unutar containera */
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center; /* Horizontalno centriranje */
    align-items: center;     /* Vertikalno centriranje */
    overflow: hidden;        /* Spriječi prelijevanje sadržaja */
}

/* Tekst unutar slike */
.background-image-container h1 {
    position: absolute;
    color: rgb(21, 63, 50);
    text-decoration: underline;
    text-decoration-color: goldenrod;
    font-size: 4vw; /* Fleksibilna veličina teksta u odnosu na viewport */
    text-align: center;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7); /* Sjena za bolju čitljivost */
    z-index: 1; /* Osiguraj da tekst bude iznad slike */
    margin-bottom: 50%;
}

#o-nama-heading {
    background-image: url('../images/tenis.jpg'); /* Tvoja slika */
    padding-top: 40.76%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
}

#o-nama-heading h1 {
    color: white;
}

h1, h2 {
    color: rgb(21, 63, 50);
    text-decoration: underline;
    text-decoration-color: goldenrod;
    text-align: center;
}

.green-card h2 {
    color: white;
    text-decoration: underline;
    text-decoration-color: goldenrod;
    text-align: center;
    text-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

.sections-nav {
    padding: 20px;
    box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.25);
}

.sub-nav {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sub-nav li {
    position: relative;
    width: 130px;
    padding: 10px;
    text-align: center;
    color: rgb(21, 63, 50);
    border-bottom: 5px solid goldenrod;
    box-sizing: border-box;
    transition: all ease-in-out 0.2s;
}

.sub-nav li:hover {
    border-bottom: 5px solid rgb(21, 63, 50);
}

.sub-nav a {
    text-decoration: none;
    color: goldenrod;
}

.row {
    padding: 10px;
    box-sizing: border-box;
}

.green-card {
    padding: 2%;
    color: white;
    background: rgb(11,42,32);
    background: linear-gradient(38deg, rgba(11,42,32,1) 0%, rgba(21,63,50,1) 36%, rgba(23,116,87,1) 100%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    box-sizing: border-box;
}

.white-card {
    padding: 2%;
    background-color: rgb(245, 245, 245);
    color: #383838;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid #ddd;
}

.transparent-card {
    padding: 2%;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

#welcome ul {
    list-style: none;
    padding-left: 0px;
}

@media screen and (min-width: 1024px) {
    #welcome ul {
        padding-left: 20px;
    }
}

.collapsable-list-item {
    margin-top: 10px;
    margin-bottom: 15px;
    min-height: 52px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.25);
    transition: all ease-in-out 0.2s;
    box-shadow: 0px 5px 10px rgb(21, 63, 50, 1);
    box-sizing: border-box;
}

.collapsable-list-item:hover {
    box-shadow: 0px 5px 15px rgb(0, 0, 0, 0.5);
}

.collapsable-list-item p{
    width: 80%;
    margin-left: 2%;
}

.visible-paragraph-container {
    display: flex;
    align-items: center;
}

.toggle-btn {
    background-color: white;
    color: goldenrod;
    height: 50px;
    width: 50px;
    padding: 5px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0px 5px 10px rgb(0, 0, 0, 0.5);
}

.hidden-paragraph-container {
    display: none;
    opacity: 0;
    transition: all ease-in-out 0.5s;
    max-height: 0;
    overflow: hidden;
    margin-left: 10%;
    box-sizing: border-box;
}

.hidden-paragraph-container.active {
    display: block;
    min-height: 300px; /* ili koliko je potrebno */
    opacity: 1;
    box-sizing: border-box;
}

#locations .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#locations ul {
    width: 250px;
}

#locations img {
    width: 250px;
    height: 250px;
}

.board {
    border: 15px solid rgb(165, 101, 42);
    border-radius: 5px;
    background-image: url("../images/pano.jpg");
    background-size: contain;
    box-shadow: inset 0px 0px 5px black, 0px 10px 10px rgba(77, 77, 77, 0.5);
    width: 100%;
    margin: 0 20px;
    box-sizing: border-box;
}

.board h2 {
    text-align: center;
    color: white;
    text-shadow: 0px 0px 10px black;
}

.more-btn-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.sports-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.sport-circle {
    margin: 10px;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 85px;
    border: 10px solid goldenrod;
    box-shadow: 0px 0px 10px goldenrod, 0px 15px 15px rgba(0, 0, 0, 0.5);
    background-color: rgb(158, 121, 27);
    color: rgb(80, 66, 27);
    font-size: 12pt;
    font-variant: small-caps;
    font-weight: 700;
    transition: all ease-in-out 0.2s;
}

.sport-circle:hover {
    animation: scale-animation 0.2s ease-in-out forwards;
    box-shadow: 0px 0px 15px goldenrod, 0px 10px 15px rgba(0, 0, 0, 0.5);
}

@keyframes scale-animation {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1);
    }
  }

.effect {
    text-align: center;
    display: inline-block;
    position: relative;
    text-decoration: none;
    color: #fff;
    text-transform: capitalize;
    background-color: rgb(21, 63, 50);
    font-size: 18px;
    padding: 20px 0px;
    width: 150px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.55);
}

.effect.effect-2 {
    transition: all 0.2s linear 0s;
    color: white;
}
.effect.effect-2:before {
    content: "\f0a4";
    font-family: FontAwesome;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: -30px;
    width: 30px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.642);
    color: rgb(21, 63, 50);
    font-size: 18pt;
    border-radius: 0px 0px 0px 0px;
    transition: all 0.2s linear 0s;
    text-align: center;
}
.effect.effect-2:hover {
    text-indent: -30px;
    box-shadow: 0px 0px 10px rgba(21, 63, 50, 0.55);
}
.effect.effect-2:hover:before {
    right: 0;
    text-indent: 0px;
}

/* EFEKT NA LIJEVOJ STRANI */

.effect.effect-1 {
    transition: all 0.2s linear 0s;
}
.effect.effect-1:before {
    content: "\f0a5";
    font-family: FontAwesome;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.642);
    color: rgb(21, 63, 50);
    font-size: 18pt;
    border-radius: 0px 0px 0px 0px;
    transition: all 0.2s linear 0s;
    text-align: center;
}
.effect.effect-1:hover {
    text-indent: 30px;
    box-shadow: 0px 0px 10px rgba(21, 63, 50, 0.55);
}
.effect.effect-1:hover:before {
    left: 0;
    text-indent: 0px;
}

/* FontAwesome ikonica ruke koja pokazuje lijevo \f0a5 */ 
    
.locations-list li {
    margin-top: 5px;
}

.post-card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-card {
    width: 250px;
    padding: 0;
    margin: 20px;
    border-radius: 10px;
    text-align: center;
    background-color: rgba(245, 245, 245, 0.9);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
    transition: all ease-in-out 0.2s;
}

.post-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.post-card h3 {
    height: 50px;
    font-size: 14pt;
}
.post-card-date {
    font-size: 12pt;
}

.post-card a {
    text-decoration: none;
    color:rgb(21, 63, 50)
}

.post-card-img-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    transition: all ease-in-out 0.2s;
    display: block;
}
.post-card img:hover {
    transform: scale(1.1);
}

.ig-post {
    margin: 10px;
}

.facebook-post {
    background-image: url("../images/fb-bg.png");
    background-size: contain;
}

.facebook-post-wrapper {
    text-align: center;
    padding: 5px;
    display: flex;
    justify-content: center;
}

.facebook-post-container, .ig-post {
    padding: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.25);
}

.curved-section {
    display: flex;
    flex-direction: column;
}

.top-shape {
    width: 100%;
}

.green-div {
    background-color: rgb(21, 63, 50);
}

/* SPONZORI */

#sponzori {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gold-lined {
    max-width: 1280px;
}

.sponzori-logo {
    filter: grayscale(100%);
    transition: all ease-in-out 0.3s;
}

.sponzori-logo:hover {
    filter: grayscale(0%);
}

/* KONTAKT */

.socials-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.socials-wrapper a {
    font-size: 50px;
    width: 75px;
    height: 75px;
    margin: 20px;
    color: rgb(21, 63, 50);
    border: 4px solid rgb(21, 63, 50);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all ease-in-out 0.3s;
}

.socials-wrapper a:hover {
    color: goldenrod;
    border-color: goldenrod;
}

form button {
    border: 2px solid white;
    cursor: pointer;
}

input, textarea {
    width: 100%;
    margin-bottom: 10px;
    border: 2px solid goldenrod;
    box-sizing: border-box;
    text-indent: 10px;
}

input, textarea {
    outline: none;
}

input {
    height: 50px;
}

textarea {
    height: 100px;
}