@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    --text-primary: #e4f3f3;
    --text-secondary: #a1d8d8;
    --background-primary: #264a4c;
    --background-secondary: #4b838a;
    --background-accent: #60a1a0;
    --background-faded: #44676c;
}

body {
    background: var(--background-primary);
    margin: 0;
    font-family: Barlow, sans-serif;
    color: var(--text-primary);
}

#bg-canvas, #bg-canvas-secondary {
    width: 100%;
    left: 0;
    top: 0;
    position: absolute;
    image-rendering: pixelated;
    z-index: -1;
}

.general-hyperlink {
    color: #45ffda;
}

.main-title-spacer {
    height: 60vh;
}

.separator {
    background: linear-gradient(#264a4c00, #264a4cff 60%);
    height: 40vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 10vh;
    animation: down-arrow 2s infinite;
}

@keyframes down-arrow {
    0% {
        color: var(--text-secondary);
    }
    20% {
        color: var(--text-secondary);
    }
    60% {
        color: var(--text-primary);
    }
    80% {
        color: var(--text-secondary);
    }
    100% {
        color: var(--text-secondary);
    }
}

.main-content {
    align-content: center;
    text-align: center;
    padding-right: 8vw;
    padding-left: 8vw;
}

#auth-error, #ship-error, #order-submitted {
    position: absolute;
    top: 10px;
    right: 10px;
    background: darkred;
    color: whitesmoke;
    padding: 5px;
    border-color: #440000;
    border-width: 2px;
    border-style: solid;
    border-radius: 10px;
    visibility: hidden;
}

#order-submitted {
    background: var(--background-accent);
    border-color: var(--background-faded);
}

#dashboard-button {
    color: var(--text-primary);
    background-color: var(--background-accent);
    text-align: center;
    font-size: 24px;
    text-decoration: none;
    border: 2px solid var(--background-secondary);
    padding: 8px;
    border-radius: 10px;
    transition: color 0.3s, background-color 0.3s;
}

#row-holder {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    height: 80px;
}

#bigger-description {
    font-size: 28px;
    text-align: center;

    border-left: 10px double var(--background-accent);
    border-right: 10px double var(--background-accent);
    padding-left: 10px;
    padding-right: 10px;
}

.ysws-holder {
    display: flex;
    justify-content: center;
    align-items: start;
}

.example-text {
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 0;
}

#dashboard-button:hover {
    color: var(--text-primary);
    background-color: var(--background-primary);
}

.greeter-text {
    color: var(--text-primary);
}

#you-ship {
    animation-name: slide-to-right-frames;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    text-align: left;
}

#we-ship {
    animation-name: slide-to-left-frames;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    text-align: right;
}

@keyframes slide-to-right-frames {
    0% {
        clip-path: xywh(0 0 0% 100%);
    }
    10% {
        clip-path: xywh(0 0 0% 100%);
    }
    25% {
        clip-path: xywh(0 0 100% 100%);
    }
    80% {
        clip-path: xywh(0 0 100% 100%);
    }
    100% {
        clip-path: xywh(0 0 0% 100%);
    }
}

@keyframes slide-to-left-frames {
    0% {
        clip-path: xywh(100% 0 0% 100%);
    }
    10% {
        clip-path: xywh(100% 0 0% 100%);
    }
    25% {
        clip-path: xywh(0 0 100% 100%);
    }
    80% {
        clip-path: xywh(0 0 100% 100%);
    }
    100% {
        clip-path: xywh(100% 0 0% 100%);
    }
}

.corner-img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.dashboard-main-content {
    margin-left: 20vw;
    margin-right: 20vw;
}

.time-logged {
    font-size: 20px;
}

.data-throbber {
    animation-duration: 1s;
    animation-name: data-throbber-anim;
    animation-iteration-count: infinite;
}

@keyframes data-throbber-anim {
    0% {
        color: var(--text-secondary);
    }
    20% {
        color: var(--text-primary);
    }
    40% {
        color: var(--text-secondary);
    }
    100% {
        color: var(--text-secondary);
    }
}

#ship-project-button {
    margin-bottom: 0;
    padding: 8px;
    background-color: var(--background-accent);
    border-radius: 4px;
    border-color: var(--background-faded);
    border-width: 1px;
    border-style: solid;
    color: var(--text-primary);
    font-size: 16px;
    transition: background-color 0.1s;
}

#ship-project-button:hover {
    background-color: var(--background-faded);
}

#ship-project-button:active {
    background-color: var(--background-primary);
}

#submit-dialog {
    background-color: var(--background-primary);
    border-width: 2px;
    border-radius: 8px;
    border-style: solid;
    border-color: var(--background-faded);
}

#custom-dialog {
    background-color: var(--background-primary);
    border-width: 2px;
    border-radius: 8px;
    border-style: solid;
    border-color: var(--background-faded);
    width: 40vw;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
}

.dialog-text {
    color: var(--text-primary);
    margin-top: 2px;
    margin-bottom: 2px;
}

.dialog-input {
    color: var(--text-primary);
    background-color: var(--background-faded);
    border-color: var(--background-accent);
    border-style: solid;
    border-width: 1px;
    border-radius: 4px;
    width: 100%;
    height: 1.5em;
    margin-top: 4px;
}

