@font-face {
  font-family: 'Futura';
  src: url('/static/fonts/futura-book-webfont.woff2') format('woff2'),
       url('/static/fonts/futura-book-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body, html {
    font-family: 'Futura', Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #181a1b;
    color: #f1f1f1;
    width: 100vw;
    height: 100vh;
}
#menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* This centers content vertically */
    height: 100vh;
    width: 100vw;
    background: #181a1b;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
#menu h2 {
    margin-bottom: 32px;
}
.server-list {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Decrease the gap between server cards */
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
}
.server-btn {
    background: #23272b;
    color: #f1f1f1;
    border: none;
    padding: 20px 40px;
    font-size: 1.2em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.server-btn:hover {
    background: #444950;
}
.server-card {
    background: #23272b;
    color: #f1f1f1;
    border-radius: 32px;
    box-shadow: 0 4px 24px #000a;
    padding: 12px 12px 12px 24px;
    min-width:320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 0; /* Remove any extra margin if present */
}
.server-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.server-name {
    font-size: 1.5em;
    font-weight: bold;
}
.server-functions {
    font-size: 1.0em;
    color: #7253ff;
}
.server-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.server-action-btn {
    background: #181a1b;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1f1f1;
    font-size: 2em;
    cursor: pointer;
    transition: background 0.2s;
}
.server-action-btn:hover {
    background: #444950;
}
#terminal-container {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #181a1b;
    z-index: 1;
}
#terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #23272b;
    color: #f1f1f1;
    padding: 8px 16px;
    font-size: 1.1em;
    border-bottom: 1px solid #333;
    height: 40px;
}
#terminal-server-name {
    font-weight: bold;
}
#terminal {
    width: 100vw;
    height: calc(100vh - 40px);
}
.icon {
    pointer-events: none;
}

.login-box {
    max-width: 320px;
    margin: 100px auto;
    padding: 24px;
    padding-top: 8px;
    background: #23272b;
    border-radius: 32px;
}

.login-box h2 {
    padding: 10px;
    text-align: center;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    border: none;
    border-radius: 24px;
    background: #181a1b;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    outline: 2px solid #0078d4;
    background: #222426;
}

.login-box button {
    width: 100%;
    padding: 10px 14px;
    margin-top: 12px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-box button:hover {
    background: #005fa3;
}

.login-box .error {
    color: #ff6b6b;
}
.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background 0.2s;
    margin-left: 24px;
    cursor: pointer;
}
.logout-btn:hover {
    background: #55a;
}
.logout-btn img {
    width: 24px;
    height: 24px;
    display: block;
}
.login-box-btn, .settings-box button {
    width: 100%;
    padding: 10px 14px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.login-box-btn:hover, .settings-box button:hover {
    background: #005fa3;
}

/* Circular button style for login, settings, and index page */
.circular-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.circular-btn:hover {
    background: #005fa3;
}

.circular-btn img {
    width: 24px;
    height: 24px;
    display: block;
}
.login-box-input {
    outline: 2px solid #888;
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0 16px 0;
    border: none;
    border-radius: 24px;
    background: #181a1b;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.login-box-input:focus {
    outline: 2px solid #0078d4;
    background: #222426;
}
.menu-controls {
    display: flex;
    gap: 8px;
}