:root {
  --bg-dark: #333;
  --bg-mid: #636363;
  --text-light: #eee;
  --border-dark: #555;
  --accent: rgba(255, 149, 0, 0.432);
  --shadow: 0 0 8px var(--accent);
  --text-shadow: 1px 1px 2px black, 0 0 8px orange, 0 0 5px rgb(197, 108, 0);
  --transition-default: all 0.3s ease;
}

/* Base styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100vw;
  font-family: 'Special Elite', Arial, sans-serif;
  font-size: 1.9vh;
  text-shadow: var(--text-shadow);
  color: var(--text-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-dark) url('https://www.transparenttextures.com/patterns/asfalt-light.png') repeat;
  position: relative;
}

body::before {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: url('https://cdn.jsdelivr.net/gh/joshnh/Groundwork/noise-texture.png') repeat;
    opacity: 0.25;
    z-index: 0;
}

.menu {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
}

.menu a {
    background-color: rgba(51, 51, 51, 0.4);
    color: var(--text-light);
    border: 2px outset rgba(255, 149, 0, 0.6);
    padding: 10px;
    margin: 2px;
    opacity: 0.8;
    transition: background-color 0.3s ease, color 0.3s ease;
    backdrop-filter: blur(4px);
    flex: 1 1 auto;
    text-align: center;
}



.menu a:hover {
    background-color: rgba(255, 149, 0, 0.6);
    color: var(--bg-dark);
    cursor: pointer;
    opacity: 1;
}

.main-content {
    flex: 1 1 auto;
    display: block;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 1.3em;
    text-align: center;
    overflow: hidden;
    border-top: 2px dashed var(--accent);
    border-bottom: 2px dashed var(--accent);
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.432);
    background-color: rgba(51, 51, 51, 0.8); /* Add this line */
}

.slideshow-wrapper {
    width: 100%;
    height: 100%;
    position: static;
}

.slideshow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Changed from 0.5 to 0.2 */
    overflow: auto;
    z-index: 1;
    align-items: center;
    display: flex;
}

#slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#slideshow video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

#slideshow video.active {
    opacity: 1;
    z-index: 1;
}


.icon-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 20px 0 20px;
    z-index: 3;
}

.icon-button {
    width: 3%;
    border: 2px solid var(--accent);
    border-radius: 6px;
    transition: background-color 0.3s, border-color 0.3s;
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.432);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (orientation: portrait) {
    .main-content {
        font-size: medium;
        max-height: 78vh;
        display: flex;
        flex-direction: column;
    }

    .bio {
        width: unset !important;
    }

    .icon-button {
        width: 10%
    }

    .side-icon-container {
        padding-left: 0;
    }
}

@media screen {
    .menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
        padding: 0;
        justify-content: space-between;
    }

    .menu a {
        flex: 1 1 auto;
        font-size: clamp(0.65rem, 2.2vw, 1rem);
        padding: 6px 4px;
        white-space: nowrap;
        min-width: fit-content;
        text-align: center;
    }

    .top-frame {
        height: auto;
        padding: 1vh 2vw;
    }

    .nav-frame {
        height: auto !important;
        margin-top: 0;
    }
}

.icon-button img {
    max-width: 75%;
    max-height: 75%;
    pointer-events: none;
    user-select: none;
}

.icon-button:hover,
.icon-button:focus {
    background-color: var(--accent);
    border-color: var(--text-light);
    outline: none;
}

.slideshow-textbox {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-light);
    padding: 2vw 3vw;
    border: 2px inset var(--accent);
    border-radius: 8px;
    text-align: center;
    z-index: 2;
    width: 80%;
    max-width: 600px;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin: 0 auto;
}

.nav-frame {
    position: relative;
    top: 40%;
    z-index: 10;
}

.bottom-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
    position: relative;
}

.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.bottom-buttons a {
    border: 2px outset var(--accent);
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-light);
    border-radius: 4px;
    background: transparent;
    transition: var(--transition-default);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    opacity: 0.9;
}

.button:hover,
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.bottom-buttons a:hover {
    background-color: var(--accent);
    color: var(--bg-dark);
    opacity: 1;
}