.dialog-long-input {
    resize: none;
    height: unset;
}

.dialog-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.dialog-secondary-header {
    margin-top: 2px;
    font-size: 16px;
    color: var(--text-secondary);
}

.dialog-close-button {
    background-color: var(--background-accent);
    color: var(--text-primary);
    border-width: 1px;
    border-color: var(--background-faded);
    border-radius: 4px;
    aspect-ratio: 1;
    height: 30px;
    width: 30px;
    margin-left: auto;
}

.dialog-close-button:hover {
    background-color: var(--background-faded);
}

.form-entry {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.dashboard-shop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 32px;
}

.shop-entry {
    background: var(--background-secondary);
    width: 250px;
    height: 275px;
    border-width: 1px;
    border-color: var(--background-accent);
    border-radius: 4px;
    border-style: solid;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.shop-primary-title {
    font-weight: bold;
    margin-bottom: 0;
    color: var(--text-primary);
}

.shop-secondary-title {
    margin-top: 2px;
    margin-bottom: 2px;
    color: var(--text-secondary);
}

.shop-price {
    margin-top: 0;
}

.shop-img {
    max-height: 100px;
    max-width: 250px;
}

.shop-button-holder {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
}

.shop-button-descriptor {
    margin-bottom: 0;
}

.shop-button {
    height: 28px;
    vertical-align: center;
    background-color: var(--background-primary);
    color: var(--text-primary);
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--background-faded);
    transition: background-color 0.1s;
    margin-top: 0;
}

.shop-button:hover {
    background-color: var(--background-faded);
}

.shop-button:active {
    background-color: var(--background-primary);
}

.shop-button:disabled {
    background-color: #888888;
}

.submission-bg {
    background-color: var(--background-secondary);
    width: fit-content;
    margin: 60vh auto 0 auto;
    padding: 16px;
    border-width: 1px;
    border-color: var(--background-accent);
    border-style: solid;
    border-radius: 4px;
}

#empty-cart-message {
    color: var(--text-secondary);
}

.dashboard-cart {
    background: var(--background-faded);
    border-radius: 4px;
    padding: 8px;
    border-color: var(--background-accent);
    border-width: 1px;
    border-style: solid;
    width: 50%;
    margin-top: 4px;
}

.cart-item {
    background: var(--background-secondary);
    border-radius: 4px;
    padding: 8px;
    border-color: var(--background-accent);
    border-width: 1px;
    border-style: solid;
    width: 80%;
    height: 1.5em;
    margin-top: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cart-item-cost {
    margin-left: auto;
}

.cart-item-remove {
    margin-left: 4px;
    padding: 4px;
    background-color: var(--background-accent);
    border-radius: 4px;
    border-color: var(--background-faded);
    border-width: 1px;
    border-style: solid;
    color: var(--text-primary);
    font-size: 16px;
    transition: background-color 0.1s;
    width: 24px;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    background-color: var(--background-faded);
}

#cart-holder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#shop-toolbar {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

#project-selector {
    width: 20vw;
    color: var(--text-primary);
    background-color: var(--background-faded);
    border-color: var(--background-accent);
    border-style: solid;
    border-radius: 4px;
    border-width: 1px;
    margin-top: 4px;
}

#order-button {
    width: 20vw;
    padding: 16px;
    vertical-align: center;
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--background-faded);
    transition: background-color 0.1s;
    margin-top: 18px;
}

#order-button:hover {
    background-color: var(--background-faded);
}

#order-button:active {
    background-color: var(--background-primary);
}

#order-button:disabled {
    background-color: #888888;
}

.faq-question {
    cursor: pointer;
    background: var(--background-secondary);
    border: 1px solid var(--background-accent);
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    padding: 10px;
    font-size: 18px;
    margin-bottom: 8px;
}

.faq-question > summary {
    list-style-type: ' ＋ ';
}

.faq-question[open] > summary {
    list-style-type: ' － ';
}

.faq-title {
    font-size: 24px;
    font-weight: bold;
}

#order-holder {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    background-color: var(--background-faded);
    border-radius: 4px;
    padding: 8px;
    border-color: var(--background-accent);
    border-width: 1px;
    border-style: solid;
    margin-top: 4px;
    width: 50%;
}

#order-holder > p {
    margin-top: 4px;
    margin-bottom: 4px;
    background-color: var(--background-secondary);
    border-radius: 4px;
    border-color: var(--background-accent);
    border-width: 1px;
    border-style: solid;
    padding: 4px;
}

#empty-orders-message {
    background-color: transparent !important;
    border: unset !important;
    display: block;
    visibility: hidden;
    color: var(--text-secondary);
}

.fade-animation {
    animation-name: fade-out-frames;
    animation-iteration-count: 1;
    animation-duration: 8s;
    animation-timing-function: ease-in;
    clip-path: xywh(100% 0 100% 100%);
}

@keyframes fade-out-frames {
    0% {
        clip-path: xywh(0 0 100% 100%);
    }
    95% {
        clip-path: xywh(0 0 100% 100%);
    }
    100% {
        clip-path: xywh(100% 0 100% 100%);
    }
}

.size-chart-link {
    font-size: 12px;
    margin: 0;
}