:root {
    --main-yellow: #fecb10;
    --main-dark: #0d0d0d;
}

body {
    background-color: var(--main-dark);
    color: #fff;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    position: relative;
    padding-left: 80px;
    padding-block: 3rem;
    min-height: 100vh;
}

#maincontents .col>a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 300px;
    transition: 0.3s;
    border-radius: 5px;
}

#maincontents .col>a img {
    display: block;
    max-width: 100%;
}

#maincontents .col>a h3 {
    position: absolute;
    height: 100%;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    padding: 1rem;
    font-size: calc(1.25rem + 0.25vw);
    transform: translateY(100%);
    transition: 0.4s;
}

#maincontents .col>a:hover {
    filter: drop-shadow(0 0 20px rgba(255, 145, 0, 0.3)) drop-shadow(0 0 5px rgba(255, 145, 0, 1));
}

#maincontents .col>a:hover h3 {
    transform: translateY(0);
}

#maincontents .col>a.area {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

#maincontents .col>a.area h3 {
    position: static;
    transform: none;
    background: none;
    padding: 0;
}

#maincontents .col>a.category {
    padding: 2rem 1rem;
}

#maincontents .col>a.category img {
    transition: 0.4s;
}

#maincontents .col>a.category .text {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    inset: 0;
    color: #fff;
    padding: 1rem;
    transform: translateY(110%);
    transition: all 0.4s;
}

#maincontents .col>a.category .text p {
    line-height: 1.1;
}

#maincontents .col>a.category:hover .text {
    transform: translateY(0);
}

#maincontents .col>a.category:hover img {
    filter: brightness(0.3);
    transform: translateY(-20px);
}

#maincontents .col>a.ingredient {
    flex-direction: column;
}

#maincontents .col>a.ingredient i {
    font-size: calc(3rem + 1vw);
    margin-bottom: 1rem;
}

#maincontents .col>a.ingredient h3 {
    position: static;
    transform: none;
    background: none;
    padding: 0;
}

#maincontents .col>a.ingredient .text {
    text-align: center;
}

aside {
    background-color: var(--main-dark);
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4);
}

aside .right {
    background-color: #fff;
    color: var(--main-dark);
}

aside .right img {
    max-width: 50px;
}

aside .right button {
    font-size: calc(1.5rem + 0.5vw);
}

aside .left {
    display: none;
    white-space: nowrap;
}

aside .left>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    height: 100%;
}

aside .left .icon {
    transform: translateY(calc(100% + 2rem));
    transition: 0.5s 0.2s;
}

aside .left .icon ul {
    transition: 0.3s;
    margin-bottom: 0.5rem;
}

aside .left nav a {
    opacity: 0;
    margin-top: 1rem;
    transition: 0.2s;
}

aside .left nav a:hover {
    color: var(--main-yellow);
}

aside .left nav a:nth-of-type(1) {
    transition: margin-top 0.2s 0.2s, opacity 0.2s 0.2s, color 0.5s;
}

aside .left nav a:nth-of-type(2) {
    transition: margin-top 0.2s 0.3s, opacity 0.2s 0.3s, color 0.5s;
}

aside .left nav a:nth-of-type(3) {
    transition: margin-top 0.2s 0.4s, opacity 0.2s 0.4s, color 0.5s;
}

aside .left nav a:nth-of-type(4) {
    transition: margin-top 0.2s 0.5s, opacity 0.2s 0.5s, color 0.5s;
}

aside .left nav a:nth-of-type(5) {
    transition: margin-top 0.2s 0.6s, opacity 0.2s 0.6s, color 0.5s;
}

aside .left nav a:nth-of-type(6) {
    transition: margin-top 0.2s 0.7s, opacity 0.2s 0.7s, color 0.5s;
}

aside.open .left nav a {
    margin-top: 0;
    opacity: 1;
}

aside.open .left .icon {
    transform: translateY(0);
}

.spinner {
    position: absolute;
    inset: 0;
    background-color: var(--main-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.spinner span {
    border: 7px solid;
    border-color: var(--main-yellow) var(--main-yellow) var(--main-yellow) transparent;
    border-radius: 50%;
    width: calc(50px + 1.5vw);
    height: calc(50px + 1.5vw);
    animation: download 0.6s linear infinite;
}

.loading {
    opacity: 1;
    visibility: visible;
}

@keyframes download {
    to {
        transform: rotate(1turn);
    }
}

#searchForm input::placeholder {
    color: #727272;
}

div:has(input[name="password"]) .toggle-password {
    display: block;
    position: absolute;
    right: 0.6rem;
    top: 0.455rem;
    color: rgba(13, 13, 13, 0.2);
    cursor: pointer;
}

div:has(input[name="password"]:focus) .toggle-password {
    color: #0d0d0d;
}

.is-invalid,
.is-valid {
    background-image: none !important;
}