html {
    scroll-behavior: smooth;
}

/*
    Univerzální selektor
*/
body {
    background-color: #111211;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/*
    Celá stránka bude používat tento font
*/
* {
    font-family: 'Inconsolata', monospace;
    font-weight: 700;
}

/* Slučování selektoru */
a,
p,
td {
    color: white;
}

/*Pseudo třída*/
a:hover {
    color: red;
    transition: color 0.3s ease-in-out;
}

/*
    Zrušení odrážek a odsazení u seznamů
*/
ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/*
    Obsahová část stránky
*/
main {
    width: 100%;
    min-height: 60%;
    /* background-color: aqua; */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

/*Třída*/
.header {
    margin-top: 5px;
    /*background-color: red;*/
    align-items: center;
    justify-content: center;
    text-align: center;
}

.mt-5 {
    margin-top: 5rem;
}

/*
    Navigace
*/
nav {
    margin-top: 2rem;
    max-width: 100%;
}

/*
    Tlačítko Hamburger (pro mobily)
*/

.hamburger {
    display: none;
    background-color: none;
    text-align: center;
    align-self: center;
    justify-content: center;
    font-size: x-large;
}

/*Identifikátor*/
#menu-seznam {
    width: 100%;
    list-style-type: none;
}

.menu-item:hover {
    transition: background-color 0.3s ease-in-out;
    background-color: #454545;
    color: white;
}

/*
    Aktuálně vybraná stránka v menu
*/
.menu-selected {
    background-color: #454545;
    color: white;
}

/*
    Odkazy uvnitř menu
*/
/*Přímý potomek*/
.menu-item>a {
    text-decoration: none;
    color: white;
}

/*
    Zarovnání položek menu na střed
*/
nav>ul>li {
    min-height: 50px;
    align-self: center;
    height: 100%;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 800px;
    /* Omezení šířky textu pro lepší čitelnost */
    margin: 0 auto 5rem auto;
}


.band-section {
    margin-bottom: 3rem;
    width: 100%;
}

.band-section h2 {
    color: white;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    cursor: pointer;
    /* Naznačuje interaktivitu */
    transition: color 0.3s;
}

.band-section p {
    line-height: 1.6;
    color: #ccc;
    text-align: justify;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.loader-shape-3 {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.concert-card a {
    border-radius: 100%;
    opacity: 0.3;
    transition: opacity 0.2s ease-in-out;
}

.concert-card a:hover {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 1249px) {
    .concert-card.focused-card a {
        opacity: 1;
    }
}

.loader-shape-3:after {
    width: 30px;
    height: 20px;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 15px;
}

.loader-shape-3:before {
    width: 20px;
    height: 20px;
    border-radius: 100% 100% 100% 0;
    box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 1);
    animation: anm-SL-3-move 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-46deg);
    margin-top: 20px;
}

.loader-shape-3:before,
.loader-shape-3:after {
    position: absolute;
    content: "";
}

@keyframes anm-SL-3-move {
    0% {
        top: 0;
    }

    50% {
        top: -5px;
    }

    100% {
        top: 0;
    }
}


/* 
    Obecný sourozenecký selektor (~)
*/
.band-section h2:hover~p {
    color: white;
    background-color: #222;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-left: 3px solid red;
}

.band-section h2:hover {
    color: red;
    border-color: red;
}

.italic {
    font-style: italic;
}

.red {
    color: red;
}

.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/*
    Společný kontejner pro obsah stránek
*/
.content-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}


/* Hlavní nadpis stránky */
.main-headline {
    margin-top: 3rem;
    font-size: 3rem;
    /*border-bottom: 2px solid red;*/
}

/*
    Stránka: Členové
*/

/* Kontejner pro seznam členů */
.members {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-self: center;
    width: 50%;
}


/*  Karta jednoho člena */
.member {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Vzhled karty */
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.member:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
    z-index: 10;
}

/* Fotka člena */
.clen-fotka {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    width: 100%;
}

/* Obrázek uvnitř fotky */
.clen-fotka>img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Informace o členovi*/
.clen-info {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    text-align: left;
}


/*
    Stránka: Repertoár
*/

/* Hlavní kontejner repertoáru */
.repertoar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Seznam kategorií */
.repertoar-list {
    display: flex;
    justify-content: center;
    width: 80%;
    margin-bottom: 5rem;
}

/* Uspořádání kategorií vedle se (flex-wrap) */
.repertoar-list>ol {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    gap: 5rem;
    width: 100%;
    padding: 0;
    /* Reset počítadla pro číslování kategorií */
    counter-reset: category-counter;
}

