@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
    margin: 0;
}

html {
    height: 100svh;
}

body {
    background-color: rgb(74, 60, 96);
    overflow-x: hidden;
    position: relative;
    height: 100%;
}

a {
    cursor:pointer;
}

p {
    text-decoration: none;
    color: white;
    display: flex;
    margin-top: 0;
    margin-bottom: 0;
    font-family: "Jost", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 3.25rem;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

input {
    font-family: "Jost", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    border-radius: 1rem;
    font-size: 2rem;
    border-style: solid;
    background-color: rgb(213, 213, 213);
}

.CopyableText {
    text-decoration: underline;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    cursor: pointer;
}

.TileBackground {
    position: fixed;
    rotate: -15deg;
    z-index: -1;
    left: -15rem;
    right: -15rem;
    top: -15rem;
    bottom: -15rem;
    filter: blur(.25rem);
}

.IconGrid {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 1rem;
}

.RightAlign {
    width: fit-content;
    display: flex;
    margin-left: auto;
    margin-right: 0rem;
}

.BottomAlign {
    height: fit-content;
    display: block;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0rem;
}

.Button {
    max-width: 100%;
    display: flex;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 1rem;
    background-color: rgb(164, 141, 178);
    font-family: "Jost", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 3rem;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: .5rem;
    margin-right: .5rem;
    text-decoration: none;
    color: rgb(36, 29, 40);
    transition-duration: 250ms;
}

.FancyButton {
    display: flex;
    border-radius: 1rem;
    background-color: rgba(173, 173, 173, 0.7);
    backdrop-filter: blur(1rem);
    font-family: "Jost", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 3rem;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 1rem;
    margin-left: .5rem;
    margin-right: .5rem;
    text-decoration: none;
    color: rgb(36, 29, 40);
    transition-duration: 250ms;
}

.Danger {
    margin-top: 1rem;
    background-color: rgb(225, 54, 11);
}

.Important {
    margin-top: 1rem;
    background: linear-gradient(to top right, rgb(244, 137, 75), rgb(223, 91, 51));
}

.Button:hover {
    scale: 1.025;
    transition-duration: 250ms;
}

.FancyButton:hover {
    scale: 1.025;
    background-color: rgba(220, 220, 220, 0.7);
    transition-duration: 250ms;
}

/* navbar stuff */

.TopNav {
    margin: 1rem;
    background: linear-gradient(to right, rgb(113, 95, 132), rgb(81, 61, 98));
    box-shadow: 0 1rem 4rem black;
    height: 4.5rem;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    border-bottom-style: solid;
    border-bottom-width: .2rem;
    border-bottom-color: rgb(174, 151, 187);
    padding: .5rem .5rem .5rem .5rem;
    display: flex;
    margin-bottom: 2rem;
}

.TopNav .ImageButton {
    display: flex;
    border-radius: 1rem;
    height: 4.5rem;
    width: 4.5rem;
    background-color: rgba(164, 141, 178, 0);
    margin-right: 1rem;
    transition-duration: 250ms;
}

.TopNav .ImageButton:hover {
    background-color: rgba(164, 141, 178, .5);
    transition-duration: 250ms;
}

.TopNav .Button {
    width: fit-content;
    height: 4.5rem;
}

.TopNav p {
    height: 4.5rem;
    text-decoration: none;
    color: white;
    margin-top: 0;
    margin-bottom: 0;
    font-family: "Jost", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-size: 3.25rem;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.VerticalSpacer {
    height: 4.5rem;
    width: .2rem;
    background-color: rgb(164, 141, 178);
}

.HorizontalSpacer {
    height: .5rem;
    border-radius: .5rem;
    background-color: rgb(11, 11, 11);
    margin-bottom: 1.25rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.PFP {
    margin: .2rem .2rem .2rem .2rem;
    border-radius: 1rem;
}

.ProfileButton {
    padding-right: 0rem;
    padding-left: 0rem;
}

.ProfileButton p {
    color: rgb(36, 29, 40);
}

.InAppTitle {
    display: flex;
    background: linear-gradient(to right, rgb(113, 95, 132), rgb(81, 61, 98));
    border-radius: 1rem;
    padding: .5rem;
    margin-bottom: 1rem;
}

.InAppTitle p {
    margin-top: auto;
    margin-bottom: auto;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: nowrap;
}

.InAppTitle .ImageButton {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    border-radius: 1rem;
    height: 4.5rem;
    width: 4.5rem;
    min-width: 4.5rem;
    background-color: rgba(164, 141, 178, 0);
    margin-right: 1rem;
    transition-duration: 250ms;
}

.InAppTitle .ImageButton:hover {
    background-color: rgba(164, 141, 178, .5);
    transition-duration: 250ms;
}

/* announcement stuff */

.AnnouncementBanner {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 2rem;
    display: flex;
    padding: 1rem 1rem 1rem 1rem;
}

.AnnouncementBanner img {
    height: 7rem;
    border-radius: 1rem;
    margin-top: auto;
    margin-bottom: auto;
}

.AnnouncementBanner p {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-weight: 500;
}

/* panel stuff */

.Panel {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2.5rem;
    display: block;
    padding: 1rem 1rem 1rem 1rem;
    margin: auto 2rem;
}

.Panel p {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-weight: 500;
}

.Panel .Button {
    border-radius: 1.5rem;
    margin-bottom: .5rem;
}

.FancyButton .RoomImage {
    max-height: 3rem;
    margin: auto;
    margin-right: 0;
}

/* home stuff */

.HomeButton {
    margin: 1rem 1rem 1rem 1rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.5rem;
    width: 7.5rem;
    height: 7.5rem;
    display: flex;
    background-color: rgba(0, 255, 255, 0.285);
    box-shadow: 0 0 5rem rgb(0, 37, 37);
    transition-duration: 250ms;
    position: relative;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}

.HomeButton:hover {
    scale: 1.05;
    transition-duration: 250ms;
}

.HomeButton img {
    border-radius: 1.5rem;
    display: flex;
    margin: 1rem 1rem 1rem 1rem;
}

.HomeLabel {
    font-weight: 500;
    border-radius: 1rem;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
    position: absolute;
    bottom: -2rem;
    font-size: 1.25rem;
    text-align: center;
    display: block;
    right: 0;
    left: 0;
    text-shadow: 0 0 .5rem black;
    backdrop-filter: blur(1rem);
    background: #ffffff1c;
    padding: 0;
}

/* login stuff */

.LoginPanel {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 2rem;
    backdrop-filter: blur(1rem);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-shadow: 0 1rem 2rem black;
}

.LoginPanel p {
    display: block;
    text-align: center;
}

.LoginPanel input {
    border-radius: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(213, 213, 213, .6);
    border-color: rgba(213, 213, 213, .3);
    border-width: .2rem;
}

.InfoLabel {
    background-color: rgba(255, 221, 0, 0.6);
    border-radius: 1rem;
    display: flex;
    padding: .25rem .25rem .25rem .25rem;
    margin-right: 2rem;
    margin-left: 2rem;
}

.InfoLabel img {
    height: 3rem;
    border-radius: .5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.InfoLabel p {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-weight: 300;
    font-size: 2rem;
    height: 3rem;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
}

/* side panel stuff */

.TwoPanel {
    display: flex;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    position: absolute;
    top: 8.5rem;
    bottom: 0;
    right: 0;
    left: 0;
    height: auto;
    width: auto;
}

.ContentPanel {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 1.5rem;
    display: block;
    width: 70%;
    padding: 1rem 1rem 1rem 1rem;
    overflow-y: auto;
}

.ContentPanel img { 
    max-width: 100%;
    border-radius: 1rem;
}

.ContentPanel .FeedImageLoading {
    width: 100%;
}


.SidePanel {
    margin-right: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 30%;
    padding: 1rem 1rem 1rem 1rem;
    overflow-y: scroll;
}

.PanelButton {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 1rem;
    margin: .5rem .5rem .5rem .5rem;
    display: flex;
    padding: .25rem .25rem .25rem .25rem;
    transition-duration: 250ms;
}

.PanelButton:hover {
    background-color: rgba(21, 21, 21, 0.6);
    padding: .4rem .4rem .4rem .4rem;
    margin: .35rem .35rem .35rem .35rem;
    transition-duration: 250ms;
}

.PanelButton img {
    height: 3rem;
    border-radius: .5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.PanelButton p {
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    font-weight: 300;
    font-size: 2rem;
    height: 3rem;
}

/* popup stuff */

.PopupPanel {
    position: fixed;
    display: flex;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.Popup {
    padding: 1rem 1rem 1rem 1rem;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 1rem 2rem black;
    width: 75rem;
    max-width: 100%;
    min-height: 20rem;
    max-height: 100%;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(44, 38, 56);
    flex-direction: column;
}

.Popup p {
    display: block;
    text-align: center;
}

.PopupText {
    background-color: rgb(31, 26, 42);
    border-radius: 1.5rem;
    margin-top: auto;
    margin-bottom: auto;
    font-size: 2rem;
    font-weight: 400;
    padding: 1rem 1rem 1rem 1rem;
}

.PopupButtons {
    flex-direction: row;
    display: flex;
    margin-left: 0rem;
    margin-right: 0rem;
}

.Popup a {
    width: 100%;
    margin-left: .5rem;
    margin-right: .5rem;
    margin-top: .5rem;
    display: flex;
    margin-bottom: .5rem;
}

.ErrorMessage {
    color: rgb(238, 39, 39);
    font-size: 1.5rem;
}

.FeedImage img {
    display: flex;
    height:  60svh;
    border-radius: 1rem;
}

.FeedImage {
    margin: auto;
    display: flex;
    padding: 1rem;
    background: #75668c;
    border-radius: 1.75rem;
    border-width: .5rem;
    border-style: solid;
    border-color: #a89bbb;
    flex-direction: column;
    gap: .5rem;
}
.FeedContainer {
    margin: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.FeedImageLoading {
    display: flex;
    height:  60svh;
    border-radius: 1rem;
    width: 60svw;
    max-width: 90svw;
    background: linear-gradient(to right, transparent 0% 10%, rgba(255, 255, 255, 0.356) 60% 80%, transparent 90% 100%);
    animation-name: ImageLoading;
    animation-duration: 1000ms;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    background-size: 90svw 90svw;
}

.ImageControls {
    display: flex;
}

.ImageControls .PFP {
    width: 5rem;
    height: 5rem;
    margin: auto;
    margin-left: 0;
    margin-right: 0;
}

.ImageControls p {
    margin: auto;
    margin-left: 0;
}

@keyframes ImageLoading {
    0% {
        background-position: 0svw 0svw;
    }
    100% {
        background-position: 90svw 90svw;
    }
}

.ControlButton {
    width: fit-content;
}

.ControlButton img {
    height: 4rem;
    width: 4rem;
    margin: auto 0;
}

.Switch {
    height: 6rem;
    width: 15rem;
    background: #0b0b0b;
    border-radius: 1.5rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;

    animation-name: SwitchDefault;
    animation-duration: 250ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.SwitchValue {
    height: 6rem;
    width: 5rem;
    background-color: white;
    background: linear-gradient(to top right, #919191, white);
    border-radius: 1rem;
    margin-left: 0;
    position: relative;
    transition-duration: 250ms;
}

.SwitchOn .SwitchValue {
    transition-duration: 250ms;
    margin-left: 10rem;
}

.SwitchVisual {
    position: absolute;
    left: 0;
    right: 18rem;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right, #683f3f 0% 50%, transparent 90% 100%);
    transition-duration: 250ms;
}

.SwitchOn .SwitchVisual {
    right: 0rem;
    transition-duration: 250ms;
}

.SwitchOn {
    animation-name: Clicked;
    animation-duration: 250ms;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

@keyframes Clicked {
    0% {
        scale: 1;
        transform: translateX(0rem);
    }
    50% {
        scale: .95;
        transform: translateX(1rem);
    }
    100% {
        scale: 1;
        transform: translateX(0rem);
    }
}

@keyframes SwitchDefault {
    0% {
        scale: 1;
        transform: translateX(0rem);
    }
    50% {
        scale: .95;
        transform: translateX(-1rem);
    }
    100% {
        scale: 1;
        transform: translateX(0rem);
    }
}

.SettingPanel {
    background: #00000030;
    border-radius: 1.5rem;
}

.ViewContainer {
    display: flex;
    background: #00000040;
    margin: 1rem;
    border-radius: 1.5rem;
    padding: 1rem;
}

.ViewContainer .PFP {
    width: 15rem;
    height: 15rem;
}

.Username {
    font-size: 1.75rem;
}

.ProfileContent {
    width: 100%;
}

.SearchButton {
    padding: 0.5rem;
    width: 4rem;
    height: auto;
}

.TopNav .SearchButton {
    width: 4rem;
    height: auto;
}

.SearchButton img {
    width: auto;
    height: 100%;
    margin: auto;
}

.ProfileButton {
    height: 4.5rem;
}

.ViewContainer .RoomImage {
    width: auto;
    height: 15rem;
    border-radius: 1rem;
}

.DescriptionText {
    font-size: 1.5rem;
    margin: 1rem;
    background: #00000078;
    padding: 1rem;
    border-radius: 1rem;
}

.RecNetPhotoInfo {
    display: flex;
    gap: .5rem;
}

.RecNetPhotoInfo p {
    font-size: 1.5rem;
    width: fit-content;
    background: #00000042;
    border-radius: .75rem;
}

@media only screen and (max-width: 75rem) {
    .FeedImage {
        width: auto;
        margin: 0rem;
    }
    .FeedImage img {
        display: flex;
        height: auto;
        border-radius: 1rem;
        width: auto;
    }
    .FeedImageLoading {
        height: 15rem;
        width: 100%;
    }
    .FeedImage p {
        text-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        font-size: 1.5rem;
    }
    .ControlButton img {
        height: 3rem;
        width: 3rem;
        margin: .5rem auto;
    }

    .IconGrid {
        overflow-x: auto;
        padding: 1rem;
        padding-bottom: 2rem;
        padding-top: 0rem;
        width: auto;
    }

    .TopNav .Button {
        display: none;
    }
    .TopNav p {
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    a p {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media only screen and (max-width: 50rem)
{
    .AnnouncementBanner {
        flex-direction: column;
    }

    .AnnouncementBanner img {
        height: auto;
        width: 7.5rem;
        margin: auto;
    }

    .AnnouncementBanner p {
        font-size: 2rem;
    }

    .ViewContainer {
        flex-direction: column;
        gap: .5rem;
    }

    .TwoPanel {
        flex-direction: column;
        gap: .5rem;
    }

    .TwoPanel div {
        width: auto;
        margin: auto;
    }
    .TwoPanel .SidePanel {
        min-height: 30%;
    }
    .TwoPanel .ContentPanel {
        width: 90%;
    }
    .LoginPanel {
        width: auto;
        margin: 1rem;
    }
}