/* Reset and global styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Bodoni MT', serif;
    background-image: url('images/paper.png');
    background-repeat: repeat;
}

body {
    display: flex;
    flex-direction: column;
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px; /* Adjusted to match sidebar width */
    height: 100%;
    background-image: url('images/hadesGlassPane.png');
    background-size: contain; /* Ensures the image maintains aspect ratio in portrait */
    background-repeat: repeat-y;
    box-sizing: border-box;
}

.sidebar-border {
    position: absolute;
    right: 0;
    top: 0;
    width: 16.67px; /* Width of the purple border */
    height: 100%;
    background-color: #633b7d;
}

/* Topbar styles */
.topbar {
    position: fixed;
    top: 0;
    left: 200px; /* Adjusted to match sidebar width */
    width: calc(100% - 200px);
    height: 200px;
    background-color: #cececd;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    z-index: 1;
}

.topbar-border {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16.67px;
    background-color: #633b7d;
}

/* Keep the topbar-content styles */
.topbar-content {
    position: relative;
    height: 100%; /* Fill the height of the topbar */
    width: 100%; /* Fill the width of the topbar */
    background-image: url('images/topbarBackground.png');
    background-repeat: repeat-x;
    background-position: top;
    background-color: transparent; /* Ensure no fallback color is interfering */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0; /* Ensure it stays below the centered image */
}

/* Style for the Nyx image */
.center-image {
    position: absolute;
    max-width: 100%;
    height: 100%; /* Maintain aspect ratio */
    z-index: 1; /* Keep it on top of the background */
}

.logo-link {
    height: 50%;
    display: block;
    margin: 0;
    padding: 0;
}