.category-item {
    min-width: 300px;
    list-style: none;
}

/* Nadpis kategorie */
.category-item h2 {
    text-align: center;
    border-bottom: 2px solid red;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

/* Číslování kategorií pomocí CSS*/
/*Pseudo prvek*/
.category-item h2::before {
    counter-increment: category-counter;
    content: counter(category-counter) ". ";
}

/* Seznam v kategorii */
.song-list {
    padding: 0;
}

/* Položka seznamu*/
/*Přímý potomek*/
.song-list>li {
    margin-bottom: 0.8rem;
    list-style: square inside;
    font-weight: 400;
}

/* Vnořený seznam písní */
.sub-songs {
    margin-top: 0.3rem;
    list-style: circle inside;
    padding-left: 1rem;
}

/* Jednotlivá píseň */
.sub-songs li {
    margin-bottom: 0.2rem;
}

/* Zvýraznění autora */
.author {
    font-weight: 700;
}

/*
    Stránka: Formulář
*/

/* Stylovaný formulář*/
.styled-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
}

/* Řádek formuláře*/
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Nadpisy sekcí ve formuláři */
.form-row h2 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #444;
}

/* Skupina inputů */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Styl pro textová pole a výběrové seznamy */
/*Selektor s atributem*/
input[type="text"],
select {
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #555;
    background-color: #222;
    color: white;
    font-family: 'Inconsolata', monospace;
}

input[type="text"]:hover,
input[type="text"]:focus {
    border: 2px solid red;
    outline: none;
    transition: border 0.2s ease-in-out;
}

.submit-btn {
    padding: 1rem;
    border-radius: 10px;
    background-color: #454545;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #666;
}

