/* Dark Island - Faded Memories CSS */

@import url('https://fonts.googleapis.com/css2?family=Inknut+Antiqua:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inknut Antiqua', 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

/* Blurred and darkened background image */
body::before {
    content: '';
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-image: url('../images/image_33.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: brightness(0.3);
    pointer-events: none;
    z-index: -1;
}

form, .form-container {
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 1);
    max-width: 450px;
    max-width: 600px;
    position: relative;
    overflow: hidden;
    background-color: black;
    margin: 20px;
}

h1 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Logo styling */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    filter: brightness(0) invert(1);
}

.error-message {
    color: rgba(255, 0, 0, 0.8);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    color: #cdcdcd;
    background-color: transparent;
    font-size: 16px;
    transition: all 0.0s ease;
    text-align: center;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #009ba9 solid;
}

input[type="text"]::placeholder, input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

label[for="updates"] {
    color: #e8e8e8;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #9e0303;
    cursor: pointer;
}

p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    line-height: 1.5;
    font-size: 14px;
    text-align: center;
}

input[type="submit"], input[type="button"] {
    width: 100%;
    padding: 15px;
    background: rgb(130, 0, 0);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    background: rgb(155, 0, 0);
}

/* Code input specific styling */
#codeInput {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* Installation Instructions Foldout Menu */
.instructions-container {
    margin-top: 20px;
    width: 100%;
    text-align: left;
}

.instructions-container h3, .instructions-container h4 {
    color: #c6c6c6;
    margin-bottom: 10px;
    font-size: 14px;
}

.left-align {
    text-align: left;
    font-size: 12px;
}

.step {
    padding: 4px;
    margin-bottom: 5px;
}

/* Responsive design */
@media (max-width: 480px) {
    form, .form-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .logo {
        max-height: 80px;
    }
    
    input[type="text"], input[type="email"], input[type="submit"] {
        padding: 12px;
        font-size: 16px;
    }
    
}

/* Invalid input styling */
input:invalid {
    border-color: rgba(255, 0, 0, 0.5);
}

input:valid {
    border-color: rgba(0, 255, 0, 0.3);
}

/* Focus states for accessibility */
input:focus, input[type="checkbox"]:focus {
    outline: 2px solid rgba(212, 165, 116, 0.5);
    outline-offset: 2px;
}

/* Name on Sword styling */
.name-on-sword-container {
    margin-bottom: 20px;
}

.name-on-sword-container label {
    display: block;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 8px;
    text-align: left;
}

/* Version Selection Dropdown */
.version-select-container {
    margin-bottom: 20px;
}

.version-select-container label {
    display: block;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 8px;
    text-align: left;
}

select {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #cdcdcd;
    font-size: 16px;
    font-family: 'Inknut Antiqua', serif;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #009ba9;
}

select option {
    background-color: black;
    color: white;
    padding: 10px;
}

.input-button-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-button-group input[type="text"] {
    flex: 1;
    margin-bottom: 0;
}

.update-btn {
    width: auto !important;
    min-width: 80px;
    padding: 8px 16px !important;
    font-size: 14px !important;
    background: rgba(130, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    height: auto;
}

.update-btn:hover {
    background: rgba(155, 0, 0, 0.9) !important;
    transform: none !important;
}

.sword-explanation {
    margin-top: 8px;
    margin-bottom: 50px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    line-height: 1.4;
    text-align: center;
}

/* Community Links Styling */
.community-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.community-btn {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    font-family: 'Inknut Antiqua', serif;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.community-btn:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/* Responsive design for community links */
@media (max-width: 480px) {
    .community-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}
