* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: auto;
    background-color: #181a1b;
}

[hidden] {
    display: none !important;
}

.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;
}

.topnav {
    background-color: #26272b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 48px;
    overflow: visible;
    position: relative;
    z-index: 20;
}

.topnav a {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav button.icon {
    display: none;
    margin-left: auto;
    border: none;
    background: transparent;
    color: #f2f2f2;
    padding: 14px 16px;
    font-size: 17px;
    font-family: inherit;
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    border: none;
    outline: none;
    color: #f2f2f2;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
    cursor: pointer;
}

.dropbtn-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #f2f2f2;
    transition: transform 0.15s ease;
}

.dropdown:hover .dropbtn-caret,
.dropdown.open .dropbtn-caret {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #26272b;
    min-width: 200px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.35);
    z-index: 30;
}

.dropdown-content a {
    color: #f2f2f2;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 15px;
}

.topnav a:hover,
.dropdown:hover .dropbtn,
.dropdown.open .dropbtn,
.topnav-user button:hover,
.topnav-server:hover {
    background-color: #555;
    color: white;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background-color: #555;
    color: white;
}

.dropdown:hover .dropdown-content,
.dropdown.open .dropdown-content {
    display: block;
}

.topnav a.active {
    background-color: #555;
}

.topnav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f2f2f2;
    padding: 0 12px;
    font-size: 15px;
    min-height: 48px;
}

.topnav-user img,
.topnav-server-icon img,
.topnav-server-icon .avatar-fallback {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    background: #33353d;
}

.topnav-user button {
    border: none;
    background: transparent;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    padding: 6px 10px;
}

.topnav-server {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 200px;
    height: 32px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #1f2024;
    color: #f2f2f2;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 8px 0 3px;
}

.topnav-server-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.topnav-server-icon .avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e8e6e3;
    font-size: 10px;
    font-weight: bold;
}

#topnav-server-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child),
    .dropdown,
    .topnav-user {
        display: none;
    }

    .topnav button.icon {
        display: block;
    }

    .topnav.responsive {
        position: relative;
        align-items: stretch;
    }

    .topnav.responsive button.icon {
        position: absolute;
        right: 0;
        top: 0;
        margin-left: 0;
    }

    .topnav.responsive a {
        display: block;
        width: 100%;
        text-align: left;
    }

    .topnav.responsive .dropdown {
        display: block;
        width: 100%;
    }

    .topnav.responsive .dropdown-content {
        position: relative;
        box-shadow: none;
    }

    .topnav.responsive .dropdown.open .dropdown-content {
        display: block;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }

    .topnav.responsive .topnav-user {
        display: flex;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        min-height: 0;
        padding: 10px 12px;
    }
}

#page {
    flex: 1;
    margin-bottom: 10%;
    padding: 0 16px 24px;
}

.body1 {
    color: #e8e6e3;
    text-align: center;
}

.header1 {
    color: #e8e6e3;
    text-align: center;
}

#guild-list img,
#guild-list .avatar-fallback,
.avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    background: #33353d;
    vertical-align: middle;
}

.avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e8e6e3;
    font-size: 12px;
    font-weight: bold;
}

table {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
}

th, td {
    text-align: left;
    padding: 8px;
    color: white;
}

tr:nth-child(even) {
    background-color: #555;
}

tr:nth-child(odd) {
    background-color: #444;
}

th {
    background-color: #26272b;
    color: white;
}

#guild-list tr {
    cursor: pointer;
}

#guild-list tr:hover {
    background-color: #666;
}

#guild-list td:first-child {
    width: 40px;
}

select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #e8e6e3;
    background-color: #181a1b;
    border: 1px solid #737373;
    padding: 6px 8px;
    min-width: 220px;
}

.button {
    border: none;
    color: white;
    padding: 7px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    font-family: inherit;
}

.button1 {
    background-color: #26272b;
}

.button1:hover {
    background-color: #555;
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.error {
    color: #e07a5f;
}

.status.ok {
    color: #8fbf73;
}

.status.err {
    color: #e07a5f;
}

.site-footer {
    background-color: #26272b;
    padding: 20px 0;
    font-size: 15px;
    margin-top: auto;
    color: #737373;
}

.site-footer .social-icons {
    text-align: center;
}

.social-icons {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.social-icons li {
    display: inline-block;
    margin-bottom: 4px;
}

.social-icons a {
    background-color: #33353d;
    color: #818a91;
    font-size: 16px;
    display: inline-block;
    line-height: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    margin-left: 6px;
    margin-right: 0;
    border-radius: 100%;
}

.social-icons a:hover,
.social-icons a:focus {
    color: #fff;
}

.social-icons a.facebook:hover {
    background-color: #3b5998;
}

.social-icons a.twitter:hover {
    background-color: #00aced;
}

.social-icons a.twitch:hover {
    background-color: #9146ff;
}

.social-icons a.discord:hover {
    background-color: #99aab5;
}

.social-icons a.youtube:hover {
    background-color: #ff0000;
}
