@import "link.css";
@import "code.css";
@import "landing.css";
@import "product.css";
@import "order.css";
@import "admin.css";
@import "misc.css";

:root {
    --primary-color: #fffaf2;
    --primary-color-dark: #f8efe0;
    --secondary-color: #08122f;
    --secondary-10-color: #dac8ab;
    --accent-color: #f8572d;
    --green-misc: #037a54;

    --red-misc: #d32f2f;

    font-size: 16px;
}

@font-face {
    font-family: "Ambit";
    src: url("./font/Ambit-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ambit";
    src: url("./font/Ambit-Bold.otf") format("opentype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gulf";
    src: url("./font/GulfsDisplay-Normal.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-family: "Ambit", sans-serif;
    margin: 0;
    padding: 0;
}

.spacer {
    height: 2rem;
}

.wrapper {
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
.special-title {
    font-family: "Gulf", cursive;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

p {
    line-height: 1.3;
    max-width: 40rem;
}

.group-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-input button {
    width: fit-content;
}

.flex-input {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.checkbox-group {
    display: flex;
    gap: 0.5rem;
}

label {
    font-weight: bold;
}

input,
textarea {
    font: inherit;
    background-color: var(--primary-color-dark);
    border: none;
    max-width: 20rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

textarea {
    min-height: 20rem;
}

.password-input {
    width: 70%;
}

input::placeholder {
    opacity: 0.3;
}

.code-input {
    padding: 1rem 0;
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 3rem;
}

.horizonal-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.center-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 2rem;
    max-width: 30rem;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 2rem;
}

ul > li img {
    width: 2rem;
}

ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

li {
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

pre {
    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word;
    font-family: "Ambit", sans-serif;
}

button,
.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: "Ambit", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
}

button[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-opacity {
    background-color: var(--secondary-10-color);
    color: var(--secondary-color);
}

.btn-transparent {
    background-color: transparent;
    color: var(--secondary-color);
}

.action-button {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.margin-max-width {
    max-width: 1200px;
    margin: 0 auto;
}

footer {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 3rem;
    border-radius: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-navigation {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 21rem;
}

.nav-item {
    width: 10rem;
}

.error {
    color: var(--accent-color);
}

.title {
    display: flex;
    gap: 1rem;
    align-items: center;
}

select {
    background-color: var(--primary-color-dark);
    color: var(--secondary-color);
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: inherit;
    max-width: 20rem;
    height: fit-content;
}

select[multiple] {
    background-color: var(--primary-color-dark);
    color: var(--secondary-color);
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: inherit;
    max-width: 20rem;
    min-height: 10rem;
    overflow-y: auto;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-content > img {
        display: none;
    }

    nav,
    footer {
        padding: 1.5rem;
    }

    .wrapper {
        padding: 0 1.5rem;
    }

    input,
    textarea {
        max-width: 100%;
    }

    .password-input {
        width: 75%;
    }
}
