@font-face {
    font-family: 'MinecraftDefault';
    src: url('/static/fonts/MinecraftDefault-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'MinecraftDefault';
    src: url('/static/fonts/MinecraftDefault-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: bold;
}
@font-face {
    font-family: 'MinecraftDefault';
    src: url('/static/fonts/MinecraftDefault-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'MinecraftDefault';
    src: url('/static/fonts/MinecraftDefault-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

body {
    margin: revert;
    background-color: #0b1c22;
    color: #e9f8f2;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #102b33;
    padding: 1rem 2rem;
}

.nav-links a, .login a {
    color: white;
    margin: 0 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .login a:hover {
    color: #d4fff3;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: #d4fff3;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

main {
    margin-top: 10vh;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(70deg, #5fe7c1, #3dc9b0, #39c471);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 3px 0px rgba(0,0,0,0.4);
    display: inline-block;
}

.subtitle {
    margin-top: 1rem;
    color: #c8f4e4;
}

.buttons {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.button {
    background-color: #2fa08c;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 0 #1b6359;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button:hover {
    background: #3dc9b0;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #1b6359;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

.bot-card {
    background: #383838;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.bot-image img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.bot-image img:hover {
    transform: scale(1.05);
    filter: brightness(85%);
}

.world-info {
    margin-top: 0.5rem;
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.2s ease;
}

.world-name a {
    font-family: 'MinecraftDefault';
    display: inline;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: #ccc;
    text-decoration: none;
    font-weight: inherit;
    cursor: pointer;
    transition: color 0.2s ease;   
}

.world-name a:hover {
    display: inline;
    color: #83ccb6;
    text-decoration: underline;
}

.owner a {
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: none;
    font-weight: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.owner a:hover {
    color: #83ccb6;
    text-decoration: underline;
}

.owner-head {
    display: inline-block;
    vertical-align: middle;
    gap: 0.2rem;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 6px;
}

.status {
    margin-top: 0.5rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

.status.online {
    background: #3cfc4d;
    color: #000;
}

.status.offline {
    background: #fc3c3c;
    color: #fff;
}

#log-container {
    width: 100%;
    height: 400px;
    background: #111;
    color: #0f0;
    padding: 10px;
    font-family: monospace;
    overflow-y: scroll;
    white-space: pre-wrap;
    margin-top: 20px;
    border-radius: 8px;
}

main {
    padding-bottom: 4.5rem;
}

body {
  margin: 0;
  padding-bottom: 100px;
}

.site-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #102b33;
    border-top: 1px solid #184b4a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 15rem;
    box-sizing: border-box;
    z-index: 50;
}

.site-footer .footer-left,
.site-footer .footer-right {
    flex: 0 0 auto;
    min-width: 6rem;
}

.site-footer .footer-center {
    flex: 1 1 60%;
    text-align: center;
    color: #a8dcd1;
    font-size: 0.88rem;
    line-height: 1.45;
    padding: 0 1rem;
}

.site-footer a {
    color: #5fe7c1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s ease;
}

.site-footer a:hover {
    color: #3dc9b0;
}

@media (max-width: 350px) {
    .site-footer {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.65rem;
        text-align: center;
    }

    .site-footer .footer-left,
    .site-footer .footer-right,
    .site-footer .footer-center {
        min-width: auto;
        flex: none;
    }

    main {
        padding-bottom: 8rem;
    }
}
