:root {
    --primary: #357ded;
    --background: #1b1b1e;
    --card: #773737;
    --text: #e86a92;
    --links: #ff6adf;
    --font-size: 24px;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-size: var(--font-size);
}

a {
    color: var(--links);
}

a:visited {
    color: #ff00ff;
}

img {
    border-radius: 50%;
}

.no-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto;
}

.guilds-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.guild-card {
    text-align: center;
}

.tabs {
    display: flex;
    border: 1px solid #ff00ff;
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
}

.tab {
    flex: 1;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-right: 1px solid #444;
}

.tab:last-child {
    border-right: none;
}

.tab:hover {
    background: #2a2a2a;
}

.tab.active {
    background: #3a3a3a;
    font-weight: 500;
}

.guild-name {
    text-align: center;
}

.discord-emoji {
    width: 1.375em;
    height: 1.375em;
    vertical-align: middle;
}

.role-mapping {
    margin-bottom: 2rem;
}

.role-mapping table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.role-mapping th,
.role-mapping td {
    text-align: left;
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #333;
}

.role-mapping th {
    font-weight: 500;
    color: #888;
}

.set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--card);
    border-radius: 3rem;
}

.back-button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--background)
}

.bot-list {
    display: flex;
    padding: 0.75rem 1.5rem;
}

.bot-clip {
    display: flex;
    padding: 1rem 10%;
    align-items: center;
    vertical-align: middle;
    gap: 0.5rem;
    flex-direction: column;
}

.bot-avatar-fallback {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: var(--card);
    color: var(--text);
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    justify-content: center;
}

.twitch_avatar {
    padding-left: 0.5rem;
    height: 36px;
    width: 36px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--card);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px #2197F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.switch-label {
    font-size: var(--font-size);
    color: var(--text);
}

#add_role {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--card);
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 500;
}

#add_role:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--background)
}

#login-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--card);
    color: var(--text);
    border: 1px solid var(--card);
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;

}

#login-button:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--background)
}

#login-div {
    display: flex;
    width: 600px;
    margin: 0 auto;
    justify-content: center;
}

form label {
    display:block;
    margin-bottom: 1rem;
}