@font-face {
    font-family: 'Brightside';
    src: url("../fonts/BrightSight-jqm9fr0.otf") format('opentype'),
        url("../fonts/BrightSight-mL9ZuD7.ttf") format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Brightside';
    src: url("../fonts/BrightSight-Italic-moaTy4t.otf") format('opentype'),
        url("../fonts/BrightSight-Italic-mCDcXIQ.ttf") format('truetype');
    font-style: italic;
}

body {
    background-color: skyblue;
    font-family: Brightside, sans-serif;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
}

nav {
    font-size: 2rem;
    letter-spacing: .2rem;

    ul {
        gap: 1rem;
    }

}

.nav-item {
    padding-top: .5rem;
}

.carousel {
    padding: 0;
}

#hero {
    position: relative;

    h2 {
        color: rgb(227, 223, 200);
        position: absolute;
        z-index: 1;
        left: 0;
        right: 0;
        text-align: center;
        padding-top: 30px;
        font-size: calc(5vw * 1.2);
        letter-spacing: 0.3rem;
    }

    @media screen and (max-width: 750px) {
        h2 {
            padding-top: 15px;
            font-size: calc(5vw * .8);
        }
    }
}

:not(#hero)>h2 {
    font-size: 3rem;
    text-align: center;
    letter-spacing: .2rem;
    margin: 1.2rem 0 .5rem 0;
}


footer {
    background-color: #BEBAB4;
    padding: 1rem;
}

#members img {
    display: block;
    margin: auto;
}

#news a {
    display: inline;
}

#social {
    ul {
        display: flex;
        justify-content: center;
        list-style: none;
        flex: 1 1 auto;
        gap: 2rem;
    }

    img {
        width: 3rem;
    }
}

figure {
    position: relative;
    margin: 0;
}

figure figcaption.overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    padding: 0 .7em;
    margin: 3px;
}

#title {
    bottom: 5%;
}

figure figcaption.transparent {
    color: white;
    background-color: #44444477;
}

figcaption small {
    position: absolute;
    right: 1em;
    top: 0;
    bottom: 0;
}

figcaption h3 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: .2rem;
    text-align: center;
    padding: 8px 2px 2px 2px;
}

div.chords {
    line-height: 3em;
    font-size: 1.2rem;
    letter-spacing: .3rem;
}

span.chord {
    position: relative;
}

span.chord:before {
    content: attr(data-chord);
    position: absolute;
    top: -2.1em;
    width: max-content;
    display: inline-block;
}

span.chord.front {
    margin-right: 1em;
}

#lyrics h2 {
    margin-top: 1em;
}

#lyrics h3 {
    margin-top: 1em;
    font-size: 1.5em;
    font-style: italic;
}

#lyrics h3.capo {
    margin-top: 0;
}

.container {
    max-width: 1000px;
}

.single {
    position: relative;

    .wrapper {
        position: relative;
        width: 100%;
        height: 100%;

        .overlay {
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            background-color: rgba(94, 94, 94, 0.632);
            color: whitesmoke;
            font-size: 3.5vw;
        }

        &:hover .overlay {
            display: flex;
        }
    }
}

/* Form container styling */

h1 {
    margin: 2em auto 1em;
    letter-spacing: .1em;
}

form {
    max-width: 800px; /* Increased width */
    width: 80%;
    margin: 0 auto auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.5em;
}

/* Form labels and fields layout */
form .form-group {
    display: block; /* Revert to block layout */
    margin-bottom: 15px;
}

form label {
    width: 100%; /* Labels span full width */
    margin-bottom: 8px; /* Restore bottom margin */
    font-weight: bold;
    color: #333;
}

.form-control, .form-select {
    width: 100%; /* Fields span full width */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    letter-spacing: inherit;
}

/* Responsive layout for mobile */
@media screen and (max-width: 940px) {
    form {
        width: 95%;
        padding: 15px;

        .mb-3:nth-child(1), .mb-3:nth-child(2) {
            width: 100%; /* Full width for text inputs */
        }
    }
}

/* Form button */
form .btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: inherit;
    margin: auto;
    display: block;
}

/* Back to list link */
a {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

a:hover {
    text-decoration: underline;
}

.card {
    margin-top: 2em;
}

#reservation {
    #reservation_tickets > fieldset > div {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;

        > div:nth-child(1), > div:nth-child(2) {
            flex: 1 0 auto;
        }

        > div:nth-child(3), > div:nth-child(4) {
            display: flex;
            align-items: flex-end;
        }

        > div:nth-child(4) {
            margin-left: auto;
        }

        .form-check-input {
            position: relative;
            top: -2px;

            + label {
                margin-bottom: 0;
            }
        }

        .btn-failure {
            padding: 4px 20px;
            margin: 0;
            border: solid 1px red;
            color: red;
        }
    }
}