*{
    font-family: "Roboto";
}

.header{
      
    height: 10vh;
    color:white;
    background-color: rgb(185, 13, 13);
    font-weight: 700;
    width:100%;
    position:fixed;
    top:0;
    left: 0;
    z-index: 3;

}

.header ul{
    list-style-type: none;
    display: flex;
    width:80%;
    height:100%;
    justify-content: space-between;
    margin:auto;
    transform: translateY(90%);
    text-align: center;
}

.header a{
    text-decoration: none;
    color:white;
}

.header a:hover{
    text-decoration-line: underline;
    text-underline-offset: 50%;
    text-decoration-style: solid;
    text-decoration-thickness: 2px; 
    cursor:pointer;
    
}



#Carousel-container{
    justify-content:center;
    align-items:center; 
    height:70vh;
    display:flex;
    margin-bottom: 10vh;
    display:flex;
    overflow: hidden;
    margin-top: 6%;
}

#Filter-effect{
    position:absolute;
    background-color:rgba(12, 11, 11, 0.75);
    z-index: 2;
    height:75vh;
    width:100%;
    top:0;
    visibility: hidden;
}

#Popisek{
    position:relative;
    font-size: 14vh;
    color:rgb(20, 21, 87);
    font-weight: 600;
    letter-spacing:normal;
    transition: transform 0.5s ease-in-out;
    display:block;
    height:fit-content;
}

#slide_1{
    display:block;
    transform: translateY(-10%);
    
}

#slide_1_1{
    display:flex;
    justify-content: center;
}

#logo{
    margin-top: 5%;
}

#Popisek2{
    position:absolute;
    font-size: 20vh;
    color: black;
    font-weight: 600;
    top:70%;
    left:170%;
    z-index: 3;
    letter-spacing:20px;
    transition: transform 0.5s ease-in-out;
    opacity:1;    
    width: 40%; 
    display:none;
    
    
}

#Popisek2_1{

    font-size: 20%;
    transform: translateY(0%);
    letter-spacing:normal;
    height: 30%;
    display:flex;
    margin:auto;
    justify-content: center;
    
}

#Popisek2_1 button{
    background-color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;

}

#Popisek2_2{
    display:block;
    margin:auto;
}

#Popisek2_2 p{
  color:white;
}

#Popisek2_3{
    display:flex;
    justify-content: center;
}

#Popisek3{
    position:absolute;
    left:225%;
    width:20%;
    
    font-size: 2rem;
    color: black;
    font-weight: 600;
    display: none;
    
    justify-content: center;

}

#Popisek3_1{
    display:block;
    margin:auto;
    width:85%;
    
}

#Popisek3_2{
    display:flex;
    justify-content: center;
    
}

#Popisek3_2 button{
    background-color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;

}



#Carousel-container2{
    
    width:100%;  
    height:70vh;
    
    
}

#Carousel{
    display: flex;
    height:100%;
    width:100%;
    transition: transform 0.5s ease-in-out;
    

}

.slide {
    min-width: 100%;   /* each slide = full container width */
    height: 100%;
    flex-shrink: 0;
    display: flex; 
    justify-content: center;
    align-items: center;  

  }

.slide img{
    display:block;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
}


    .btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      padding: 10px 15px;
      cursor: pointer;
      font-size: 18px;
      border-radius: 5px;
      z-index: 3;
    }

    .btn.prev {
      left: 10px;
    }

    .btn.next {
      right: 10px;
    }

.section2{
    background-color:rgba(200,200,200,0.3);
    padding: 2%;
    width:90%;
    border-radius:5px;
    margin:auto;
}

.vysledky{
    width:80%;
    margin:auto;

}

.tym_vysledky{
    margin-bottom: 2%;
}

.toggle_down{
    border: 1px gray solid;
    background-color: rgb(185, 13, 13);
    border-radius: 5px;
    color:white;
    padding-left: 5%;
    padding-right: 5%;
    display:flex;
    justify-content: space-between;
    align-items: center;

}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}


.toggle_down:hover{
    cursor:pointer;
}

.table-wrapper{
    max-height: 0px;
    cursor:pointer;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin: auto;
    width:100%;
    
}

.sports-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  

}

.table-wrapper.active{
    max-height: 900px;
}


.zapas{
    height:auto;
    width: auto;
    cursor:pointer;
}

.body{
    display:none;
    overflow: hidden;
    transition: max-height 0.4s ease;
    
}

.body.active{
    display:table-row;
    cursor: default; 
}

.sports-table thead {
  background: linear-gradient(90deg, #004aad, #0074e4);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.sports-table th, 
.sports-table td {
  padding: 14px 18px;
  text-align: left;
}

.sports-table tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: background 0.2s ease;
}

.sports-table tbody tr:hover {
  background: #f5f9ff;
}

.sports-table td {
  font-size: 0.95rem;
  color: #333;
}

.sports-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.sports-table td:last-child {
  font-weight: 600;
  color: #004aad;
}

#tabulka{
  color:black;
  text-decoration-line: none;

}

#tabulka:hover{
  text-decoration-line: underline;
}


.vysledky-wrapper {

  background: linear-gradient(180deg, rgba(236, 238, 243, 0.6), rgba(235, 233, 233, 0.6));
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15,23,36,0.06);
  overflow: auto;
  
  width: 90%;
  margin:auto;
  margin-bottom: 5%;
}

