/* Hunt Theme: Space Station Emergency */

/* Font import */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* ========================================
   Base Container Styles (from template.html)
   ======================================== */

#container {
    min-height: 100vh;
    background: #0a0a1a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="50" cy="50" r="1" fill="white"/><circle cx="150" cy="80" r="1.5" fill="white"/><circle cx="250" cy="30" r="1" fill="white"/><circle cx="350" cy="120" r="1" fill="white"/><circle cx="100" cy="200" r="1.5" fill="white"/><circle cx="200" cy="150" r="1" fill="white"/><circle cx="300" cy="250" r="1" fill="white"/><circle cx="80" cy="300" r="1" fill="white"/><circle cx="180" cy="350" r="1.5" fill="white"/><circle cx="320" cy="380" r="1" fill="white"/></svg>');
    padding: 40px 20px;
}

.content-box {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 30, 60, 0.9);
    border: 2px solid #00aaff;
    padding: 30px;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    color: #00aaff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 12px;
    color: #6699cc;
    text-align: center;
    margin-bottom: 25px;
}

.message-box {
    background: rgba(0, 50, 80, 0.5);
    border-left: 3px solid #00aaff;
    padding: 20px;
    margin-bottom: 30px;
    color: #ccddeeff;
    line-height: 1.7;
}

.message-box h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00dd77;
    font-size: 18px;
    margin-bottom: 15px;
}

.message-box p {
    margin-bottom: 10px;
}

.section-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: #ff6633;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ff6633;
}

.puzzle-table {
    width: 100%;
    border-collapse: collapse;
}

.puzzle-table tr {
    border-bottom: 1px solid #334455;
}

.puzzle-table tr:hover {
    background: rgba(0, 100, 150, 0.3);
}

.puzzle-table td {
    padding: 12px 10px;
}

.puzzle-table a {
    color: #00aaff;
    text-decoration: none;
}

.puzzle-table a:hover {
    text-decoration: underline;
}

.answer {
    color: #00dd77;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ========================================
   Puzzle Page Styles (puzzle_non_template.html)
   ======================================== */

/* Apply space theme background to the entire page body */
body {
    background: #0a0a1a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="50" cy="50" r="1" fill="white"/><circle cx="150" cy="80" r="1.5" fill="white"/><circle cx="250" cy="30" r="1" fill="white"/><circle cx="350" cy="120" r="1" fill="white"/><circle cx="100" cy="200" r="1.5" fill="white"/><circle cx="200" cy="150" r="1" fill="white"/><circle cx="300" cy="250" r="1" fill="white"/><circle cx="80" cy="300" r="1" fill="white"/><circle cx="180" cy="350" r="1.5" fill="white"/><circle cx="320" cy="380" r="1" fill="white"/></svg>');
    min-height: 100vh;
}

/* Info box section */
#infoboxSection {
    padding: 40px 20px 20px;
}

/* Puzzle info box container */
#puzzle-infobox {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Content box - the main info panel */
#puzzle-infobox #content-box {
    background: rgba(0, 30, 60, 0.95) !important;
    border: 2px solid #00aaff;
    border-radius: 0;
    color: #ccddeeff;
}

/* Puzzle title */
#puzzle-infobox h1 {
    font-family: 'Orbitron', sans-serif;
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Back button */
#puzzle-infobox .button.is-light {
    background: rgba(0, 50, 80, 0.8);
    border: 1px solid #00aaff;
    color: #00aaff;
}

#puzzle-infobox .button.is-light:hover {
    background: rgba(0, 100, 150, 0.8);
    color: #ffffff;
}

/* Form styling */
#puzzle-infobox .control input[type="text"],
#puzzle-infobox .control input[type="submit"],
#puzzle-infobox input.form-control {
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid #00aaff;
    color: #ffffff;
    border-radius: 0;
}

#puzzle-infobox input.form-control::placeholder {
    color: #6699cc;
}

#puzzle-infobox input.form-control:focus {
    border-color: #00dd77;
    box-shadow: 0 0 5px rgba(0, 221, 119, 0.5);
    outline: none;
}

/* Submit button */
#puzzle-infobox .btn-primary,
#puzzle-infobox input[type="submit"] {
    background: linear-gradient(180deg, #00aaff, #0066aa);
    border: 1px solid #00aaff;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.2s ease;
}

#puzzle-infobox .btn-primary:hover,
#puzzle-infobox input[type="submit"]:hover {
    background: linear-gradient(180deg, #00ccff, #0088cc);
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

/* Stats and action buttons */
#puzzle-infobox .button.is-static,
#puzzle-infobox .button.is-fullwidth {
    background: rgba(0, 50, 80, 0.8);
    border: 1px solid #00aaff;
    color: #00aaff;
    border-radius: 0;
}

#puzzle-infobox .button.is-fullwidth:not(.is-static):hover {
    background: rgba(0, 100, 150, 0.8);
    color: #ffffff;
}

/* Message boxes (updates, warnings) */
#puzzle-infobox .message {
    background: transparent;
    border-radius: 0;
}

#puzzle-infobox .message.is-danger .message-body {
    background: rgba(60, 20, 20, 0.8);
    border: none;
    border-left: 3px solid #ff6633;
    color: #ffccaa;
}

#puzzle-infobox .message.is-warning .message-body {
    background: rgba(60, 50, 20, 0.8);
    border: none;
    border-left: 3px solid #ffaa00;
    color: #ffddaa;
}

/* Table styling for submission history */
#puzzle-infobox table {
    background: transparent;
    color: #ccddeeff;
}

#puzzle-infobox table th {
    background: rgba(0, 50, 80, 0.5);
    color: #00aaff;
    border-bottom: 1px solid #00aaff;
}

#puzzle-infobox table td {
    border-bottom: 1px solid #334455;
}

#puzzle-infobox table tr:hover td {
    background: rgba(0, 100, 150, 0.2);
}

/* Correct answer highlighting */
#puzzle-infobox .has-text-success,
#puzzle-infobox .text-success {
    color: #00dd77 !important;
}

/* Puzzle content container */
#puzzle-container {
    padding: 20px 20px 40px;
}

#puzzle-padding {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 30, 60, 0.9);
    border: 2px solid #00aaff;
    padding: 30px;
}

#puzzle-content,
.puzzle-body {
    color: #ccddeeff;
    line-height: 1.7;
}

/* Style links within puzzle content */
#puzzle-content a,
.puzzle-body a {
    color: #00aaff;
}

#puzzle-content a:hover,
.puzzle-body a:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* Style headings within puzzle content */
#puzzle-content h1,
#puzzle-content h2,
#puzzle-content h3,
.puzzle-body h1,
.puzzle-body h2,
.puzzle-body h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00aaff;
}

/* PDF embed styling */
#puzzle-padding embed {
    border: 1px solid #00aaff;
}

/* Form labels */
#puzzle-infobox label {
    color: #6699cc;
    font-size: 0.9em;
}

/* Input group styling (for answer form) */
#puzzle-infobox .input-group {
    display: flex;
    gap: 10px;
}

#puzzle-infobox .input-group .form-control {
    flex: 1;
}
