[data-theme="light"] {
    --color-bg: #ffffff;
    --color-fg: #282829;
    --color-accent1: #d362a8;
    --color-accent2: #FF9762;
    --color-accent3: #18BA5C;
    --color-accent4: #5D89C8;
    --color-button: #dce2ee;
    --color-text: #000000;
    --color-minitext: #d8dfe7;
    --colour-highlight: #79a8eb;
    --colour-darkshadow: #18397b
}

[data-theme="dark"] {
    --color-bg: #0e0e0e;
    --color-fg: #282829;
    --color-accent1: #d362a8;
    --color-accent2: #FF9762;
    --color-accent3: #18BA5C;
    --color-accent4: #5D89C8;
    --color-button: #2f3134;
    --color-text: #f1f1f1;
    --color-minitext: #8a8f95;
    --colour-highlight: #79a8eb;
    --colour-darkshadow: #ffa930;
}

html {
    scroll-behavior: smooth !important;
}

body {
    margin: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
}

@media screen and (max-width: 700px) {}

iframe {
    border: none;
    width: 100%;
    height: 90vh;
}

@media screen and (max-width: 500px) {
    iframe {
        border: none;
        width: 100%;
        height: 82vh;
    }
}

.donate {
    height: 110vh;
}

.header {
    display: block;
    background-color: var(--color-fg);
    text-align: center;
    width: 100%;
    z-index: 1000000;
}

h3 {
    font-size: x-large;
    margin-bottom: 0px;
}

.title {
    display: grid;
    grid-template-columns: 9% 90%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 7px;
    z-index: 1000000;
}

.title img {
    width: 100%;
    max-height: 100px;
}

.logo {
    width: 87%;
    height: 87%;
    margin: auto;
    margin-right: 0px;
    margin-bottom: 0px;
}

.logo img {
    border-radius: 100%;
}

.nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    padding: 7px;
    padding-top: 0px;
    gap: 5%;
    width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.navcontainer {
    display: block;
    position: sticky;
    top: 0;
    background-color: var(--color-fg);
    text-align: center;
    width: 100%;
    height: 27px;
    z-index: 1;
}

@media screen and (max-width: 725px) {
    .nav {
        width: 95%;
        gap: 7%;
        overflow-x: scroll;
    }

    .title img {
        width: 97%;
    }
}

a {
    font-weight: bold;
    color: var(--color-text);
    display: inline;
    text-decoration: none;
    background-image: linear-gradient(transparent, transparent), linear-gradient(transparent, transparent), linear-gradient(135deg, var(--color-accent3), var(--color-accent4));
    background-repeat: no-repeat;
    background-position: 120%, 122%, 0 130%;
    background-size: 100% 7px;
    transition: color 150ms, transform 100ms, background-size 250ms;
}

.nav a {
    color: rgb(207, 219, 221);
    background-image: linear-gradient(transparent, transparent), linear-gradient(transparent, transparent), linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
    background-size: 0% 7px;
}

.nav a:hover {
    transform: scale(1.1);
    color: whitesmoke;
    background-size: 100% 7px;
}

a:hover {
    transform: scale(1.1);
    background-size: 100% 7px;
}

.selected {
    color: whitesmoke !important;
    background-size: 100% 7px !important;
}

@keyframes slidein {
    0% {
        color: rgba(245, 245, 245, 0);
        left: 50%;
        width: 800px;
    }

    100% {
        color: whitesmoke;
        text-shadow: 0px 0px 20px #00000061;
        left: 0px;
        width: 400px;
    }
}

.quicklinks {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0ch, 1fr));
    ;
    padding: 7px;
    padding-top: 0px;
    gap: 15px;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    animation-name: slidein;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.45, 1.3, .63, .97);
}

.quicklinks a {
    color: rgb(207, 219, 221);
    background-size: 0% 7px;
}

.quicklinks a:hover {
    transform: scale(1.1);
    color: whitesmoke;
    background-size: 100% 7px;
}

.linkcontainer {
    display: block;
    background-color: var(--color-fg);
    position: sticky;
    top: 27px;
    z-index: 999;
    overflow: visible;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.156);
}

.linkshowcase {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-Rows: 1fr 1fr;
    font-size: large;
    max-width: 1300px;
    margin: auto;
}
@media screen and (max-width: 800px) {
    .linkshowcase {
    grid-template-columns: 1fr 1fr;
    grid-template-Rows: 1fr 1fr 1fr;
}
}
@media screen and (max-width: 550px) {
    .linkshowcase {
    grid-template-columns: 1fr;
    grid-template-Rows: 1fr 1fr 1fr 1fr 1fr 1fr;
}
}
.divider {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-image: linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
}