/* Skupina checkboxů pod sebou */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Skupina radio buttonů vedle sebe */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Checkboxy a Radio buttony*/
input[type="checkbox"],
input[type="radio"] {
    accent-color: red;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.result-message {
    background-color: #222;
    border: 1px solid #454545;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.result-message h2 {
    color: #fff;
    border-bottom: 2px solid #555;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Sekce s výpisem technologií */
.tech-section {
    margin-top: 1.5rem;
    text-align: left;
    background-color: #333;
    padding: 1rem;
    border-radius: 10px;
}

.tech-section ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.tech-section li {
    margin-bottom: 0.3rem;
    color: #ddd;
}

/*Animace Fade In*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/*
    Stránka Kontakt
*/
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Tabulka kontaktů */
.contact-table {
    border-collapse: collapse;
    width: 90%;
    max-width: 700px;
    margin-top: 2rem;
    margin-bottom: 5rem;
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

/* Buňky tabulky */
.contact-table th,
.contact-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #333;
}

/* Hlavička tabulky */
.contact-table th {
    background-color: #252525;
    color: white;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid red;
}

.contact-table tr {
    transition: background-color 0.3s ease;
}

.contact-table tr:hover {
    background-color: #2a2a2a;
}

/* Poslední řádek bez spodní čáry */
.contact-table tr:last-child td {
    border-bottom: none;
}

/* Odkazy v tabulce */
.contact-table a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.contact-table a:hover {
    color: #ff4d4d;
}

.contact-table td:first-child {
    text-align: right;
    width: 40%;
    color: #ccc;
    font-weight: normal;
    padding-right: 2rem;
    border-right: 1px solid #333;
}

.contact-table td:last-child {
    text-align: left;
    padding-left: 2rem;
}




/* Stránka Koncerty */
.concerts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 5rem auto;
}

/* Sousední selektor*/
.main-headline+.intro-text {
    color: #ff6b6b;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Karta koncertu */
.concert-card {
    display: flex;
    flex-direction: row;
    background-color: #1a1a1a;
    border-radius: 15px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    align-items: center;
    gap: 2rem;
    animation: fadeIn 0.3s ease-in-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concert-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Featured koncert */
.featured {
    border: 2px solid red;
    background-color: #252525;
}

/* Sousední selektor */
.concert-card+.concert-card {
    margin-top: 2rem;
    position: relative;
}

/* Čtverec s datem */
.date-box {
    display: flex;
    flex-direction: column;
    background-color: #333;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
}

.date-box .day {
    font-size: 2rem;
    font-weight: bold;
    color: red;
}

.date-box .month {
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.info-box {
    flex-grow: 1;
}

/* Nadpis koncertu */
.info-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

/* Info o koncertu*/
.info-box p {
    margin: 0.2rem 0;
    color: #ccc;
}

.map-link {
    margin-left: auto;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
}

/* Staré koncerty - menší velikost */
.old-concert-card {
    padding: 1rem;
    gap: 1.5rem;
}

.old-concert-card .date-box {
    padding: 0.7rem;
    min-width: 60px;
}

.old-concert-card .date-box .day {
    font-size: 1.5rem;
}

.old-concert-card .date-box .month {
    font-size: 0.9rem;
}

.old-concert-card .info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.old-concert-card .info-box p {
    font-size: 0.9rem;
    margin: 0.1rem 0;
}

.old-concert-card .map-link {
    transform: scale(0.8);
}

/* Responsivita*/

@media (min-width: 1250px) {
    .header {
        min-height: 120px;
        width: 100%;
    }

    .header img {
        max-height: 120px;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        min-height: 50px;
        width: 100%;
        gap: 4px;
    }

    nav>ul {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: center;
        justify-content: space-around;
    }

    .menu-item {
        border-radius: 15px;
        max-width: 10vw;
        min-width: 15vw;
    }

    a>p {
        font-size: xx-large;
    }

    footer {
        min-height: 5vh;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .members {
        width: 35%;
    }

    .two-columns {
        flex-direction: row;
        gap: 2rem;
    }

    .form-group {
        flex: 1;
    }

    .result-message {
        width: 100%;
        min-width: 20%;
    }
}

@media (min-width: 768px) and (max-width: 1299px) {

    .header {
        min-height: 60px;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .header img {
        max-height: 60px;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        min-height: 60px;
        width: 100%;
    }

    nav>ul {
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1vw;
        align-items: center;
        text-align: center;
        justify-content: space-around;
    }

    nav>ul>li {
        max-width: 15vw;
        min-width: 8vw;
    }

    .menu-item {
        border-radius: 15px;
        max-width: 15vw;
        min-width: 10vw;
    }

    a>p {
        font-size: large;
    }

    footer {
        min-height: 50px;
        max-height: 100px;
        display: grid;
        grid-template-columns: auto 1 1 auto;
        text-align: center;
        flex-direction: row;
        justify-content: space-around;
    }

    footer>h4,
    a {
        font-size: small;
    }

    .member {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .clen-info {
        align-items: center;
        text-align: center;
    }

    .two-columns {
        flex-direction: row;
        gap: 2rem;
    }

    .form-group {
        flex: 1;
    }

}

@media (max-width: 767px) {
    .header {
        max-height: 80px;
    }

    .header img {
        max-height: 80px;
    }

    nav {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 60px;
        width: 100%;
    }

    /* Skrytí menu v základu */
    #menu-seznam {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    /* Zobrazení menu po kliknutí*/
    #menu-seznam.active {
        max-height: 500px;
        opacity: 1;
    }

    /* Zobrazení hamburger tlačítka */
    .hamburger {
        display: block
    }

    nav>ul {
        display: flex;
        width: 100%;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0.2rem;
        align-items: center;
        text-align: center;
        justify-content: space-around;
    }

    nav>ul>li {
        width: 100vw;
    }


    .menu-item {
        border-radius: 15px;
        max-width: 100%;
    }

    a>p {
        font-size: large;
    }

    footer {
        min-height: 50px;
        max-height: 100px;
        display: grid;
        grid-template-columns: auto 1 auto;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    footer>h4 {
        font-size: small;
    }

    .members {
        width: 100%;
    }

    .member {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 70%;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 5rem;
    }

    .clen-info {
        text-align: center;
        align-self: center;
    }

    .result-message {
        width: 80%;
    }

    .concerts-container {
        width: 80%;
    }

    .contact-table,
    .contact-table tbody,
    .contact-table tr,
    .contact-table td {
        display: block;
        width: 100%;
    }

    .contact-table {
        width: 90%;
        margin: 0 auto 5rem auto;
    }

    .contact-table thead {
        display: none;
    }

    .contact-table tr {
        margin-bottom: 1rem;
        border-bottom: 1px solid #444;
    }

    .contact-table td {
        text-align: center;
        padding: 0.5rem;
        border: none;
    }

    /* Reset stylů prvního sloupce */
    .contact-table td:first-child {
        font-weight: bold;
        padding-top: 1rem;
        border-right: none;
        width: 100%;
        text-align: center;
        padding-right: 0.5rem;
    }

    /* Reset stylů posledního sloupce */
    .contact-table td:last-child {
        padding-left: 0.5rem;
        text-align: center;
    }

    .date-box {
        padding: 0.3rem 0;
    }
}