.top-frame {
    position: relative;
    background: url('images/KG_logo.png') no-repeat center 57%;
    background-size: 50%;
    height: 7vh;
    padding: 2%;
    z-index: 20;
}

.top-frame-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.gigs-table-wrapper {
    max-height: 80%;
    overflow-y: auto;
    overflow-x: auto;
    margin: 20px auto;
    max-width: 90%;
    border: 2px dashed var(--accent);
}

.gigs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1em;
    background-color: rgba(0, 0, 0, 0.4);
}

.gigs-table th,
.gigs-table td {
    border: 1px dotted var(--accent);
    padding: 10px;
    text-align: left;
}

.gigs-table th {
    background-color: rgba(255, 149, 0, 0.3);
    font-weight: bold;
}

.gigs-table tr:nth-child(even) {
    background-color: rgba(255, 149, 0, 0.1);
}

.outdated {
    text-decoration: line-through;
    color: rgba(182, 182, 182, 0.514);
    text-shadow: none;
}

.nextGig {
    font-size: larger;
    color: rgb(219, 106, 0);
}

#kassengipht-videos {
    padding: 4rem 1rem;
    background-color: #111;
    color: #fff;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

#kassengipht-videos h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 1rem;
}

.video-card {
    max-width: 350px;
    border: 2px solid rgba(219, 106, 0, 0.438);
    border-radius: 1rem;
    background-color: rgba(26, 26, 26, 0.366);
    padding: 10px;
}


@media (orientation: portrait) {
    .video-card {
        max-width: none;
        width: 100%;
    }

    #kassengipht-videos {
        font-size: 50%;
    }
}

.video-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.video-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}



.video-card iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 6px;
}

@media (min-width: 768px) {
    .video-card iframe {
        height: 250px;
    }

    #kassengipht-videos h1 {
        font-size: 3rem;
    }

    .video-card iframe {
        height: 300px;
    }
}

.footer a {
    color: #e16500;
}

.footer a:hover {
    color: #ff6666;
}

#contact-form {
    max-width: 800px;
    padding: 30px;
    display: inline-block;
    background-color: #39291e79;
    border-radius: 12px;
    overflow-y: auto;
    box-sizing: border-box;
}

@media screen {
    #contact-form {
        max-height: 100%;
        overflow-y: auto;
        padding: 10px;
        display: inline-block;
        background-color: #39291e79;
        border-radius: 12px;
        box-sizing: border-box;
        width: 100%;
        max-width: 800px;
    }
}

#contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

#contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-form label {
    align-self: flex-start;
    font-weight: bold;
    margin-bottom: 5px;
    padding: 2%;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    max-width: 60%;
    padding: 10px;
    border-radius: 2px;
    font-size: 1rem;
    margin-bottom: 20px;
}

#contact-form textarea {
    resize: none;
    min-height: 25vh;
}

#contact-form button {
    padding: 12px 24px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #555;
}

#contact-form .g-recaptcha {
    margin: 20px auto;
    width: fit-content;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 8px var(--accent);
}

#contact-form .g-recaptcha > div {
    margin: 0 auto;
}

.impressum-wrapper {
    display: flex;
    justify-content: center;
    height: 100%;
    padding: 20px;
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow-y: auto;
}

.bio-wrapper {
    display: flex;
    justify-content: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.bio {
    text-align: left;
    width: 70%;
}

.impressum {
    font-size: 1rem;
    margin-bottom: 40px;
    width: 75%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0);
}

.impressum::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.impressum * {
    position: relative;
    z-index: 2;
}

.impressum h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-align: center;
}

.impressum h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.impressum a {
    color: #e16500;
}

.impressum a:hover {
    color: #ff6666;
}

@media (max-width: 768px) {
    .impressum {
        width: 90%;
    }
}

