/* Styles to keep things controlled */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #000;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.container {
    max-width: 1000px;
    padding: 20px;
    width: 100%;
    margin: 0 auto;
}

.logo {
    width: 180px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #ccc;
    margin-top: 5px;
    letter-spacing: 1.5px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-top: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid #555;
}

/* Mission Section */
.mission-section {
    margin-top: 30px;
    padding: 20px;
    background: #111;
    border-radius: 10px;
}

.mission-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #ccc;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.mission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-content p {
    font-size: 1em;
    color: #bbb;
    margin-bottom: 15px;
    max-width: 800px;
}

.mission-content .mission-image {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    border: 2px solid #555;
}

/* Divisions Section */
.division-list {
    margin-top: 30px;
}

.division-list ul {
    list-style: none;
}

.division-list li {
    font-size: 1.2em;
    margin: 10px 0;
    color: #aaa;
}

/* Footer and Signup Form */
footer {
    margin-top: 30px;
    font-size: 0.8em;
    color: #555;
}

footer h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

footer p {
    margin: 10px 0;
}

.signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-form input[type="email"] {
    padding: 10px;
    margin: 5px;
    width: 80%;
    max-width: 300px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

.signup-form button {
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.signup-form button:hover {
    background-color: #555;
}

header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Login button */
.login-button {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.login-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.login-page {
    text-align: center;
    margin-top: 30px;
}

.login-page h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group label {
    font-size: 1em;
    margin-bottom: 5px;
    color: #ccc;
}

.form-group input {
    width: 80%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #555;
}

.hint {
    margin-top: 5px;
    font-size: 0.9em;
    color: red;
    visibility: hidden;
}

button {
    padding: 10px 20px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.auto-fill-box {
    position: relative;
    top: 100%;
    left: 0;
    width: 80%;
    max-width: 300px;
    padding: 10px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9em;
    color: #000;
    z-index: 1000;
}

.auto-fill-box .top-section {
    display: flex;
    align-items: center;
    text-align: left;
}

.key-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.auto-fill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.auto-fill-username {
    font-weight: bold;
}

.auto-fill-password {
    color: #666;
}

.divider {
    margin: 10px 0;
    border: 0;
    height: 1px;
    background-color: #ccc;
    width: 100%;
}

.auto-fill-footer {
    font-size: 0.8em;
    color: #666;
    text-align: left;
    width: 100%;
}

.auto-fill-box {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.auto-fill-box.show {
    opacity: 1;
}

/* EI News Section */
.news-section {
    width: 100%;
    background-color: #111;
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
    border-radius: 10px;
}

.news-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    text-align: center;
}

.news-logo {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

.news-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #ccc;
    letter-spacing: 1.5px;
}

.news-articles {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 20px;
}

.news-item {
    display: flex;
    background-color: #222;
    border-radius: 5px;
    overflow: hidden;
    max-width: 400px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    height: 166px;
}

.news-item img, .news-video {
    width: 200px;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-video {
    position: relative;
    padding-bottom: 42%;
    height: 0;
    overflow: hidden;
}

.news-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.news-content {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.news-content h3 {
    font-size: 1em;
    margin-bottom: 5px;
}

.news-content p {
    font-size: 0.8em;
    color: #bbb;
}

.news-video:fullscreen {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.news-video:-webkit-full-screen {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.division-list {
    text-align: center;
    margin: 20px 0;
}

.logo-container {
    max-width: 100%;
}

.division-logo {
    display: block;
    height: 16px;
    width: auto;
    margin: 10px auto;
}

.hacked-alert {
    background-color: #8b0000; /* Dark Red for an emergency feel */
    color: #fff;
    padding: 30px;
    text-align: center;
    font-family: 'Courier New', monospace; /* Hacker-style font */
    font-size: 1.2em;
    position: relative;
    animation: glitchAnimation 0.05s infinite alternate ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20%;
}

.hacked-alert-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hacked-alert-content a {
    color: white;
}

.alert-symbol {
    font-size: 1.5em;
}

.hacked-message {
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Glitch effect */
@keyframes glitchAnimation {
    0% { transform: skewX(0deg); opacity: 1; }
    20% { transform: skewX(-0.5deg); opacity: 0.9; }
    40% { transform: skewX(0.5deg); opacity: 1; }
    60% { transform: skewX(-0.5deg); opacity: 0.8; }
    80% { transform: skewX(0.5deg); opacity: 1; }
    100% { transform: skewX(0deg); opacity: 0.9; }
}