.divider2 {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background-image: linear-gradient(135deg, var(--color-accent3), var(--color-accent4));
}

.tags {
    display: inline-block;
}

.tag {
    display: inline-block;
    width: fit-content;
    background-color: var(--color-button);
    padding: 5px;
    border-style: solid;
    border-color: var(--color-accent1);
    border-radius: 10px;
}

.inline {
    display: inline-block;
}

.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px;
    background-color: var(--color-fg);
    color: whitesmoke;
    text-align: center;
}

.footer a {
    color: whitesmoke;
}

@media screen and (max-width: 700px) {
    .footer {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }
}

/*general*/
@keyframes fadein {
    0% {
        color: rgba(245, 245, 245, 0);
        text-shadow: 0px 0px 20px #00000000;
        top: 0px;
    }

    100% {
        color: whitesmoke;
        text-shadow: 0px 0px 20px #00000061;
        top: 50%;
    }
}

@keyframes zoomin {
    0% {
        object-position: 50% 20%;
        scale: 110%;
    }

    100% {
        object-position: 0% 27%;
        scale: 100%;
    }
}

.backimage {
    position: relative;
    text-align: center;
    color: var(--color-text);
}

.backimage img {
    object-fit: cover;
    object-position: 0% 27%;
    height: 350px;
    width: 100%;
    z-index: 10;
    animation-name: ;
    animation-duration: .8s;
    animation-timing-function: cubic-bezier(.45, 1.3, .63, .97);
}

.textcentre {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 4vw;
    font-weight: bold;
    color: whitesmoke;
    text-shadow: 0px 0px 20px #00000061;
    animation-name: fadein;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.45, 1.3, .63, .97);
}

.textoverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    color: whitesmoke;
    text-shadow: 0px 0px 20px #00000061;
}

.backimage {
    position: relative;
    text-align: center;
    color: var(--color-text);
}

.minibackimage {
    height: 150px;
}

.minibackimage img {
    object-fit: cover;
    object-position: 0% 40%;
    height: 150px;
    width: 100%;
    background-color: var(--color-fg);
    padding-bottom: 0px;
}

@media screen and (max-width: 700px) {
    .backimage img {
        height: 200px;
    }

    .textcentre {
        font-size: 4vw;
    }
}

.content {
    display: block;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
}

.content h2 {
    font-size: 30px;
}

.content p {
    font-size: larger;
}

.middle {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.time {
    display: inline-block;
    float: inline-end;
    width: fit-content;
    text-align: middle;
}

/*darkmode*/
.dark {
    display: block;
    position: fixed;
    padding: 0;
    bottom: 25px;
    right: 25px;
    width: auto;
    height: auto;
    z-index: 999;
}

.dark button {
    display: block;
    width: auto;
    height: auto;
    background: none;
    border: none;
    transition: all 150ms;
}

.dark button img {
    width: 45px;
    height: 45px;
    -webkit-filter: drop-shadow(0px 0px 15px var(--colour-darkshadow));
    filter: drop-shadow(0px 0px 15px var(--colour-darkshadow));
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.dark button:hover {
    transform: scale(1.3);
}

@media screen and (max-width: 600px) {
    .quicklinks {
        width: 95%;
        overflow-x: scroll;
    }
}

.group {
    display: block;
    padding: 20px;
    border-radius: 15px;
    border-style: solid;
    border-color: var(--color-minitext);
}

.statgroup {
    display: block;
    padding: 20px;
    border-radius: 15px;
    border-style: solid;
    border-color: var(--color-minitext);
}

@media screen and (max-width: 925px) {
    .group {
        padding: 15px;
    }

    .statgroup {
        padding: 5px;
        overflow-x: scroll;
    }
}

.info {
    display: grid;
    grid-template-columns: 47% 47%;
    gap: 6%;
}
.info2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0ch, 1fr));
}

.homeinfo {
    display: grid;
    grid-template-columns: 47% 47%;
    gap: 6%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    font-size: large;
}

@media screen and (max-width: 700px) {
    .homeinfo {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

.infol {
    display: grid;
    grid-template-columns: 35% 60%;
    gap: 5%;
}

.infor {
    display: grid;
    grid-template-columns: 60% 35%;
    gap: 5%;
}

.imgl {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.156);
}

.imgr {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.156);
}

.partner {
    display: grid;
    grid-template-columns: 20% 80%;
}

.partner img {
    border-radius: 50%;
    margin-top: auto;
}

@media screen and (max-width: 700px) {
    .info {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .info2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(auto-fit, minmax(0ch, 1fr));
    }

    .infol {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 5%;
    }

    .infor {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 5%;
    }
}

@media screen and (max-width: 860px) {
    .partner {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
}

.imglink {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0ch, 1fr));
    gap: 5px;
    width: 100%;
}

