/* html {
    view-transition-name: test;
}
html::view-transition-old(test) {
	animation: 0.25s linear both out-left;
}
html::view-transition-new(test) {
	animation: 0.25s 0.25s linear both in-right;
}

@keyframes in-right {
	from {
        opacity: 0.8;
	}
	to {
        opacity: 1;
	}
}

@keyframes out-left {
	from {
        opacity: 1;
	}
	to {
        opacity: 0.8;
	}
} */


main {
    margin: auto;
    display: flex;
    flex-direction: column;
    padding: 40px;
    h3 {
        margin-bottom: 5px;
    }
    select, input {
        appearance: auto!important;
        padding: 6px;
        border-radius: 6px;
    }
    button {
        margin-top: 10px;
        padding: 6px;
        width: fit-content;
        min-width: 100px;
    }
    div {
        margin-top: 20px;
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
        &>* {
            padding: 10px;
            border-radius: 10px;
            min-width: 200px;
            border: 1px solid gray;
        }
    }
    form {
        border: 1px solid gray;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-width: 300px;
        width: fit-content;
        label input, select {
            margin-left: 6px;
        }
    }
}

.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100svh;
    overflow: hidden;
    flex-direction: column;
    text-align: center;
    width: calc(100% - 20px);
    margin: auto;
    &>h1 {
        margin: 0;
        font-size: 70px;
    }
    &>span {
        font-size: x-large;
        opacity: 0.8;
    }
    &>a {
        padding: 14px 20px;
        border: 2px solid var(--accent);
        background-color: var(--accent);
        color: var(--unyt-text-primary);
        text-decoration: none;
        transition: color 0.2s, background-color 0.2s;
        &:hover {
            background-color: transparent;
            color: var(--accent)
        }
        margin-top: 20px;
        border-radius: 10px;
    }
    .grid {
        height: 120vh;
        border-radius: 0px;
        width: 100vw;
        --grid-size: 48px;
        --grid-size-min: 0%;
        --grid-color: rgba(78, 78, 78, 0.1);
        opacity: 0.6;
        --grid-color-min: transparent;
        --grid-weight: 1px; 
        --grid-weight-min: 1px; 
        position: fixed;
        animation: move 1.5s linear infinite!important;
        box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgb(9, 9, 11) 0px 0px 80px 48px inset;
        z-index: -1;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-size: var(--grid-size) var(--grid-size);
        background-image: linear-gradient(90deg,#8882 1px,transparent 0),linear-gradient(180deg,#8882 1px,transparent 0);;
        background-position: 15px 0;
    }

}

@keyframes move {
    0% {
        transform: translateY(0)
    }

    to {
        transform: translateY(-48px)
    }
}