@import "./header.css";
@import "./sidebar.css";
@import "./catalogue.css";
@import "./order.css";
@import "./auth.css";
@import "./pages.css";

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Arial;
}

textarea {
    font-family: Arial;
    padding: 10px;
}

.disappearWhenLess980 {
    display: block;
}

.appearWhenLess980 {
    display: none;
}

@media screen and (max-width: 980px) {
    .disappearWhenLess980 {
        display: none;
    }

    .appearWhenLess980 {
        display: block;
    }
}

.appearWhenLess750 {
    display: none;
}

@media screen and (max-width: 750px) {
    .disappearWhenLess750 {
        display: none;
    }

    .appearWhenLess750 {
        display: block;
    }
}

.disappearWhenLess600 {
    display: block;
}

.appearWhenLess600 {
    display: none;
}

.paddingResponsive600 {
    padding-top: 7px;
    padding-bottom: 7px;
}

@media screen and (max-width: 600px) {
    .disappearWhenLess600 {
        display: none;
    }

    .appearWhenLess600 {
        display: block;
    }
    .paddingResponsive600 {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

.disappearWhenLess550 {
    display: block;
}

.appearWhenLess550 {
    display: none;
}

@media screen and (max-width: 550px) {
    .disappearWhenLess550 {
        display: none;
    }

    .appearWhenLess550 {
        display: block;
    }
}

.page__body {
    display: flex;
    min-height: 100%;
}

.page__content {
    flex-grow: 1;
    min-width: 0;
}

:root {
    --primaryColor: rgba(36, 59, 103);
    --primaryColorD: rgb(19, 34, 65);
    --primaryColorL: rgb(44, 76, 136);
    --primaryColorLL: rgb(63, 83, 121);
    --backG: rgb(255, 255, 255);
    --grayL: rgb(255, 255, 255);
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family:
        source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
}

.mainbody {
    background-color: var(--backG);
    flex-grow: 1;
    display: flex;
}

.aShrink {
    a {
        min-width: 0;
    }
}

.bold {
    font-weight: bold;
    color: white;
}

.primaryBg {
    background-color: var(--primaryColor);
}

.languageFlag {
    height: 40px;
    width: 40px;
    font-size: 20px;
    text-align: center;
    border-radius: 50%;
    margin: 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: white;
}

.pointerHover {
    cursor: pointer;
}

.smallBtt {
    height: 40px;
    width: 40px;
    border-radius: 5px;
}

a {
    text-decoration: none;
    color: black;
    min-width: 0px;
}

.whiteC {
    color: white;
}

/* Bigger navigation arrows */
.yarl__navigation_prev,
.yarl__navigation_next {
    transform: scale(1.8);
}

.yarl__icon {
    width: 48px;
    height: 48px;
}

/* Force uniform slide box */
.yarl__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force all images to fit same box */
.yarl__slide_image {
    max-width: 85vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.material-icons {
    cursor: pointer;
}

.errorDisplay {
    text-align: center;
    margin: 30px;
    font-size: 40px;
}

/* Hide input arrow keys */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
}

.alert-box {
    position: fixed;
    top: -100px; /* start hidden above */
    max-height: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition:
        top 0.4s ease,
        opacity 0.4s ease;
    opacity: 0;
    background-color: var(--primaryColor);
}

/* visible state */
.alert-show {
    top: 30px; /* drops down */
    opacity: 1;
}

.alert-bad {
    background-color: rgba(255, 199, 206);
    color: rgba(175, 34, 51);
}

.alert-good {
    background-color: rgba(199, 238, 207);
    color: rgb(49, 110, 73);
}