.full-logo {
    height: 100%;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

/* Menu styles */
.menu {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.menu a {
    color: black;
    font-family: 'Cascadia Code', monospace;
    text-decoration: none;
    font-size: 1em;
}

.menu a:hover {
    color: #d2221a;
    text-decoration: underline;
}

/* Corner logo styles */
.corner-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px; /* Adjusted to match sidebar width */
    height: 200px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.corner-logo img {
    width: 125px;
    height: auto;
    position: relative;
    top: -8.33px;
    left: -8.33px;
}

.corner-border-vertical, .corner-border-horizontal {
    position: absolute;
    background-color: #633b7d;
}

.corner-border-vertical {
    top: 0;
    right: 0;
    width: 16.67px; /* Width of the purple border */
    height: 100%;
}

.corner-border-horizontal {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 16.67px; /* Height of the purple border */
}

/* Main content styles */
.main {
    margin-left: 200px; /* Adjusted to match sidebar width */
    margin-top: 250px;
    padding: 0px;
    box-sizing: border-box;
    width: calc(100% - 200px);
    text-align: center;
}

.header-text {
    color: #633b7d;
    font-size: 2.5em;
}

.sub-header-text {
    color: black;
    font-size: 1em;
}

.etsy-link a {
    color: black;
    font-family: 'Cascadia Code', monospace;
    text-decoration: none;
    font-size: 2em;
}

.etsy-link a:hover {
    color: #d2221a;
    text-decoration: underline;
}

.hades-text a {
    color: #d2221a;
    font-family: 'Bodoni MT', serif;
    font-weight: bold;
    font-size: 3em;
}

.space-text a {
    color: black;
    font-family: 'Bodoni MT', serif;
    font-weight: bold;
    font-size: 3em;
}

.main img, .main-video {
    margin-top: 50px;
    width: 400px;
    height: auto;
}

.mailing-list-link a {
    color: #633b7d;
    font-family: 'Cascadia Code', monospace;
    text-decoration: none;
    font-size: 1em;
}

.mailing-list-link a:hover {
    color: #d2221a;
    text-decoration: underline;
}

.spacer {
  height: 10px;
}

.photo-container {
    display: flex;
    justify-content: center;
}

.team-photos, .artist-photo {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.team-photos img, .artist-photo img {
    width: 300px;
    height: auto;
    margin: 10px;
}

.team-header-text {
    color: black;
    font-family: 'Bodoni MT', serif;
    text-decoration: none;
    font-size: 2em;
}

.team-text {
    margin: 0 auto;
    max-width: 800px;
    color: black;
    font-family: 'Cascadia Code', monospace;
    text-decoration: none;
    font-size: 1em;
    text-align: center;
}

.privacy-text {
    margin: 0 auto;
    max-width: 800px;
    color: black;
    font-family: 'Cascadia Code', monospace;
    text-decoration: none;
    font-size: 1em;
    text-align: left;
}

.artist-photo img {
    width: 500px;
    height: auto;
}

.main-content {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    padding-top: 0.5em;
}

.subscription-text {
    color: #633b7d;
    font-family: 'Dancing Script', 'Cursive';
    font-size: 2em;
    margin-bottom: 0.6em;
}

.info-text {
    margin: 0 auto;
    max-width: 600px;
    font-size: 1.2em;
    color: black;
    font-family: 'Bodoni MT', serif;
    text-align: center;
    margin-bottom: 1.2em;
}

.form-container {
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    color: #633b7d;
    font-family: 'Bodoni MT', serif;
    font-size: 1.2em;
}

.form-field input[type="text"],
.form-field input[type="email"] {
    width: 90%;
    padding: 10px;
    font-size: 1.2em;
}

.notification-preferences {
    margin-top: 20px;
    color: #633b7d;
    font-family: 'Bodoni MT', serif;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.notification-preferences label {
    color: black;
    font-family: 'Bodoni MT', serif;
    font-size: 1em;
}

.notification-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.button {
    background-color: #cececd;
    color: black;
    padding: 10px 20px;
    font-family: 'Bodoni MT', serif;
    font-size: 1.2em;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.button:hover {
    background-color: #b0b0b0;
    text-decoration: underline;
}

.honeypot {
    display: none;
}

input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #633b7d;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    background-color: transparent;
}

input[type="checkbox"]:checked {
    background-color: #cececd;
}

input[type="checkbox"]:checked:before {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: #d2221a;
    font-weight: bold;
}

.unsubscribe-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 1em;
    color: #633b7d;
    font-family: 'Bodoni MT', serif;
    font-weight: bold;
}

.unsubscribe-link:hover {
    color: #d2221a;
    text-decoration: underline;
}

.confirmation-message,
.unsubscribe-message {
    display: none;
}

/* Media queries */
@media screen and (max-width: 800px) {
    .sidebar {
        width: 150px; /* Adjusted for smaller screen */
        background-size: contain; /* Ensures the image maintains aspect ratio */
    }

    .sidebar-border {
        width: 12.5px; /* Adjusted for smaller screen */
    }

    .topbar {
        left: 150px; /* Adjusted for smaller screen */
        width: calc(100% - 150px);
        height: 150px;
    }

    .topbar-border {
        height: 12.5px; /* Adjusted for smaller screen */
    }

    .corner-logo {
        width: 150px; /* Adjusted for smaller screen */
        height: 150px;
    }

    .corner-logo img {
        width: 93.75px; /* Adjusted for smaller screen */
        top: -6.25px;
        left: -6.25px;
    }

    .corner-border-vertical {
        width: 12.5px; /* Adjusted for smaller screen */
    }

    .corner-border-horizontal {
        height: 12.5px; /* Adjusted for smaller screen */
    }

    .logo-link {
        height: 45%;
        display: block;
        margin: 0;
        padding: 0;
    }

    .full-logo {
        height: 100%;
        display: block;
        margin: 0;
        padding: 0;
        vertical-align: bottom;
    }

    .menu {
        gap: 16px;
    }

    .menu a {
        font-size: 0.67em;
    }

    .main {
        margin-left: 150px; /* Adjusted for smaller screen */
        margin-top: 225px;
        width: calc(100% - 150px);
    }

    .header-text {
        font-size: 2em;
    }

    .sub-header-text {
        font-size: 1.5em;
    }

    .main img {
        width: 200px;
    }

    .main-video {
        max-width: 200px;
    }

    .team-text {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .sidebar {
        width: 100px; /* Adjusted for smaller screen */
        background-size: contain; /* Ensures the image maintains aspect ratio */
    }

    .sidebar-border {
        width: 8.33px; /* Adjusted for smaller screen */
    }

    .topbar {
        left: 100px; /* Adjusted for smaller screen */
        width: calc(100% - 100px);
        height: 100px;
    }

    .topbar-border {
        height: 8.33px; /* Adjusted for smaller screen */
    }

    .corner-logo {
        width: 100px; /* Adjusted for smaller screen */
        height: 100px;
    }

    .corner-logo img {
        width: 62.5px; /* Adjusted for smaller screen */
        top: -4.17px;
        left: -4.17px;
    }

    .corner-border-vertical {
        width: 8.33px; /* Adjusted for smaller screen */
    }

    .corner-border-horizontal {
        height: 8.33px; /* Adjusted for smaller screen */
    }

    .logo-link {
        height: 40%;
        display: block;
        margin: 0;
        padding: 0;
    }

    .full-logo {
        height: 100%;
        display: block;
        margin: 0;
        padding: 0;
        vertical-align: bottom;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        font-size: 0.5em;
    }

    .main {
        margin-left: 100px; /* Adjusted for smaller screen */
        margin-top: 150px;
        width: calc(100% - 100px);
    }

    .header-text {
        font-size: 1.5em;
    }

    .sub-header-text {
        font-size: 1.2em;
    }

    .main img {
        width: 150px;
    }

    .main-video {
        max-width: 150px;
    }

    .team-text {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
    }
}

@media screen and (orientation: landscape) {
    .sidebar {
        background-size: cover; /* Ensures the image covers the entire area */
    }
}

/* Additional styles to prevent image stretching */
.team-photos img,
.artist-photo img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
}

/* Updated menu placement on topbar-border */
.topbar-border .menu {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 2;
}

.topbar-border .menu a {
    color: white;
    text-decoration: none;
    font-size: 0.9em; /* Adjust size if necessary */
    font-family: 'Cascadia Code', monospace;
    white-space: nowrap; /* Prevent text wrapping */
}

.topbar-border .menu a:hover {
    color: #d2221a;
    text-decoration: underline;
}

/* Style the new logo in the body */
.header-logo {
    text-align: center;
    margin: 20px 0;
}

.body-logo {
    max-width: 100%;
    height: auto;
}
