* {
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* Desktop specific styles */
@media (min-width: 769px) {
    img.header-logo {
        max-width: 350px;
        width: auto;
        height: auto;
    }
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    color: white;
}

body {
    /* The user needs to provide background.png in the 'images' folder */
    background-color: black;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    padding-left: 0;
    padding-right: 0;
}

.header-logo,
details,
.links-container,
.host-link {
    margin-left: auto;
    margin-right: auto;
}

a {
    color: white;
}

a:visited {
    color: white;
}

.host {
    background-color: rgba(
        0,
        0,
        0,
        0.5
    ); /* Semi-transparent background for readability */
    padding: 2rem 4rem;
    border-radius: 10px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-top: 0rem;
}

h2 a {
    text-decoration: none;
}

p {
    font-size: 1.2rem;
}

.headshot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.host-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Ensures the link wrapping the container behaves like a block */
}

.host-instagram {
    color: white;
}

.links-container {
    display: flex;
    flex-direction: column; /* Stack rows vertically */
    gap: 1.5rem; /* Increase gap between rows */
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.button-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.button-link {
    padding: 0.75rem 1.5rem;
    color: #444 !important;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease;
    background-color: white;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.button-link:hover {
    opacity: 0.9;
}

.header-logo {
    max-width: 100%;
    height: auto;
    margin-top: 2rem;
    display: block;
}

.collapse-panel {
    width: 80%;
    max-width: 600px;
    margin-bottom: 1.5rem;
    border: 1px solid #444;
    border-radius: 4px;
    overflow: hidden; /* To keep rounded corners */
}

.panel-header {
    background-color: #333;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.panel-title {
    font-weight: bold;
}

.panel-toggle-icon {
    transition: transform 0.3s ease;
}

.panel-content {
    padding: 1rem 1.5rem;
    background-color: #222;
    display: block; /* Initially visible */
}

/* State when collapsed */
.panel-content.collapsed {
    display: none;
}

.panel-toggle-icon.collapsed {
    transform: rotate(-90deg);
}

.comedian-button-group {
    border: 2px solid #e69138;
    border-radius: 5px;
    display: flex;
    gap: 1rem;
    margin: 0; /* Reset default margin */
    flex-wrap: wrap;
    width: 500px;
    max-width: 90%;
    justify-content: center;
}

.comedian-button-group legend {
    padding: 0 0.5rem;
    color: #e69138;
    font-weight: bold;
}

.comedian-button-group p {
    white-space: pre-line;
    flex-basis: 100%;
    margin: 0px;
    text-align: left;
}

details {
    border: 2px solid #ccc;
    border-radius: 5px;
    width: 500px;
    max-width: 90%;
    padding: 5px;
    box-sizing: border-box;
}

.emphasized {
    color: #e69138;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header-logo {
        margin-top: 1rem;
    }

    p {
        font-size: 1rem;
    }

    .host {
        padding: 1rem 2rem;
        margin: 0 1rem;
    }

    .headshot {
        width: 100px;
        height: 100px;
    }

    .comedian-button-group {
        width: 90%;
        max-width: 400px;
    }

    details {
        width: 90%;
        max-width: 400px;
    }

    .button-row {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .button-link {
        width: 100%;
        justify-content: center;
    }

    .button-row {
        width: 100%;
        max-width: 190px;
        justify-content: center;
        align-items: center;
    }

    .links-container {
        padding: 0 1rem;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .host {
        padding: 0.75rem 1rem;
        margin: 0 0.5rem;
    }

    .headshot {
        width: 80px;
        height: 80px;
    }

    .comedian-button-group {
        width: 95%;
    }

    details {
        width: 95%;
    }

    .button-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
