@import "https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap";

/* Overall Formatting Start */
body {
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

.dark {
    color: #FFFFFF;
    background-color: #323232;
}

.light {
    color: #212121;
    background-color: #ebebeb;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
}

.wrapper > div {
    display: flexbox;
}

a.inline {
    text-decoration: none;
    pointer-events: all;
}

.dark a.inline {
    color: rgba(191,95,255,1);
}
.light a.inline {
    color: rgb(121, 7, 197);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: all;
}
/* Overall Formatting End */

/* Navbar Themeing Start */
.navbar {
    width: 20rem;
    padding: 1rem;
    text-align: left;
    height: auto;
    box-shadow: 4px 0 16px rgb(0 0 0 / 40%);
    overflow-x: hidden;
    overflow-y: scroll;
}

.dark .navbar {
    background-color: #262626;
    color: #FFFFFF;
}

.light .navbar {
    background-color: #f8f8f8;
    color: #212121;
}

*::-webkit-scrollbar {
    visibility: hidden;
    width: 0;
}

.logo {
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.dark .logo {
    background-image: url("../../assets/logo-white.png");
}
.light .logo {
    background-image: url("../../assets/logo-black.png");
}

.navbar .logo {
    width: clamp(3.5rem, 7vw, 7rem);
    height: clamp(3.5rem, 7vw, 7rem);
    margin: 1rem 0 1rem 0
}

.navbar .logo-wrapper {
    width: 100%;
    text-align: center;
    padding: 0 0 1rem 0;
}

.navbar .title {
    font-size: clamp(1rem, 3vw, 2rem);
    font-weight: bold;
}

.subtext {
    font-size: clamp(0.5rem, 2.5vw, 0.9rem);
    font-weight: bold;
    padding: 0.5rem 0 0.5rem 0.5rem;
}

.dark .subtext {
    color: #a1a1a1;
}
.light .subtext {
    color: #1f1f1f;
}

.element {
    display: block;
    margin-left: 0.5rem;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: 100000px;
    transition: background-color 0.5s ease-in-out;
    position: relative;
    font-size: 16px;
    margin: 0.25rem;
}

.dark .element {
    color: #E6E6E6;
}
.light .element {
    color: #333333;
}

.dark .element:hover {
    background-color: rgba(255,255,255,0.1);
}
.light .element:hover {
    background-color: rgba(0,0,0,0.1);
}

.element .icon-wrapper {
    width: 2rem;
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.dark .element.current,
.dark .element.current:hover {
    background-color: rgba(191,95,255,0.4);
}
.light .element.current,
.light .element.current:hover {
    background-color: rgba(217, 160, 255, 0.4);
}
/* Navbar Theming End */

/* Main Content Start */
.main {
    width: 100%;
    padding: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

.grid {
    display: inline-grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: 0.5rem;
    min-height: 100%;
    padding-bottom: 1rem;
    margin-bottom: -76px;
    width: 90%;
}

.grid > div {
    border-radius: 1rem;
    padding: 1.5rem;
}

.dark .grid > div {
    background-color: #262626;
}
.light .grid > div {
    background-color: #f8f8f8;
}

.header {
    width: 100%;
    text-align: left;
    text-transform: uppercase;
    font-family: Quicksand,sans-serif;
    font-size: clamp(0.5rem, 2vw, 1rem);
    line-height: 1.5;
    font-weight: 600;
    pointer-events: none;
    margin-bottom: 0.25rem;
}

.dark .header {
    color: rgb(192, 97, 255);
}
.light .header {
    color: rgb(136, 15, 214);
}
/* Main Content End */

/* Content Modules Start */
.grid > div {
    box-shadow: -5px 5px 13px -6px rgb(0 0 0 / 75%);
}

.grid > div > span {
    display: block;
    text-align: left;
    font-size: clamp(0.7rem, 3vw, 1rem);
}

.terms {
    grid-row: span 5;
}

.terms > span {
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.terms > .header {
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}
/* Content Modules End */

/* Footer Start */
.footer > div {
    padding: clamp(0.5rem, 2vw, 1rem);
    border-radius: 1rem;
    font-family: Quicksand,sans-serif;
    font-size: clamp(0.5rem, 3vw, 1.2rem);
    font-weight: 600;
    pointer-events: none;
    box-shadow: -5px 5px 13px -6px rgb(0 0 0 / 75%);
}

.dark .footer > div {
    background-color: #262626;
}
.light .footer > div {
    background-color: #f8f8f8;
}

#themeChanger {
    display: inline-block;
    cursor: pointer;
    font-size: inherit;
    pointer-events: all;
}
/* Footer End */

@media screen and (max-width:1100px) {
    .grid {
        grid-template-columns: repeat(1, 1fr) !important;
        grid-template-rows: repeat(7, 1fr) !important;
        min-height: auto;
        margin-bottom: 70px
    }
    .footer {
        margin-top: 160px;
    }
}

@media screen and (max-width:610px) {
    .navbar > a {
        font-size: clamp(0.7rem, 2vw, 1.5rem);
    }
    .navbar .subtext {
        font-size: clamp(0.4rem, 2vw, 1.5rem);
    }
}