/* Main Page */
.page {
    grid-column: span 5;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    padding: 1rem;
}

/* Invites Popup */
.invites {
    visibility: hidden;
    opacity: 0;
    display: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    width: 100%;
    height: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.07);
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    color: rgb(var(--text-colour-light));
}

.invites > div {
    display: inline-block;
    width: 70%;
    max-height: 80%;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(var(--bg-colour-dark));
    border-radius: 1rem;
    box-shadow: -5px 5px 5px rgb(var(--bg-colour-darker));
}

.invites > div::-webkit-scrollbar {
    width: 0;
}

.invites > div > div {
    padding: 1rem;
}

.invites--entry {
    font-size: clamp(1rem, 2vh, 2rem);
}

.invites--entry .fa-check {
    color: rgb(var(--invite-green));
}

.invites--entry .fa-times {
    color: rgb(var(--invite-red));
}

.invites--entry > i {
    padding-right: 0.8rem;
}

.invites--title {
    color: rgb(var(--text-colour-light));
    font-size: clamp(1.3rem, 3vh, 2.5rem);
    font-weight: bold;
    padding-bottom: 1rem;
}

.invites--hide-button {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    color: rgb(var(--invite-red));
    font-size: 2rem;
    cursor: pointer;
}

/* User Profile Box */
.user-profile {
    grid-column: span 2;
    grid-row: span 5;
    background: rgb(var(--bg-colour-dark));
    text-align: center;
    border-radius: 1rem;
}

.user-profile > div {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    padding: 1rem;
}

.user-profile--avatar {
    display: block;
    text-align: center;
    width: 100%;
}

.user-profile--avatar > object,
.user-profile--avatar > object > img {
    border-radius: 50%;
    display: inline-block;
    width: clamp(8rem, 23vh, 20rem);
    height: clamp(8rem, 23vh, 20rem);
}

.user-profile--username {
    padding-top: 1rem;
    font-weight: bold;
    font-size: 2.5rem;
    color: rgba(var(--text-colour-light));
    position: relative;
}

.user-profile--badges {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-basis: 100%;
    width: 100%;
    color: rgba(var(--text-colour-light));
    padding-top: 0.5rem;
    font-size: 0.8rem;
    align-items: center;
    justify-content: center;
}

.user-profile--badges > div {
    margin: 0.2rem;
    padding: 0.3rem 0.55rem;
    border-radius: 100rem;
    white-space: nowrap;
}

.user-profile--badges > div > i {
    padding-right: 0.3rem;
}

.user-profile--bio {
    padding: 1.5rem 1rem 1rem 1rem;
    width: 100%;
    color: rgba(var(--text-colour));
}

.user-profile--bio > span {
    position: relative;
    left: 50%;
    transform: translate(-50%);
    display: block;
    padding: 0.5rem;
    border: 0.15rem solid rgb(var(--bg-colour-darker));
    background: rgb(var(--bg-colour));
    border-radius: 1rem;
    min-height: 5rem;
    width: min(30rem, 90%);
    height: fit-content;
}

.dark-line {
    height: 0.1rem;
    margin: 0 2rem;
    background: rgb(var(--bg-colour-darker));
}

.user-profile--privacy-box {
    margin-top: 0.5rem;
    color: rgba(var(--text-colour-light));
    border: 0.15rem solid rgb(var(--bg-colour-darker));
    background: rgb(var(--bg-colour));
    border-radius: 1rem;
    min-height: 3rem;
    width: min(30rem, 90%);
    height: fit-content;
    position: relative;
    left: 50%;
    transform: translate(-50%);
}

.user-profile--privacy-box > span {
    filter: blur(0.3rem);
    transition: filter 0.3s;
    display: block;
    font-size: clamp(0.65rem, 1.7vh, 2rem);
    line-height: 3rem;
}

.user-profile--privacy-box > span:hover {
    filter: none;
    transition: filter 0.3s;
}

.user-profile--upload-key {
    margin-bottom: 1rem;
}

.user-profile--label {
    padding-top: 1rem;
    font-size: 1.5rem;
    color: rgb(var(--text-colour-light));
}

.user-profile--info-wrapper {
    padding: 1rem;
}

.user-profile--info {
    color: rgb(var(--text-colour-light));
    font-size: clamp(1rem, 2vh, 2rem);
    padding: 0.15rem;
}
.user-profile--info > span {
    color: rgb(var(--text-colour));
}

.user-profile--info > a {
    color: rgb(var(--accent-colour));
    font-weight: bold;
    text-decoration: none;
}