.bigimglink {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    width: 100%;
}

.imglink a {
    all: unset;
    display: block;
    width: 50px;
    transition: all 100ms;
}

.imglink a:hover {
    transform: scale(1.1);
}

/*stats*/
.statlist {
    display: grid;
    background-color: var(--color-minitext);
    padding: 2px;
    border-radius: 3px;
    gap: 2px;
    width: 400px;
    grid-template-columns: 13% 50% 36%;
    grid-template-rows: repeat(auto-fit, minmax(0ch, 1fr));
}

.fullstatlist {
    display: grid;
    background-color: var(--color-minitext);
    padding: 2px;
    border-radius: 3px;
    gap: 2px;
    width: 800px;
    grid-template-columns: 7% 23.7% 17% 17% 17% 17%;
    grid-template-rows: repeat(auto-fit, minmax(0ch, 1fr));
}

.modstatlist {
    display: grid;
    background-color: var(--color-minitext);
    padding: 2px;
    border-radius: 3px;
    gap: 2px;
    width: 600px;
    grid-template-columns: 10% 28.7% 20% 20% 20%;
    grid-template-rows: repeat(auto-fit, minmax(0ch, 1fr));
}

.hytalestatlist {
    display: grid;
    background-color: var(--color-minitext);
    padding: 2px;
    border-radius: 3px;
    gap: 2px;
    width: 400px;
    grid-template-columns: 13% 50% 36%;
    grid-template-rows: repeat(auto-fit, minmax(0ch, 1fr));
}

.fullhytalestatlist {
    display: grid;
    background-color: var(--color-minitext);
    padding: 2px;
    border-radius: 3px;
    gap: 2px;
    width: 800px;
    grid-template-columns: 7% 23.7% 22.5% 23% 23%;
    grid-template-rows: repeat(auto-fit, minmax(0ch, 1fr));
}

.stat {
    display: block;
    background-color: var(--color-bg);
    border-radius: 2px;
    padding: 3px;
}

.statlist div img {
    height: 15px;
}

.modstatlist div img {
    height: 15px;
}

.fullstatlist div img {
    height: 15px;
}

/*alerts*/
.alert {
    display: block;
    color: whitesmoke;
    background-color: #18BA5C;
    border-radius: 50px;
    padding: 7px;
    border-style: solid;
    border-color: #128642;
    text-align: center;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.error {
    display: block;
    color: whitesmoke;
    background-color: #ca1e4f;
    border-radius: 50px;
    padding: 7px;
    border-style: solid;
    border-color: #710d30;
    text-align: center;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.confirm {
    display: block;
    color: var(--color-text);
    background-color: var(--color-bg);
    border-radius: 10px;
    padding: 7px;
    border-style: solid;
    border-color: var(--color-accent4);
    text-align: center;
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/*image gallery*/
.gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.gallery img {
    width: 95%;
    padding: 2%;
    border-radius: 10px;
    transition: all 100ms;
}

.right {
    display: block;
    width: 60%;
    margin-left: auto;
}

.gallery .right img {
    width: 100%;
}

.gallery img:hover {
    transform: scale(1.1);
}

/*embla*/
.embla {
    --slide-height: auto;
    --slide-spacing: 10px;
    --slide-size: 70%;
}

.embla__viewport {
    overflow: hidden;
}

.embla__container {
    display: flex;
    touch-action: pan-y pinch-zoom;
    margin-left: calc(var(--slide-spacing) * -1);
    /* Renders -10px */
}

.embla__slide {
    flex: 0 0 var(--slide-size);
    min-width: 0;
    padding-left: var(--slide-spacing);
}

.embla__slide__img {
    display: block;
    height: var(--slide-height);
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.embla__dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    border-width: 3px;
    border-style: solid;
    background-color: var(--color-button);
    opacity: 0.5;
}

@media screen and (max-width: 700px) {
    .embla__dot {
        max-width: 5px;
        height: 10px;
        border-width: 1px;
    }
}

.embla__dot--selected {
    opacity: 1;
}

.embla__prev {
    position: relative;

    left: 0px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border-width: 3px;
    border-style: solid;
    background-color: var(--color-button);
    color: var(--color-text);
    font-weight: bolder;
    margin-right: auto;
}

.embla__next {
    position: relative;
    right: 0px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border-width: 3px;
    border-style: solid;
    background-color: var(--color-button);
    color: var(--color-text);
    font-weight: bolder;
    margin-right: auto;
}

.imgnav {
    display: grid;
    grid-template-columns: 30% 70%;
    padding-left: 20px;
    padding-right: 20px;
}

.imgnavformat {
    margin-left: auto;
}