.BandFrame {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

table.BandEntry {
    width: 100%;
    table-layout: auto;
    /* Changed from fixed to auto */
    margin: 0 auto;
    border-collapse: collapse;
}

.BandEntry td:first-child {
    width: 1%;
    /* Force column to minimum width */
    white-space: nowrap;
    padding: 15px;
}

.BandEntry td:last-child {
    width: auto;
    /* Take remaining space */
    padding: 15px;
}

.BandEntry img {
    width: 200px;
    height: auto;
    border-radius: 5px;
    border: 2px solid var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 600px) {

    .BandEntry td:first-child,
    .BandEntry td:last-child {
        width: 100%;
        display: block;
        padding: 10px;
    }

    .BandEntry img {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        display: block;
    }
}


table.BandEntry {
    width: 100%;
}

.BandEntry img {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

.text h3 {
    margin-top: 0;
}

.legal-counter-container {
    margin-bottom: 40px;
    position: relative;
    display: contents;
}

.legal-counter {
    position: absolute;
    right: 10px;
    line-height: 1.3;
    text-align: right;
    padding: 1%;
}

.legal-counter a {
    color: rgb(219, 106, 0);
}

.legal-counter p {
    margin: 0;
}

.hit-counter img {
    width: 60px;
    height: auto;
    border: none;
    margin-top: 5px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    padding-left: 12%;
    flex: 1;
    gap: 10px;
}

.side-icon-container {
    display: flex;
    align-items: center;
}

.icon-nobutton {
    height: 8vh;
    border: 4px inset #11111188;
    border-radius: 6px;
    box-shadow: 0 0 8px var(--accent);
    transition: all 0.3s ease;
    opacity: 0.5;
    filter: grayscale(100%);
}

.bio-image {
    max-width: 300px;
    height: auto;
    border: 2px solid var(--accent);
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 0 8px var(--accent);
    transition: all 0.3s ease;
}

.bio-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--accent);
}

.float-left {
    float: left;
    margin-right: 20px;
}

.float-right {
    float: right;
    margin-left: 20px;
}

.bio-heading {
    text-align: center;
    margin-bottom: 2em;
    padding: 20px;
    border-bottom: 2px dotted var(--accent);
    background: linear-gradient(rgba(0, 0, 0, 0.2), transparent);
}

.bio-heading .quote-text {
    font-size: 1.4em;
    margin: 0.5em 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px var(--accent);
}

.bio-heading .quote-author {
    font-size: 1.1em;
    color: var(--accent);
    margin-top: 1em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .bio-heading .quote-text {
        font-size: 1.2em;
    }

    .bio-heading {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .bio-image {
        float: none;
        display: block;
        margin: 20px auto;
        max-width: 100%;
    }
}

@media (orientation: portrait) {
    /* .bio-wrapper {
        flex: 1;
    } */

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

    .buttons-container {
        flex: 1;
        padding-left: 0;
    }

    .side-icon-container {
        padding-left: 10px;
    }

    .icon-nobutton {
        width: 40px;
        height: 40px;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .icon-buttons {
        margin: 0;
        gap: 5px;
    }

    .bottom-buttons {
        padding: 0;
        gap: 5px;
    }

    .social-media-container {
        padding: 0;
    }
}

.member-details {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: rgba(0, 0, 0, 0.2);
}

.member-details th {
    font-size: 1.4em;
    padding: 15px;
    text-align: center;
    border-bottom: 2px dotted var(--accent);
    background: linear-gradient(rgba(0, 0, 0, 0.3), transparent);
}

.member-details td {
    padding: 10px 15px;
    border: none;
    line-height: 1.4;
}

.member-details .question {
    width: 30%;
    font-weight: bold;
    color: var(--accent);
    text-align: right;
    padding-right: 20px;
    vertical-align: top;
}

.member-details .answer {
    width: 70%;
    text-align: left;
}

@media (max-width: 600px) {
    .member-details td {
        padding: 8px;
    }

    .member-details .question {
        width: 40%;
        text-align: left;
    }

    .member-details .answer {
        width: 60%;
    }
}

.audio-controls {
    position: fixed;
    bottom: 2%;
    border: 1px outset #11111156;
    border-radius: 6px;
    padding: 5px;
    left: 2%;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--text-light);
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--text-light);
}

.mute-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.mute-button:hover {
    background: var(--accent);
}

.mute-button svg {
    width: 24px;
    height: 24px;
    display: block;
}