/* BASIC STYLES AND VARIABLES */

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

html {
scroll-behavior: smooth;
}

body { 
    background-color: #000000;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

#logo, span, button, caption {
    font-weight: bold;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

.concertsBtn, #contactsBtn {
    background-color: #f82c56;
}

.concertsBtn:hover, #contactsBtn:hover {
    background-color: #dd284c;
}


/* HEADER & HEROBLOCK */

header {
    position: sticky;
    top: 0;
    background-color: #000000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav li {
    padding: 2px;
}

nav a {
    color: #ffffff;
}


#heroBlock {
    background-image: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(./img/heroImg.webp);

    background-size: cover;
    background-position: center;

    height: 60vh; 

    display: flex;
    flex-direction: column;
    justify-content: center; 

    padding: 0 10%;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
}

#heroBlock h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#heroBlock p {
    margin-bottom: 15px;
}

span {
    color: #4dd2ff;
}

#heroBtn {
    margin-top: 20px;
    width: 200px;

    background-color: #fee93e;
    border: 2px solid #e6c201;

    color: #000000;

    font-size: 15px;

    box-shadow: 0 0 20px #e6c401ee;
    
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px #e6c401;
    }
    50% {
        box-shadow: 0 0 30px #e6c401;
    }
    100% {
        box-shadow: 0 0 10px #e6c401;
    }
}


/* CONCERTS */

#concerts {
    padding: 80px 10%;
    text-align: center;
}

#concertsCard {
    border: 1px solid #2a2f3a;
    border-radius: 12px;
    overflow: hidden;
}

table {
    margin: 0;
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #2a2f3a;
}

caption {
    text-align: left;
    font-size: 22px;
    padding: 20px;
    
}

caption, thead {
    background-color: #1b1e29;
}

tbody {
    background-color: #151821;
}

thead {
    color: #aeb3be;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #2a2f3a;
}

th {
    font-weight: normal;
}


/* TICKET BUY */

#ticketBuyDialog {
    border: none;
    border-radius: 12px;
    padding: 30px;
    background: #151821;
    color: white;
    width: 320px;
}

#ticketBuyDialog::backdrop {
    background: rgba(0,0,0,0.7);
}

#closeTicketBuyDialog {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aeb3be;
    cursor: pointer;
}

#closeTicketBuyDialog:hover {
    color: white;
}

dialog {
    margin: auto;
}

dialog h2 {
    margin-bottom: 20px;
}

#ticketBuyDialog form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#ticketBuyDialog label {
    font-size: 14px;
    color: #aeb3be;
}

#ticketBuyDialog input {
    width: 100%;
}


/* GALLERY & INFO */

#gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    padding: 40px 10% 80px;
    text-align: center;
}

#gallery h2 {
    width: 100%;
}

figure {
    text-align: center;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    overflow: hidden;
}

figcaption {
    padding: 10px;
    text-align: left;
}

figure img {
    object-fit: cover;
    width: 250px;
    height: 200px;
}

figure:hover {
    border: 1px solid #ffffffd3;
    box-shadow: 0 0 5px #ffffffbe, 0 0 15px #ffffffdc;
}


#groupInfo {
    padding: 80px 10%;
    background: linear-gradient(0.25turn, #121d22, #261118);
}

#groupInfo h2 {
    margin-bottom: 20px;
}

#groupInfo p {
    margin-bottom: 15px;
}

#groupInfo img {
    float: right;
    margin: 0 0 20px 30px;

    object-fit: cover;
    height: 200px;
    width: 450px;

    border: 1px solid #2a2f3a;
}


/* CONTACTS */

#contacts {
    padding: 80px 10%;
    background: linear-gradient(0.25turn, #261118, #121d22);
}

#contacts h2, #contacts > p {
    text-align: center;
}

.contacts-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

#contacts form {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-wrap: wrap; 
    gap: 10px 4%; 
}

label[for="name"]  { 
    order: 1; 
    width: 48%; 
}

label[for="email"] { 
    order: 2; 
    width: 48%; 
}

#name { 
    order: 3; 
    width: 48%; 
}

#email { 
    order: 4; 
    width: 48%;
}

label[for="message"] {
    order: 5;
    width: 100%;
    margin-top: 15px;
}

textarea {
    order: 6;
    width: 100%;
}

#contactsBtn {
    order: 7;
    margin-top: 10px;
}

label, #contacts > p {
    color: #aeb3be;
}

input, textarea {
    background: #151821;
    border: 1px solid #1f232d;
    border-radius: 8px;
    padding: 12px;
    color: white;
    box-sizing: border-box; 
}

textarea {
    height: 140px;
    resize: none;
}

#contactsBtn {
    width: fit-content;
}

#maps {
    flex: 1;
    max-width: 550px;
    background: #151821;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #1f232d;
}

#maps h3 {
    margin: 0 0 20px 0;
}

iframe {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    border: 0;
    display: block;
}


/* FOOTER */

footer {
    padding: 40px 10%;
    background: #000000;
    display: flex;
    justify-content: space-between;

    color: #aeb3be;
}

#telContact {
    color: #ffffff;
}

#social a {
    color: #aeb3be;
}

#social a:hover {
    color: #ffffff;
}


/* MEDIA */

@media (max-width: 992px) {
    nav {
        padding: 15px 5%; 
    }

    #heroBlock {
        padding: 0 5%;
        height: 50vh;
    }

    #heroBlock h1 {
        font-size: 36px; 
    }

    .contacts-container {
        flex-direction: column; 
        align-items: center;
    }

    #contacts form, #maps {
        max-width: 100%;
        width: 100%;
    }

    #groupInfo img {
        float: none; 
        display: block;
        margin: 0 auto 20px;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        padding: 0;
    }

    #concertsCard {
        overflow-x: auto;
    }

    table {
        min-width: 600px; 
    }

    #gallery {
        gap: 15px;
    }

    figure img {
        width: 100%; 
        height: auto;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    #heroBlock h1 {
        font-size: 28px;
    }

    #heroBtn {
        width: 100%; 
    }

    #name, #email, label[for="name"], label[for="email"] {
        width: 100%; 
        order: unset; 
    }
}