body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #F5F5F5 0%, #E8F4FD 100%); /* Subtle cyber-blue fade */
    color: #333;
    line-height: 1.4; /* Tighter for scannability */
}

header {
    text-align: center;
    background: #DF1A22;
    color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(223, 26, 34, 0.2);
    /* Removed sticky positioning */
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto; /* Centers horizontally, adds bottom margin */
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social {
    display: flex;
    gap: 15px;
}

.social a {
    color: #FFFFFF;
    font-size: 1.5em;
    transition: color 0.2s;
}

.social a:hover {
    color: #FFF5F5;
}

.icon {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 10px auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.icon:hover {
    opacity: 1;
}

h1 {
    color: #FFFFFF;
    margin: 0 0 10px;
    font-size: 2em; /* Slightly larger for impact */
}

h2 {
    color: #DF1A22;
    margin: 0 0 15px;
    font-size: 1.5em;
}

main .layout-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

#game {
    flex: 2;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#tips {
    flex: 1;
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-height: fit-content;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tip-card {
    margin-bottom: 12px;
    padding: 12px;
    background: #FFF5F5;
    border-left: 4px solid #DF1A22;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s; /* Hover lift */
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(223, 26, 34, 0.15);
}

.clues p {
    background: #FFF5F5;
    padding: 12px;
    margin: 10px 0;
    border-left: 4px solid #DF1A22;
    border-radius: 5px;
    font-size: 0.95em;
}

/* Enhanced Form Styling */
.form-wrapper {
    background: #FFF5F5;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #DF1A22;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(223, 26, 34, 0.1);
    text-align: center;
}

.input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

#passwordInput {
    flex: 1;
    min-width: 250px;
    padding: 16px;
    border: 2px solid #DF1A22;
    border-radius: 8px;
    font-size: 1.1em;
    background: #FFFFFF;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    color: #333;
}

#passwordInput::placeholder {
    color: #DF1A22;
    opacity: 0.7;
}

#passwordInput:focus {
    outline: none;
    border-color: #B8181C;
    box-shadow: 0 0 0 3px rgba(223, 26, 34, 0.15);
    transform: scale(1.02);
}

button {
    background: linear-gradient(135deg, #DF1A22 0%, #B8181C 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(223, 26, 34, 0.2);
}

button:hover:not(:disabled) {
    background: linear-gradient(135deg, #B8181C 0%, #A11618 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 26, 34, 0.3);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hidden {
    display: none;
}

#result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#result.success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

#result.error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.pro-tip {
    background: #E7F3FF;
    padding: 10px;
    border-radius: 5px;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
    border-left: 4px solid #007BFF;
}

.cta {
    text-align: center;
    margin: 15px 0;
}

.cta a {
    display: inline-block;
    background: #DF1A22;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.2s;
}

.cta a:hover {
    background: #B8181C;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile: Stack & simplify */
@media (max-width: 768px) {
    main .layout-container {
        flex-direction: column;
    }
    
    #game, #tips {
        flex: none;
        padding: 20px;
    }
    
    body {
        padding: 10px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    #passwordInput {
        min-width: 100%;
    }
    
    button {
        width: 100%;
        justify-content: center;
    }
    
    h1 { font-size: 1.5em; }
    h2 { font-size: 1.3em; }
    
    .social {
        gap: 10px;
    }
    
    .social a {
        font-size: 1.2em;
    }
    
    .form-wrapper {
        padding: 15px;
    }
}

footer {
    text-align: center;
    margin-top: 40px;
    color: #666;
    background: #FFFFFF;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer a {
    color: #DF1A22;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.phishing-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #DF1A22;
    border-radius: 10px;
}

.phishing-section h3 {
    color: #DF1A22;
    margin-bottom: 10px;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.banner {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.banner:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.banner i {
    font-size: 1.5em;
    margin-bottom: 5px;
    display: block;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 15%;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #DF1A22;
}

.close:hover {
    color: #B8181C;
}

.modal h4 {
    color: #DF1A22;
    margin-bottom: 10px;
}

.modal button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.modal button:hover {
    background: #218838;
}
.modal.hidden {
    display: none !important; /* Overrides flex; !important ensures it sticks */
}
@media (max-width: 768px) {
    .banners-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10%;
        width: 80%;
    }
}