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

@font-face {
    font-family: 'Norse';
    src: url('norse.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Norse-Bold';
    src: url('norse-bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Futhark';
    src: url('futhark.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.wrap {
    position: relative;
}

.wrap:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: url('bg.jpg') no-repeat center center;
    background-position: 50% 0;
    background-size: cover;
}

.banner {
    font-family: 'Futhark', serif;
    font-size: 1.3rem;
    color: #d4af37;
    height: 32px;
    padding-top: 4px;
    border-top: 1px solid #d4af37;
    border-bottom: 1px solid #d4af37;
    width:100%;
    position: absolute;
    left: 0;
    opacity: 0.4;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.banner-top {
    top: 4px;
}

.banner-bottom {
    bottom: 4px;
}

/* Container Styling */
.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    color: #e0e0e0;
    background-color: rgba(20, 20, 20, 0.7);
    min-height: 100vh;
    padding: 20px;
    padding-top: 80px;
    background-size: cover;
    min-height: 100vh;
}

/* Header */
h1 {
    font-size: 4rem;
    color: #d4af37;
    margin-bottom: 10px;
    font-family: 'Norse', 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to bottom, #ffd700, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheader {
    font-size: 2rem;
    color: #9e9e9e;
    margin-bottom: 20px;
    font-family: 'Norse', 'Cormorant Garamond', serif;
}

/* Raven Container */
.raven-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
}

.raven-image {
    background: url('raven.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
    padding-bottom: 100%; /* Creates a perfect circle by making height equal to width */
    border: 3px solid #d4af37;
    position: relative;
    border-radius: 50%;
}

@media only screen and (max-width: 768px) {
    .raven-container {
        width: 80%;
    }
}

/* Subtitle Box Overlay */
.subtitle-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #d4af37;
    padding: 10px;
    font-size: 1rem;
    display: none; /* Hidden initially */
}

/* Question Form */
.question-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

input:focus {
    outline: none;
    border: none;
}

input[type="text"] {
    width: 80%;
    max-width: 700px;
    padding: 10px;
    border: 2px solid #d4af37;
    background-color: #1c1c1c;
    color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 1rem;
    text-align: center;
    border-radius: 20px;
    font-style: italic;
    border-color: linear-gradient(to bottom, #ffd700, #b8860b);
}

button {
    padding: 10px 20px;
    border: none;
    color: #1c1c1c;
    font-weight: bold;
    font-size: 1.4rem;  
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 120px;
    font-family: 'Norse-Bold', 'Cormorant Garamond', serif;
    background: linear-gradient(to bottom, #ffd700, #b8860b);
}

button:hover {
    background: linear-gradient(to bottom, #ffe240, #ca9f32);
}

/* Response Output */
.response-output {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #d4af37;
    padding: 10px;
    border-top: 2px solid #444;
    width: 80%;
    max-width: 500px;
    text-align: center;
    display: none;
}

.audio-controls {
    /* display: flex; */
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control label {
    color: #ccc;
}

#volumeSlider {
    width: 150px;
    cursor: pointer;
}

.stop-button {
    padding: 8px 16px;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.stop-button:hover {
    background-color: #a00000;
}

/* Volume slider styling */
input[type=range].styled-slider {
    height: 2.2em;
    -webkit-appearance: none;
    background: transparent;
}

/* Progress support */
input[type=range].styled-slider.slider-progress {
    --range: calc(var(--max) - var(--min));
    --ratio: calc((var(--value) - var(--min)) / var(--range));
    --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em));
}

/* Thumb (the draggable circle) */
input[type=range].styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: rgba(169, 169, 169, 0.5);  /* Semi-transparent gray */
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-top: -0.5em;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

/* Track (the line) */
input[type=range].styled-slider::-webkit-slider-runnable-track {
    height: 0.3em;
    border-radius: 0.25em;
    background: rgba(169, 169, 169, 0.2);  /* Very light gray background */
    border: none;
}

/* Filled part of the track */
input[type=range].styled-slider.slider-progress::-webkit-slider-runnable-track {
    background: linear-gradient(rgba(169, 169, 169, 0.5), rgba(169, 169, 169, 0.5)) 0/var(--sx) 100% no-repeat,
                rgba(169, 169, 169, 0.2);
}

/* Firefox specific styles */
input[type=range].styled-slider::-moz-range-thumb {
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    background: rgba(169, 169, 169, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

input[type=range].styled-slider::-moz-range-track {
    height: 0.3em;
    border-radius: 0.25em;
    background: rgba(169, 169, 169, 0.2);
    border: none;
}

input[type=range].styled-slider.slider-progress::-moz-range-track {
    background: linear-gradient(rgba(169, 169, 169, 0.5), rgba(169, 169, 169, 0.5)) 0/var(--sx) 100% no-repeat,
                rgba(169, 169, 169, 0.2);
}

/* Add this at the top, after the reset */
body {
    position: relative;
    background-color: #1c1c1c;
}