/* Base table */
.min-table {
  width: 80%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: #ffffff;
  color: #0f1724;
  min-width: 520px;
  border-radius: 10px;
  overflow: hidden;
  margin:auto;
}

/* Header */
.min-table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: #556070;
  padding: 12px 16px;
  border-bottom: 1px solid #e6e9ee;
  letter-spacing: 0.01em;
 
}

/* Cells */
.min-table td {
  padding: 10px 16px;
  font-size: 0.95rem;
  vertical-align: middle;
  border-bottom: 1px solid #e6e9ee;
  text-align: center;
}

/* Alternate row shading */
.min-table tbody tr:nth-child(even) {
  background: #f7f8fa;
}

/* Hover and focus */
.min-table tbody tr:hover {
  background: rgba(11,132,255,0.03);
}
.min-table tbody tr:focus-within {
  outline: 2px solid rgba(11,132,255,0.12);
  outline-offset: 2px;
}



.team {
  background: white;
  padding: 20px;
  margin: 30px auto;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 900px;
}

.team h2 {
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  color: #333;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.player-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease;
}

.player-card:hover {
  transform: translateY(-5px);
}

.player-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.player-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1em;
}

.player-card p {
  color: #666;
  font-size: 0.9em;
}


/* Příspěvky */
#prispevky-list table{
  /*border: 1px solid #e0e0e0;*/
  border-radius: 5px;
  margin-bottom: 2%;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
  border-collapse: collapse;
}

#prispevky-list th,#prispevky-list td{
    border-bottom: 1px solid #e6e9ee;
    padding: 15px 15px;
    border-spacing: 0;
}

#prispevky-list tr:hover{
  background: rgba(11,132,255,0.03);
  
  
}

#prispevky-list li{
  margin: 15px;
}

#map{
  display: flex;
  margin: auto;
  width: 90%;
  margin-top: 4%;
}


#struktura_oddilu{
  display:flex;
  margin:auto;
  
  justify-content: space-between;
  width:90%;

}

#struktura_oddilu caption{
  font-size: large;
}

.footer{
  background-color: black;
  color:white;
  height: auto;
  margin-top: 10px;
  
   
}

#footer-nav, #footer-nav ul{
  display:flex;
  width:90%;
  justify-content: space-between;
  margin:auto;
  padding:20px;

}

.footer a{
  color:white;
  text-decoration: none;
}
.footer a:visited{
  color:white;
  text-decoration: none;
}


#footer-nav li{
   list-style-type: none;
   
}

#footer-nav li:hover{
   text-decoration: underline;
   cursor: pointer;
}

#spinner-wrapper{
  display:flex;
  align-items:center;
  justify-content: center;
}

.spinner {
  margin-top: 20px;
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top-color: #555;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#bars{
  display:none;
}

#cross{
  display:none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media(max-width:600px){
 
  h1{
    margin-top: 40px;
  }

  #Popisek{
    font-size: x-large;
  }

  #Carousel-container{
    height: 310px;
    margin-top:25%;
    margin-bottom: 0;
  }

  #Carousel-container2{
    height: 100%;
  }

  .btn {
      top: 30%;
    }

  #logo{
    height:90;
    width:auto;
  }

  .slide{
    height:100%;
  }

  .slide img{
    object-fit: contain;
    width:99vw;
    height:100%;

  }

  .slide p{
    font-size: medium;

  }

  #Popisek2{
    top:40%;
    left:160%;
  }

  #Popisek2 button{
    font-size:10px;
  }

  #Popisek2_3{
    justify-content: left;
  }

  #Popisek3{
    left:210%;
    width:50%;
  }

  #Popisek3_2 button{
    font-size: 10px;
  }


  .section2{
    width:100%;
    padding:0;

  }
  .vysledky-wrapper,.sports-table{
    width:100vw;
  }

  .sports-table td {
  font-size: 0.8rem;
}

.sports-table th, 
.sports-table td {
  padding: 6px 8px;
}

  .sports-table{
    width:100%;
  }



  .vysledky{
    width:100%;
    overflow: hidden;
  }

  #footer-nav, #footer-nav ul{
    display:block;
    padding:10px;

  }

  #footer-nav li{
   list-style-type: none;
   padding:10px;
   
}

/* Header */


.header{
      
    height: 5vh;
    margin-bottom: 10px;
    width:100%;
    position:fixed;
    

}


.header-mobile{
  background-color: rgba(0, 0, 0, 0.7);
  height: 100vh;
  display:none;
  z-index: 5;
}

.header-mobile.open{
  display:block;
}

.header ul{
  display:block;
  text-align: center;
  transform:translateY(0);
  background-color: black;
  width:250px;
  position:fixed;
  top:0;
  right:0;
  padding:0;


}

.header li{
  width:70%;
  padding: 15px;
  margin-left: 20px;
  border-bottom: 1px solid white;
}

#cross{
  position:absolute;
  left: 10px;
  top: 10px;
}

#bars{
  display:block;
  position:absolute;
  left:85%;
  top:10px;
}
#bars.open{
  display:none;
}

#cross.open{
  display:block;
}

#struktura_oddilu{
  display:block;
  margin: auto;
  width: 98;
  
}

#struktura_oddilu table{
  margin: auto;
  margin-bottom: 30px;
  width: 98%;

}
}