/* Lets try to keep ordered the styles */
:root {
    /* --danger-color: #f23c24; */
    --danger-color: #dd1f0c;
    --primary-color: #369;
    --primary-light-color: #5a9ee2;
    --primary-dark-color: #254b70;
    --light-color: #f9fafb;
    --light-dark-color: #eaeaea;
    --dark-color: #333;
    --black-color: #111;
    --navbar-height: 64px;
    --navbar-sm-height: 88px;
    --footer-sm-height: 127.59px;
    --footer-md-height: 106.59px;
}

a {
    text-decoration: none;
}

/* All pages */
.page {
    min-height: 100vh;
    padding-top: 64px;
}

.page .container {
    margin-top: 3rem;
}

.page-content {
    min-height: calc(100vh - var(--footer-sm-height));
}


/* Badge */
.badge {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    width: fit-content;
}

.badge.badge-danger {
    background-color: var(--danger-color);
    box-shadow: 0 0.25rem 0.5rem rgba(242, 60, 36, 0.25);
}

.badge.badge-primary {
    background-color: var(--primary-color);
    box-shadow: 0 0.25rem 0.5rem rgba(51, 102, 153, 0.25);
}


/* Button */
.btn {
    border-radius: 0.25rem !important;
    font-size: 0.8rem;
    padding: 0.5rem;
    margin: 0;
}

.btn.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn.btn-primary:active,
.btn.btn-primary:focus,
.btn.btn-primary:hover {
    background-color: var(--primary-dark-color) !important;
    border-color: var(--primary-dark-color) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    opacity: 0.66;
}

.btn.btn-light {
    color: var(--dark-light-color);
    background-color: var(--light-color);
    border-color: var(--light-color);
}

.btn.btn-light:hover {
    color: var(--dark-light-color);
    background-color: var(--light-dark-color);
    border-color: var(--light-dark-color);
}


/* Clock */
.clock .hour-hand,
.clock .minute-hand {
    transform-origin: 50% 50%;
    animation-timing-function: linear;
}

.clock .hour-hand {
    animation: rotate-hour 12s infinite;
}

.clock .minute-hand {
    animation: rotate-minute 60s infinite;
}

@keyframes rotate-hour {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-minute {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Font weight */
.fw-200 {
    font-weight: 200 !important;
}

.fw-400 {
    font-weight: 400 !important;
}

.fw-500 {
    font-weight: 500 !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}


/* Inputs */
.form-floating.hp-input:not(.hidden) {
    border-bottom: 2px solid var(--primary-color);
}

.form-floating.hp-input input,
.form-floating.hp-input textarea {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    background-color: transparent;
    border: none !important;
}

.form-floating.hp-input label {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
    color: var(--bs-dark);
    font-weight: 300;
}

.form-floating.hp-input input:focus {
    box-shadow: none !important;
}


/* Logo */
.navbar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.125);
}

.navbar-brand:focus,
.navbar-brand:hover {
    color: #fff;
}

.navbar-brand .logo {
    height: 2.25rem;
    margin-right: 1rem;
    position: relative;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.125));
}

.navbar-brand .logo path {
    stroke: #eee;
    stroke-width: 8px;
}

.navbar-brand .logo path.fill {
    fill: #eee;
}

.navbar-brand h3 {
    font-family: 'UrbanistItalic', sans-serif;
    font-size: 1.75rem;
    font-weight: 300;
}

.navbar-brand:hover .logo {
    opacity: 1;
    stroke: #eee;
    stroke-dasharray: 900;
    animation: logoShake 0.33s;
}


/* Padding - reset the normal ones to make it progressive, not like bootstrap's that are not linear */
.p-4 {
    padding: 2rem !important;
}


/* Margin */
.mt-2 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

.me-2 {
    margin-right: 1rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-6 {
    margin-bottom: 3rem !important;
}

.my-2 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}


/* Shadow */
.shadow-md {
    box-shadow: 0 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}

/* Text color */
.text-white {
    color: var(--bs-white) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

.text-black {
    color: var(--black-color) !important;
}


/* Spinner */
.spinner {
    display: none;
}

.spinner.show {
    display: block;
}

.spinner.fill-light svg {
    stroke: var(--light-color);
}



/* Full background image */
.full-bg-image {
    min-height: 100vh;
    height: 100%;
    background-image: url('../img/hero-background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: 51.2px;
    background-position-x: calc(-225px + 425 * ((100vw - 400px) / 250));
}

.full-bg-image .section-background {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, rgba(51, 102, 153, 1) 25%, rgba(0, 0, 0, 0.75) 100%);
    padding: 2rem;
    position: relative;
}


/* Animations */
@keyframes shake {
    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: rotate(-1deg);
    }

    20%, 40%, 60%, 80% {
        transform: rotate(1deg);
    }
}


@keyframes logoShake {
    0%, 100% {
        transform: rotate(0deg);
    }

    20%, 60% {
        transform: rotate(-2deg);
    }

    40%, 80% {
        transform: rotate(2deg);
    }
}




/* Media queries */
@media (min-width: 400px) {
    .full-bg-image {
        background-position-x: calc(-225px + (225 * ((100vw - 400px) / 250)));
    }
}

@media (min-width: 600px) {
    .page-content {
        min-height: calc(100vh - var(--footer-md-height));
    }
}

@media (min-width: 650px) {
    .full-bg-image {
        background-position-x: calc(0px + (125 * ((100vw - 650px) / 250)));
    }
}

@media (min-width: 900px) {
    .full-bg-image {
        background-position-x: calc(125px + (75 * ((100vw - 900px) / 300)));
    }
}


@media (min-width: 992px) {
    .full-bg-image {
        background-position-y: 64px;
        background-position-x: 200px;
    }

    .full-bg-image .section-background {
        padding: 3rem;
    }
}


@media (min-width: 1200px) {
    .full-bg-image {
        background-position-x: 200px;
    }
}

.indie-flower-regular {
    font-family: "Indie Flower", cursive;
    font-weight: 400;
    font-style: normal;
}
