/* color variable for yellow */
:root {
    --color-yellow: #ffe34a;
    --color-red: #c61d20;
    --color-light: #dddddd;
    --color-background: #000;
    --color-landmark-line: #c61d20;
    --color-landmark-point: #ff00ff;
    --color-green: #00ff00;
}

@font-face {
    font-family: 'Jurassic Park';
    src: url('../fonts/JurassicPark.woff2') format('woff2'),
        url('../fonts/JurassicPark.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Jurassic Park", sans-serif;
    font-size: 14px;
    background-color: var(--color-background);
    color: var(--color-yellow);
}

#videoContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#overlay,
#videoElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}

#overlay {
    pointer-events: none;
}

#feedbackMessage {
    margin-top: 0.5em;
    font-size: 1.2em;
    color: var(--color-light);
}

#emotionData {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background-color: rgba(255, 255, 255, .5);
    padding: 10px;
    box-sizing: border-box;
}

#emotionData h2 {
    margin-top: 0;
}

#targetEmotion {
    font-weight: bold;
    color: var(--color-yellow);
}

#matchPercentage {
    color: var(--color-light);
    transition: color 0.3s ease;
}

#matchPercentage.high {
    color: var(--color-green);
}

#matchPercentage.medium {
    color: var(--color-yellow);
}

#matchPercentage.low {
    color: var(--color-red);
}

#emotionsList {
    padding-left: 0px;
}

#emotionsList li {
    list-style-type: none;
    margin-bottom: 10px;
    text-transform: capitalize;
}

#readout {
    display: none;
    position: absolute;
    min-width: 260px;
    transition: all 0.1s;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

#readout p {
    margin: 0;
    color: var(--color-light);
    line-height: 1.4;
}

.emo-name {
    font-weight: bold;
}

.emo-percentage {
    margin-left: 1em;
}

/* Base styles for the slider */
.emo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #111, #333);
    /* Sci-fi dark gradient */
    border: 1px solid #444;
    border-radius: 50px;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    /* Soft blue glow */
    transition: box-shadow 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

#introOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#introOverlay h1,
#introOverlay p {
    text-align: center;
}

#nameContainer,
#interestingFactContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#nameContainer p,
#interestingFactContainer p {
    text-align: center;
    margin: 0;
}

#nameField,
#interestingFactField {
    text-align: center;
    display: block;
    margin: 1em 0;
    background-color: var(--color-yellow);
    color: var(--color-background);
    border: none;
    outline: none;
    font-size: 1.5em;
    padding: 0.5em;
    width: 100%;
    font-weight: 700;
}

#tutorialReadyBtn,
#nameSubmit,
#interestingFactSubmit {
    background-color: var(--color-yellow);
    color: var(--color-background);
    border: 1px solid var(--color-yellow);
    font-family: "Jurassic Park";
    border-radius: 50%;
    width: 5em;
    height: 5em;
    padding: 0;
    text-align: center;
    cursor: pointer;
    margin-top: 1em;

}

button:hover {
    background-color: var(--color-light);
}

/* all over face text stuff here */
#overFace {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
    z-index: 10;
    pointer-events: none;
}

#lines {
    font-size: 2em;
    color: var(--color-light);
    text-shadow: 1px 1px 2px #000;
    white-space: nowrap;
}

#messages {
    position: relative;
    width: 100%;
    padding: 0.5em;
    font-size: 1.5em;
    text-align: center;
    color: var(--color-yellow);
    text-shadow: 1px 1px 2px #000;
    transition: opacity 1s;
    margin-top: 2rem;
}

#fadeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    opacity: 0;
    transition: opacity 1s;
    z-index: 10000;
    pointer-events: none;
}

#belowFace {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--color-light);
    text-align: center;
    padding: 10px;
    font-family: 'Courier New', monospace;
    background-color: rgba(0, 0, 0, 0.75);
    font-size: 0.9em;
    line-height: 1.4;
    z-index: 20;
}

#belowFace br {
    margin: 2px 0;
}

@media (max-width: 768px) {
    #messages {
        /* font-size: 1.2em; */
        margin-top: 1rem;
    }

    #videoContainer {
        height: 100vh;
    }

    #overlay,
    #videoElement {
        height: 100%;
    }
}

/* Personality Test Styles */
#personalityTest {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 2em;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    z-index: 1000;
}

#personalityTest h2 {
    text-align: center;
    margin-bottom: 1.5em;
    color: var(--color-yellow);
}

.question {
    margin-bottom: 2em;
}

.question p {
    margin-bottom: 1em;
    color: var(--color-light);
    font-size: 1.2em;
}

.rating-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5em;
}

.rating-btn {
    flex: 1;
    padding: 0.5em;
    background-color: var(--color-yellow);
    color: var(--color-background);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Jurassic Park";
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.rating-btn:hover {
    background-color: var(--color-light);
    transform: scale(1.05);
}

.rating-btn.selected {
    background-color: var(--color-red);
    color: var(--color-light);
}

#submitPersonalityTest {
    display: block;
    margin: 2em auto 0;
    padding: 1em 2em;
    background-color: var(--color-yellow);
    color: var(--color-background);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Jurassic Park";
    font-size: 1.2em;
    transition: all 0.3s ease;
}

#submitPersonalityTest:hover {
    background-color: var(--color-light);
    transform: scale(1.05);
}