main{
    margin: 5vw;
    
}

.content {
    padding-top: 25vh;
    display: flex;
    justify-content: center; /* Center the file tree container */
}

.atleti-info {
    width: 100%;
    height: 50vh;
    display: flex;
    flex-direction: horizontal;
}

.atleti-info h1 {
    color: black;
    font-size: 3rem;
}

.atleti-info hr {
    width: 100%;
    margin: 10px 0;
}

.atletska-sola img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 50%;
}

.atletska-sola img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.description-main, .atletska-sola{
    display: flex;
    justify-content: center;
}

.description-main {
    width: 50%;
    flex-direction: column;
    padding-left: 10vw;
}

.atletska-sola {
    align-items: center;
    width: 50%;
}

.sub-nav {
    display: flex;
    flex-direction: row; /* Use 'row' instead of 'horizontal' */
    color: Black;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    height: 8vh;
    width: 100%;
    align-items: center;
    position: sticky;
    top: 0; /* Make the element stick to the top */
    z-index: 1000; /* Ensure it appears above other content */
    background-color: #fff; /* Optional: set a background color to avoid transparency issues */
}


.sub-nav ul {
    list-style: none;
}

.sub-nav li{
    float: left;
    margin: 0 5vw 0 5vw;
}

.sub-nav a {
    color: black;
    text-decoration: none;
    transition: text-decoration 0.3s ease, color 0.3s ease;
}

.sub-nav a:hover {
    text-decoration: underline;
    color: #333; /* po želji, da dodaš subtilen efekt */
}

section h2 {
    margin: 2vh 2vw;
    font-size: 2rem;
}


.dokumenti {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5vh 5vw;
    margin: 0 auto;
}

.dokumenti-article, .kako-do-nas-article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.predstavitev {
    margin-bottom: 10vh;
}

.predstavitev, .zgodovina {
    display: flex;
    flex-direction: column;   /* Vse eno pod drugim */
    align-items: flex-start;  /* Poravnava na levo */
    width: 100%;
}

.predstavitev h2, .zgodovina h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.predstavitev hr, .zgodovina hr {
    width: 100%;
    border: none;
    border-top: 2px solid #444;
    margin: 0.5rem 0 1rem 0;
}

.zgodovina p {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;

    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;

    /* Stolpci */
    column-count: 2;
    column-gap: 4rem;
    column-rule: 1px solid #ccc;

    /* Odstranimo zamik prve vrstice */
    text-indent: 0;
}

.zgodovina p::first-letter {
    float: left;
    font-size: 5rem;
    line-height: 1;
    font-weight: bold;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    color: #222;
    font-family: serif;
    margin-top: 0.2rem;
}


.predstavitev p, .zgodovina p {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    color: #555;

    /* odstranjeno: text-indent: 2rem; */
}

/* Prilagodi ::first-letter brez dodatnega zamika */
.predstavitev p::first-letter {
    float: left;
    font-size: 5rem;
    line-height: 1;
    font-weight: bold;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    color: #222;
    font-family: serif;

    /* Dodatno za poravnavo z osnovnim besedilom */
    margin-top: 0.2rem;
}


.custom-shape {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-tree-container {
    width: 50vw;
    max-width: 1200px; /* Limit the max width */
    border-radius: 10px;
    border: 1px solid gray;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Card-like shadow */
    background-color: rgb(255, 255, 255); /* Optional: Background color for the container */
    box-sizing: border-box;
    margin: 5vw 25vw 5vw 25vw;
}

/* File tree styling inside the card */
.file-tree {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.file-tree ul{
    list-style: none;

}

.file-tree li {
    margin: 5px 0;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 1.2rem; /* Adjust text size */
    color: #333; /* Text color remains */
}

/* Folder and file icons styling (colors remain the same) */
.file-tree .folder::before, .file-tree .file::before {
    font-size: 1.2rem; /* Adjust icon size */
    margin-right: 10px; /* Space between icon and name */
}

.file-tree .folder::before {
    content: '📁'; /* Font Awesome folder icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.file-tree .folder.open::before {
    content: '📂'; /* Font Awesome open folder icon */
}

.file-tree .file::before {
    content: '📃'; /* Font Awesome file icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px; /* Space between icon and name */
    font-size: 1.2rem; /* Adjust size if needed */
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    margin-top: 0vh;
    border-radius: 10px 10px 0 0;
    background-color: rgb(173, 173, 173);
}

.file-tree-container h2 {
    color: #444;
}

.hidden {
    display: none;
}

.dokumenti {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-image: url(../../assets/green-blue-gradient-top.svg);
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: center; 
}

.kako-do-nas {
    padding: 5vw;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-image: url(../../assets/red-orange-gradient-full.svg);
    background-size: cover;
    background-repeat: no-repeat; 
    background-position: center; 
}

.kako-do-nas > h2{
    color: white;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@keyframes moveLeftRight {
  0%, 100% {
    transform: translateX(-15px);
  }
  50% {
    transform: translateX(15px);
  }
}

@keyframes moveUpDownRotated {
  0%, 100% {
    transform: translateY(-5px) rotate(90deg);
  }
  50% {
    transform: translateY(5px) rotate(90deg);
  }
}

.kako-do-nas img {
  animation: moveLeftRight 3s ease-in-out infinite;
}

.spacer{
  background-color: #ccc;
  border: 2px solid #ccc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


/* Responsive adjustments */
@media (max-width: 1000px) {
    .file-tree-container {
        width: 95vw; /* Adjust container width for smaller screens */
        padding: 15px;
    }
}


@media (max-width: 768px) {
  .content,
  .atleti-info,
  .description-main,
  .atletska-sola,
  .dokumenti,
  .dokumenti-article,
  .kako-do-nas,
  .kako-do-nas-article,
  .predstavitev,
  .zgodovina,
  .custom-shape,
  .file-tree-container {
    flex-direction: column !important;
    width: 100% !important;
    padding: 2vh 5vw !important;
    margin: 0 auto !important;
  }

  .atleti-info {
    height: auto;
  }

  .description-main,
  .atletska-sola {
    padding: 0 !important;
    width: 100% !important;
  }

  .sub-nav li {
    float: none;
    margin: 2vh 0;
    text-align: center;
  }

  .file-tree-container {
    width: 100% !important;
    margin: 0 !important;
  }

  .kako-do-nas img {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
  }

  .kako-do-nas > h2 {
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
  }

  .zgodovina p {
    column-count: 1;
  }

  .nav-dogodki,
  .sub-nav {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .kako-do-nas img {
    width: 1rem;                 /* smaller image */
    max-width: 1rem;
    transform: rotate(90deg);   /* rotate downward */
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
  }
}

@media (max-width: 768px) {
  .kako-do-nas img {
    width: 1rem;
    height: 1rem;
    animation: moveUpDownRotated 2s ease-in-out infinite;
  }
}
