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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: black;
    color: #c0c0c0;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    text-align: center;
    background: #000000;
    color: #ffffff;
}

h3 {
    text-align: center;
}

.card {
    max-width: 50rem;
    margin: 0 auto 1rem auto;
}

fieldset {
    border: 1px solid #c0c0c0;
    padding: 0.75rem;
}

fieldset:hover {
    border-color: #ffffff;
}

legend {
    font-size: 1rem;
    font-weight: normal;
    color: #ffffff;
    padding: 0 0.5rem;
}

legend.quest::before {
    content: '> ';
}

legend.quest::after {
    content: ' <';
}

div {
    margin-bottom: 0.5rem;
}

label {
    cursor: pointer;
    font-size: 1rem;
}

label:hover {
    color: #ffffff;
}

input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

label:has(input[type="checkbox"]:not(:checked))::before {
    content: '[ ] ';
    color: #ffffff;
    cursor: pointer;
}

label:has(input[type="checkbox"]:checked)::before {
    content: '[X] ';
    color: #ffffff;
}

label:has(input[type="checkbox"]:checked) {
    color: #808080;
    text-decoration: line-through;
}

strong {
    color: #ffffff;
    font-weight: bold;
}

button {
    background: #000000;
    color: #c0c0c0;
    border: 1px solid #c0c0c0;
    padding: 0.5rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: normal;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

button:hover {
    background: #c0c0c0;
    color: #000000;
}

button:active {
    background: #ffffff;
    color: #000000;
}

button:disabled {
    background: #000000;
    color: #404040;
    border-color: #404040;
    cursor: not-allowed;
}

.footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.75rem;
    color: #808080;
    padding: 1rem;
}

a {
    color: #c0c0c0;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

a:visited {
    color: #c0c0c0;
}

@media (max-width: 768px) {
    body {
        padding: 8px;
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.2rem;
        padding: 0.6rem;
        margin: 0 0 1rem 0;
    }
    
    h3 {
        margin: 0.8rem 0;
        font-size: 1rem;
    }
    
    .card {
        max-width: 100%;
        margin: 0 auto 0.8rem auto;
    }
    
    fieldset {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    legend {
        font-size: 1.1rem;
        padding: 0 0.6rem;
    }
    
    div {
        margin-bottom: 0.7rem;
    }
    
    label {
        font-size: 1rem;
        line-height: 1.4;
        display: block;
        padding: 0.2rem 0;
    }
    
    button {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .footer {
        font-size: 0.7rem !important;
        margin-top: 1rem !important;
        padding: 0.8rem !important;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 8px !important;
        font-size: 16px !important;
    }
    
    h1 {
        font-size: 1.6rem !important;
    }
    
    legend {
        font-size: 1.4rem !important;
    }
    
    label {
        font-size: 1.2rem !important;
    }
    
    button {
        padding: 1rem 1.5rem !important;
        font-size: 1.3rem !important;
    }
    
    fieldset {
        padding: 1.2rem !important;
    }
}

/* Contact page styling */
#feedback {
  width: fit-content;
}

#feedback hr {
  margin: 0.5rem 0rem;
}

#form_body > *{
  margin: 0.25rem 0rem;
  width: 100%;
}

.button_full {
  width: 100%;
  margin: 0 auto;
}

.htmx-request .button_full {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
}

.htmx-request .button-text {
    display: none;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}
