/*
    MAIN.CSS

    Description: This css file is intended for all the pages.
*/

/*
    Section: colors and size
    Description: Here are all the colors and size used in every css file.
    These can be imported with the next line on css code:
    @import url("main.css");
*/

:root {
    --color-primary: #bd2127;
    --color-secondary: #721f15;
    --color-white: #fff;
    --h1-title-font-size: 5em;
    --container-bg-color: #0000002e;
    --container-bg-color-2: #ffffff14;
    --color-dark: #231f1f;
    --color-dark-solid: #101010;
    --color-yellow: #f4e518;
    --color-orange: #f26c26;
    --color-white-border: #ffffffab;
    --color-gray-border: #cdcbcf;
    --color-gray: #9b999f;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-Semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "HeptaSlab";
    src: url("../fonts/HeptaSlab-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

/*
    Section: HTML and body styles
    Description: These section is focused on declaring de common
    styles for html and body for all the pages.
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "HeptaSlab", serif;
    color: var(--color-primary);
    text-transform: uppercase;
}

input {
    text-transform: none;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
    justify-content: start;
}

body {
    scroll-behavior: smooth;
}

.main {
    width: 100%;
    height: 100%;
}

.background--yellow {
    background-color: var(--color-yellow);
}

.background--red {
    background-color: var(--color-primary);
}

/*
    Section: Texts
    Description: These are the styles for fonts size, colors and
    other properties for h1, h2 and common texts in all the pages.
*/

h1 {
    font-size: var(--h1-title-font-size);
    letter-spacing: -2px;
    word-wrap: break-word;
    width: 100%;
    text-align: center;
    line-height: 1;
}

h2 {
    font-size: 3em;
    word-wrap: break-word;
    width: 100%;
    text-align: center;
    line-height: 1;
}

.text {
    font-size: 1.15em;
}

.text--large {
    font-size: 1.75em;
}

.text--extra-large {
    font-size: 2.5em;
}

.text--small {
    font-size: 0.8em;
}

.text--right {
    justify-content: right;
}

.text--light {
    font-weight: 300;
}

.text--semibold {
    font-weight: 700;
}

.text--bold {
    font-weight: bold;
}

.text--orange {
    color: var(--color-orange);
}

.text--black {
    color: #000 !important;
}

.text--white {
    color: var(--color-white) !important;
}

.text--green {
    color: var(--color-yellow) !important;
}

.text--yellow {
    color: var(--color-yellow) !important;
}

.text--red {
    color: #ff0000 !important;
}

.text--center {
    text-align: center;
}

.text--left {
    text-align: left;
}

.text--right {
    text-align: right;
}

.text--justify {
    text-align: justify;
}

.text--link {
    text-decoration: none;
}

.text--letter-spacing-small {
    letter-spacing: -2px;
}

.text--only-stroke {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2px;
}

/*
    Section: Width, height, and common properties
    Description: These are the styles for make full width, height, and
    other properties in any element.
*/

.full-width {
    width: 100%;
}

.full-height {
    height: 100%;
}

.display-block {
    display: block;
}

/*
    Component: Icon
    Description: These are the styles for a little icon, with
    its colors and size.
*/

.icon--little {
    width: 30px;
    height: 30px;
}

.icon--white-fill {
    fill: var(--color-white);
}

.icon--orange-fill {
    fill: var(--color-primary);
}

.icon--orange-stroke {
    stroke: var(--color-primary);
    fill: none;
}

/*
    Component: Scrollbar
    Description: These are the styles for all the scrollbars in
    a page, excluding the body scrollbar.
*/

*:not(body)::-webkit-scrollbar {
    width: 10px;
    padding: 10px;
}

*:not(body)::-webkit-scrollbar-track {
    background-color: #000;
}

*:not(body)::-webkit-scrollbar-thumb {
    background: var(--color-orange);
    border-radius: 10px;
}

*:not(body)::-webkit-scrollbar-thumb:hover {
    background-color: #c24700;
    border: solid 1px #c24700;
    cursor: pointer;
}

/* Firefox */

@-moz-document url-prefix() {
    *:not(body) {
        scrollbar-width: thin;
    }
}

/*
    Section: Responsive
    Description: These are the media queries and styles for
    diferents widths and heights, specially for texts
*/

@media (max-width: 1024px) {
    h2 {
        font-size: 2.5em;
        letter-spacing: -2.5px;
    }

    .text--extra-large {
        font-size: 2em;
    }
}

@media (max-width: 640px) {
    .text {
        font-size: 1em;
    }

    .text--large {
        font-size: 1.5em;
    }

    h1,
    h2 {
        font-size: 2em;
    }

    .text--extra-large {
        font-size: 1.75em;
    }

    .text--small {
        font-size: 0.75em;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.75em;
    }

    .text--extra-large {
        font-size: 1.5em;
    }
}

@media (max-width: 420px) {
    .text {
        font-size: 0.8em;
    }

    .text--large,
    .text--extra-large {
        font-size: 1.25em;
    }

    h1 {
        font-size: 1.75em;
    }

    h2 {
        font-size: 1.5em;
    }

    .text--small {
        font-size: 0.7em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.25em;
    }

    .text--extra-large {
        font-size: 1em;
    }
}
