/* style.css */

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

body {
    font-family: 'Nunito', sans-serif;
    //font-family: 'Montserrat', sans-serif;
    color: #fff;
    background-color: #000;
    background-image: url('style/hockey_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0;
    
    padding-bottom: 50px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    //padding: 20px 50px;
    padding: 0px 10px;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.foot-box {
//    position:static; 
//    bottom:20px; 

    position:fixed; 
    bottom:0px; 
    height: 50px;
    color: #FFF;
    background: #000;
    //background-image: linear-gradient(to bottom, #F2F2F2, #F3F3F3);
    font-size: 0.8em;
    padding:15px 20px; 
    margin:auto; 
    width: 100%;
    border-top:solid 1px #999; 
    text-align: center;
    display: flex;
    justify-content: center;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5em;
    font-weight: 700;
    color: #E7CA0C;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    width: auto;
    height: auto;
}

.logo img {
    display: flex;
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
    left: 0px;
    top: -50px;
}

.clanky_obsah {
    font-size: 13px;
}

.clanky_datum {
    font-size: 10px;
}

table {
    font-size: 13px;
    justify-content: center;
    width: 100%;
}

table th{
    font-size: 14x;
    font-weight: 700;
    background-color: #2D2D2D;
    height: 30px;
    padding: 5px 5px;
}


@media (max-width: 500px) {
.clanky_obsah {
    font-size: 11px;
  }

  .clanky_datum {
    font-size: 10px;
  }

  table {
    font-size: 11px;
  }

  table th{
    font-size: 12px;
  }

}

@media (max-width: 350px) {
  .clanky_obsah {
    font-size: 9px;
  }

  .clanky_datum {
    font-size: 8px;
  }

  table {
    font-size: 9px;
  }

  table th{
    font-size: 10px;
  }

}

.border-top-pair {
    position: relative;
}
.border-top-pair::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #E7CA0C, transparent);
}

.table-divider td {
    border: none !important;
}

.table-divider tr:nth-child(2n) {
    padding-bottom: 0px; 
}




@media (max-width: 480px) {
  .logo {
    font-size: 2em;
    position: relative;
  }

  .logo img{
    min-width: 50px;
    width: 75px;
    height: 75px;
    left: -10px;
    top: -40px;
  }
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: 700;
    padding: 5px 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu ul li a:hover {
    color: #E7CA0C;
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 2em;
    color: #E7CA0C;
    cursor: pointer;
    z-index: 1001;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute; 
    background: rgba(0,0,0,0.9);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    margin: 10px 5px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

main {
  margin-top: 80px;
  display: flex; 
  min-height: 100vh; 
}

.left-boxes {
  flex: 0 0 20%;
//  min-width: 450px;
  padding: 20px;
}

.right-boxes {
  flex: 1;
  padding: 20px;
}

.container, .container_single {
  display: grid;
//  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.content-boxes {
  padding: 10px;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #E7CA0C;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.content-boxes_ra {
  padding: 10px;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #999;
  border-radius: 10px;
}

.content-boxes_ra_cl {
  padding: 10px;
  max-width: 450px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #999;
  border-radius: 10px;
  height: fit-content;
}

.content-boxes_max {
  padding: 10px;
  max-width: 100%;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #999;
  border-radius: 10px;
}

.content-boxes_max span {
    display: block;
    margin-bottom: 10px; 
}

.content-boxes_max a {
    color: #E7CA0C;
    text-decoration: none;
}

.content-boxes p {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #E7CA0C;
}

.content-boxes_ra p {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #E7CA0C;
}

.content-boxes_ra_cl p {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #E7CA0C;
}

.content-boxes_max p {
  margin-bottom: 10px;
  font-size: 16px; 
  font-weight: 700;
  color: #E7CA0C;
}

@media (max-width: 500px) {
  .content-boxes p {
    font-size: 14px;
  }

  .content-boxes_ra p {
    font-size: 14px;
  }

  .content-boxes_ra_cl p {
    font-size: 14px;
  }

  .content-boxes_ra p {
    font-size: 14px;
  }

}

@media (max-width: 350px) {
  .content-boxes p {
    font-size: 12px;
  }

  .content-boxes_ra p {
    font-size: 12px;
  }

  .content-boxes_ra_cl p {
    font-size: 12px;
  }

  .content-boxes_ra p {
    font-size: 12px;
  }

}

@media (min-width: 961px) {
  .right-boxes {
    min-width: 400px;
  }

  .container {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }

  .left-boxes {
    min-width: 450px;
  }


}

@media (max-width: 960px) {
    main {
        flex-direction: column; 
    }

    .left-boxes, .right-boxes {
        flex: 1 1 90%; 
        width: 100%; 
        margin: 0 auto; 
        font-size: 20px;
    }

    .content-boxes_max {
      max-width: 450px;
    }

}

.hero-section {
    flex-grow: 1;
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between; 
    padding: 90px 10px 20px 10px;
    text-align: left;
    position: relative;
    z-index: 1;
    gap: 50px;
}



.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 4.5em;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.7);
    animation: fadeInScale 1.2s ease-out;
}

.train-button {
    display: inline-block;
    background-color: #E7CA0C;
    color: #000;
    padding: 18px 35px;
    text-decoration: none;
    font-size: 1.6em;
    font-weight: 700;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(242, 201, 44, 0.4);
    animation: fadeInUp 1.4s ease-out;
}

.train-button:hover {
    background-color: #f2c92c;
    transform: translateY(-3px);
}

.train-button::before {
    content: '+';
    margin-right: 10px;
}

.image-boxes {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: end;
    justify-self: end;
    position: relative;
    right: 50px;
    bottom: 50px;
}

.image-box {
    position: relative;
    //width: 350px;
    height: 350px;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(242, 201, 44, 0.5);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.5s ease;
}

.image-box:hover img {
    filter: grayscale(0%) brightness(1);
}

.image-box .number {
    position: absolute;
    top: 15px;
    left: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3em;
    color: #E7CA0C;
    font-weight: 700;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.number {
    background-color: #0000009c;
    border-radius: 5px;
    padding: 2px;
    padding-left: 5px;
    padding-right: 5px;
}

.image-box .more-info {
    position: absolute;
    bottom: 10px;
    left: 15px;
    right: 15px;
    color: #E7CA0C;
    font-size: 1em;
    font-weight: 700;
    text-align: center;
    letter-spacing: 3px;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-box:hover .more-info {
    transform: translateY(0);
    opacity: 1;
}

.social-icons_right {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.social-icons {
    display: flex;
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
//    padding-bottom: 30px;
    gap: 25px;
}

.social-icons a {
    color: #000000;
    font-size: 2em;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Animace */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Responzivní design ==================== */

@media (max-width: 960px) {
    .header {
        padding: 15px 20px;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        width: 80%;
        background: rgba(0, 0, 0, 0.9);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
        padding: 20px 20px;
        text-align: right;
        transition: transform 0.3s ease-out;
        transform: translateY(-100%);
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu ul li a {
        font-size: 1em;
        padding: 10px;
    }

    .hamburger {
        display: block;
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .hero-content {
        max-width: 90%;
        margin: 0 auto;
        justify-self: center;
    }

    .hero-content h1 {
        font-size: 3.2em;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.4em;
        margin-bottom: 30px;
    }

    .train-button {
        font-size: 1.3em;
        padding: 15px 30px;
    }

    .image-boxes {
        flex-direction: column;
        position: static;
        align-items: center;
        justify-self: center;
        //margin-top: 60px;
        right: auto;
        bottom: auto;
        width: 90%;
    }

    .image-box {
        width: 90%;
        //max-width: 320px;
        height: 100%;
    }

    .social-icons {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        //margin-top: 50px;
        padding-bottom: 30px;
        gap: 25px;
    }

    .social-icons a {
        font-size: 1.8em;
    }

    .gallery-container {
        padding: 80px 15px 15px 15px;
    }
    .gallery-header h1 {
        font-size: 1.8em;
    }
    .gallery-header p {
        font-size: 1em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    .gallery-item img {
        height: 200px;
    }
    .category-filter {
        gap: 10px;
    }
    .category-filter a {
        font-size: 1em;
        padding: 8px 15px;
    }
}

/* Extra malé obrazovky (např. do 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .train-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .image-box {
        width: 95%;
        //max-width: 280px;
        height: 100%;
    }
    .image-box .number {
        font-size: 1em;
    }
    .number {
        background-color: #0000009c;
        border-radius: 5px;
        padding: 2px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .image-box .more-info {
        font-size: 1em;
    }
    .gallery-header h1 {
        font-size: 1.5em;
    }
    .gallery-header p {
        font-size: 0.7em;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .gallery-item {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .gallery-item img {
        height: 220px;
    }
}


@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Styly pro tlačítko (převzato z existujících tříd, pokud existují, jinak přidáno) */
.btn.btn-primary {
    background-color: #E7CA0C;
    color: #000; /* Černý text na zlatém pozadí */
    padding: 14px 30px; /* Větší padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em; /* Větší font */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Přidán transform pro efekt */
    display: inline-block; /* Aby šly nastavit padding a transform */
    margin-top: 20px; /* Mezera nad tlačítkem */
}

.btn.btn-primary:hover {
    background-color: #FFD700; /* Světlejší zlatá při najetí myší */
    transform: translateY(-2px); /* Mírný posun nahoru */
}

/* Responzivní úpravy */
@media (max-width: 960px) {
    .contact-container {
        padding: 20px;
        margin: 0 15px; /* Menší margin na menších obrazovkách */
    }

    .contact-container h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }

    .company-info h3,
    .person-contacts h3,
    .contact-form-section h3 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 15px;
        margin: 0 10px;
    }

    .contact-container h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .company-info h3,
    .person-contacts h3,
    .contact-form-section h3 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    .company-info p,
    .person-contacts p {
        font-size: 0.8em;
    }

    .form-group label {
        font-size: 0.8em;
    }

    .btn.btn-primary {
        width: 100%; /* Tlačítko na celou šířku */
        padding: 12px 20px;
        font-size: 1.1em;
    }
}

/* Definuje animaci, která se bude střídat mezi bílou a zelenou */
@keyframes pulzovani {
  0% { color: white; }        /* Start: bílá barva */
  50% { color: #E7CA0C; }     /* Polovina: zelená barva (můžete zvolit jiný odstín) */
  100% { color: white; }      /* Konec: opět bílá */
}

/* Aplikace animace na element */
#pulzujici-text {
  /*
    'pulzovani' - název definované animace
    '1.5s' - doba trvání jednoho cyklu (1,5 sekundy)
    'infinite' - opakovat animaci donekonečna
    'ease-in-out' - pro plynulejší přechod
  */
  animation: pulzovani 1.0s infinite ease-in-out;
}