/* Badge Colours */
.user-profile--badges .admin {
    background: rgb(var(--admin));
}

.user-profile--badges .staff {
    background: rgb(var(--staff));
}

.user-profile--badges .premium {
    background: rgb(var(--premium));
}

.user-profile--badges .linked {
    background: rgb(var(--linked));
}

.user-profile--badges .unlinked {
    background: rgb(var(--unlinked));
}

.user-profile--badges .bughunter {
    background: rgb(var(--bughunter));
}

.user-profile--badges .developer {
    background: rgb(var(--developer));
}

.user-profile--badges .banned {
    background: rgb(var(--banned));
}

/* User Info */
.user-info {
    background: rgb(var(--bg-colour-dark));
    border-radius: 1rem;
    color: rgb(var(--text-colour-light));
    grid-column: span 2;
    text-align: center;
}

.user-info > div {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    padding: 1rem;
}

.user-info--label {
    font-size: clamp(1.3rem, 3vh, 2.5rem);
    font-weight: bold;
}

.user-info--uploads {
    font-size: clamp(1rem, 2vh, 2rem);
}

.user-info--uploads > span {
    color: rgb(var(--text-colour));
}

.user-info--storage {
    font-size: clamp(1rem, 2vh, 2rem);
}

.user-info--storage > span {
    color: rgb(var(--text-colour));
}

.user-info--storage .percentage {
    color: rgb(var(--accent-colour));
}

.user-info--button {
    padding: 1rem;
}

.user-info--button > a {
    color: rgb(var(--text-colour-light));
}

.user-info--button > a {
    background: rgb(var(--accent-colour));
    padding: 0.5rem 1.5rem;
    display: inline-block;
    border-radius: 1rem;
    cursor: pointer;
}

/* Discord Info */
.discord-info {
    background: rgb(var(--bg-colour-dark));
    border-radius: 1rem;
    color: rgb(var(--text-colour-light));
    grid-column: span 2;
    grid-row: span 2;
    text-align: center;
}

.discord-info > div {
    position: relative;
    top: 50%;
    transform: translate(0, -50%);
    padding: 1rem;
}

.discord-info--label {
    font-size: clamp(1.3rem, 3vh, 2.5rem);
    font-weight: bold;
}

.discord-info--profile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
}

.discord-info--avatar > img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
}

.discord-info--username {
    padding-left: 1rem;
    font-size: clamp(1rem, 2vh, 2rem);
}

.discord-info--discriminator {
    color: rgb(var(--text-colour));
}

.discord-info--button {
    padding: 1rem;
}

.discord-info--button > a {
    background: rgb(var(--accent-colour));
    padding: 0.5rem 1.5rem;
    display: inline-block;
    border-radius: 1rem;
    cursor: pointer;
    color: rgb(var(--text-colour-light));
    text-decoration: none;
}

.discord-info--badges {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-basis: 100%;
}

.discord-info--badges > div {
    margin-right: 6px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50%;
    width: 24px;
    height: 24px
}

.staff-badge {
    background-image: url("../assets/images/staff.svg");
}

.partner-badge {
    background-image: url("../assets/images/partner.svg");
}

.hypesquad-badge {
    background-image: url("../assets/images/hypesquad.svg");
}

.bug-hunter-2-badge {
    background-image: url("../assets/images/bugHunter2.svg");
}

.bug-hunter-1-badge {
    background-image: url("../assets/images/bugHunter1.svg");
}

.developer-badge {
    background-image: url("../assets/images/developer.svg");
}

.early-supporter-badge {
    width: 28px;
    background-image: url("../assets/images/earlySupporter.svg");
}

.nitro-badge {
    width: 28px;
    background-image: url("../assets/images/nitro.svg");
}

.bravery-badge {
    background-image: url("../assets/images/bravery.svg");
}

.brilliance-badge {
    background-image: url("../assets/images/brilliance.svg");
}

.balance-badge {
    background-image: url("../assets/images/balance.svg");
}

/* Smaller Screens */
@media screen and (max-width: 1210px) {
    .main-grid {
        padding-left: 4rem;
    }
    .page {
        grid-column: span 6;
    }
}

/* Even Smaller Screens */
@media screen and (max-width: 930px) {
    .page {
        grid-template-columns: repeat(1, 1fr) !important;
        grid-template-rows: repeat(6, 1fr) !important;
    }
    .announcements,
    .changelogs {
        grid-column: span 2;
        grid-row: span 2;
    }
}