@font-face {
    font-family: 'Home Video';
    src: url('../font/home-video/HomeVideo-BLG6G.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Home Video', sans-serif;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    min-height: 100vh; /* Allow content to expand beyond viewport height */
    overflow-y: auto; /* Enable vertical scrolling for the body */
    margin: 0;
    padding-bottom: 20px; /* Add some padding at the bottom for scrolling */
}

.ticket-container {
    max-width: 400px;
    width: 90%; /* Make it responsive */
    padding: 2em;
    margin: 0 auto; /* Horizontally center the container */
}

body {
    /* ... existing styles ... */
    padding-bottom: 20px; /* Add some padding at the bottom for scrolling */
}

h1 {
    font-family: 'Home Video', sans-serif;
    background-color: #ee54b2;
    color: black;
    font-size: 24px;
    text-align: center;
    margin-bottom: 1.5em;
    margin-top: 0;
}

form {
    width: 100%;
    /* max-width is handled by ticket-container now */
    display: flex;
    flex-direction: column;
}

form div {
    margin-bottom: 1.5em;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8em;
    font-size: 1rem;
    font-family: 'Home Video';
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    border: 1px solid #666; /* Lighter grey border for contrast */
    border-radius: 4px;
    box-sizing: border-box;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #fff;
    opacity: 1; /* Firefox */
}

button[type="submit"] {
    padding: 0.8em;
    font-family: 'Home Video';
    font-size: 1rem;
    color: #000;
    background-color: #3ec4e3;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #fff;
    color: #000;
}

.error-message {
    color: #ee54b2; /* Pink color for errors, matching h1 background and input focus border */
    text-align: center;
    margin-bottom: 1em;
    display: none; /* Hidden by default, shown by JavaScript */
    font-size: 0.9em;
}

.password-field {
    position: relative;
    margin-bottom: 1.5em;
}

.password-field input {
    width: 100%;
    padding-right: 3em; /* Make space for the toggle button */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #3ec4e3; /* Match button color */
    cursor: pointer;
    font-size: 0.8em;
    font-family: 'Home Video', sans-serif;
    padding: 0;
    z-index: 10;
}

.input-with-button {
    display: flex;
    gap: 10px; /* Space between input and button */
    margin-bottom: 1.5em; /* Maintain spacing */
    align-items: center; /* Vertically align items */
}

.input-with-button input {
    flex-grow: 1; /* Allow input to take up available space */
}

.input-with-button button {
    flex-shrink: 0; /* Prevent button from shrinking */
}

input[type="text"]:focus {
    outline: none; /* Remove default outline */
    border-color: #ee54b2; /* Change border color on focus to pink heading color */
}

.ritual-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.ritual-btn {
    width: 38px;
    aspect-ratio: 1;
    background: #252525;
    border: 1px solid white;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    touch-action: manipulation;
}

.ritual-btn:hover { 
    background: #545454; 
    border-color: #3ec4e3; 
}

.ritual-btn:active { 
    transform: scale(0.92); 
    background: #444; 
}

/* Wrapper for code display and toggle text */
.code-display-wrapper {
    display: flex;
    max-width: 268px;
    align-items: center; /* Vertically align items */
    width: 100%; /* Make it same width as ticket-form */
    margin: 0 auto 15px auto; /* Center the wrapper and add bottom margin */
    position: relative; /* For absolute positioning of toggle text */
}

.code-display {
    background: #1e1e1e;
    border: 1px solid white;
    padding: 10px;
    text-align: left;
    min-height: 24px;
    letter-spacing: 4px;
    color: #888;
    border-radius: 4px;
    width: 100%;
    margin: 0 auto;
}

.toggle-code-text {
    font-size: 0.8em; /* Smaller text */
    color: #3ec4e3; /* A contrasting color, similar to button submit */
    cursor: pointer;
    text-decoration: underline; /* Make it look like a link */
    white-space: nowrap; /* Prevent wrapping */
    position: absolute; /* Position relative to .code-display-wrapper */
    right: 0;
    top: -20px;
    transform: translateY(-50%); /* Vertically center */
    line-height: 1; /* Normalize line height for better vertical centering */
}

.toggle-code-text:hover {
    color: #fff; /* White on hover */
}

.input-with-button {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-row {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}