@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
    --bg-colour: 32, 34, 37;
    --bg-colour-dark: 22, 23, 26;
    --bg-colour-darker: 15, 16, 18;
    --bg-colour-accent: 41, 45, 48;
    --accent-colour: 109, 42, 255;
    --accent-colour-light: 140, 96, 235;
    --text-colour: 140, 144, 149;
    --text-colour-light: 250, 250, 250;

    /* Badges */
    --owner: 255, 165, 0;
    --admin: 240, 71, 71;
    --developer: 0, 153, 225;
    --staff: 250, 168, 26;
    --bughunter: 67, 181, 129;
    --premium: 109, 42, 255;
    --linked: 114, 137, 218;
    --unlinked: 140, 144, 149;
    --banned: 249, 58, 47;

    /* Invites */
    --invite-green: 67, 181, 129;
    --invite-red: 240, 71, 71;

    /* General Colours */
    --red: 240, 71, 71;
    --green: 67, 181, 129;
    --orange: 250, 168, 26;
    --blue: 0, 153, 225;
    --grey: 140, 144, 149;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Start of our theming */
body {
    background: rgb(var(--bg-colour));
    font-family: Roboto, 'Sans Serif';
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: fit-content;
}

.section {
    width: 100%;
    padding: 3rem 7rem;
    background: rgb(var(--bg-colour-dark));
    border-radius: 1rem;
    box-shadow: -5px 5px 5px rgb(var(--bg-colour-darker));
    margin: 1rem 0;
}

.avatar > object {
    width: 250px;
    height: 250px;
    border-radius: 50%;
}

.username {
    padding: 1rem;
    font-size: 3rem;
    color: rgb(var(--text-colour-light));
    font-weight: bold;
}

.info-box {
    width: 100%;
    background-color: rgb(var(--bg-colour-darker));
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    color: rgb(var(--text-colour-light));
}

.title {
    padding-bottom: 1rem;
    font-size: 2.3rem;
    color: rgb(var(--text-colour-light));
    font-weight: bold;
}

.no-result {
    font-size: 1.3rem;
    color: rgb(var(--text-colour-light));
}

input,
button {
    all: unset;
    width: 100%;
}

.form-username {
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    text-align: left;
    color: rgb(var(--text-colour-light));
    background: rgb(var(--bg-colour-darker));
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.form-username > i {
    padding-right: 0.7rem;
}

.form-submit {
    display: block;
    width: 100%;
    background: rgb(var(--accent-colour));
    cursor: pointer;
    border-radius: 0.5rem;
    padding: 0.4rem 0;
    color: rgb(var(--text-colour-light));
}

.buttons {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
}

.discord-button {
    padding: 0.7rem;
    font-size: 1.8rem;
    background-color: #7289da;
    color: white;
    border-radius: 50%;
    box-shadow: 0 0 5px 5px rgba(var(--bg-colour-darker), 0.7);
    margin-right: 0.2rem;
}

.moles-button {
    padding: 0.7rem;
    font-size: 1.8rem;
    background-color: rgb(var(--orange));
    color: rgba(var(--bg-colour), 0.5);
    border-radius: 50%;
    box-shadow: 0 0 5px 5px rgba(var(--bg-colour-darker), 0.7);
}

/* Rank Colours And Shit */
.vip { color: #55FF55; font-weight: bold; }
.vip:before { content: "[VIP] "; }

.pro { color: #55FFFF; font-weight: bold; }
.pro:before { content: "[PRO] "; }

.legend { color: #FFAA00; font-weight: bold; }
.legend:before { content: "[LEGEND] "; }

.patron { color: #00AAAA; font-weight: bold; }
.patron:before { content: "[PATRON] "; }

/* Tooltip Popups */
.tooltip {
    position: relative;
    display: block;
    cursor: default;
}
  
.tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: fit-content;
    background-color: rgba(var(--bg-colour-darker), 0.9);
    color: rgb(var(--text-colour-light));
    text-align: center;
    border-radius: 6px;
    padding: 0.1rem 0.3rem;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    transform: translate(-50%);
    transition: visibility 0.1s linear, opacity 0.1s linear;
    font-size: 0.8rem;
}
  
.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(var(--bg-colour-darker), 0.9) transparent transparent transparent;
}
  
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transition: visibility 0.1s linear, opacity 0.1s linear;
}

.tooltip .tooltip-text:hover {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.1s linear, opacity 0.1s linear;
}