/* COMMON Styles*/
div {
    box-sizing: border-box;
}

input[type="checkbox"] {
    width: 1.5em !important;
    height: 1.5em !important;
    max-height: 1.5em !important;
    min-height: 1.5em !important;
    max-width: 1.5em !important;
    min-width: 1.5em !important;
    padding: 0;
    accent-color: var(--accent-color);
    cursor: pointer;
    transition: accent-color 0.2s ease;
}

input[type="checkbox"]:hover {
    accent-color: var(--accent-color-hover);
}

label {
    cursor: pointer;
    line-height: 1em;
}

label.disabled {
    pointer-events: 'none';
    opacity: 0.5;
    filter: saturate(0.25);
}

.header-title-bar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
    justify-content: start;
    width: 100%;
    margin: 0 auto;
    max-width: 1680px;
    overflow: hidden;
    position: relative;
}

header {
    padding: 1.5rem 2rem 0 2rem;
    background-color: var(--header-bg-color);
    color: var(--light-text-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: start;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

header.full-padding {
    padding: 1.5rem 2rem;
}

.header-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.header-content {
    max-height: 21.2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    justify-content: start;
    width: 100%;
    margin: 0 auto;
    max-width: 1680px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
}

@media screen and (max-width: 991px) and (orientation: landscape) {
    header {
        padding: 1em 0.5em;
    }

    header>div {
        flex-direction: column;
        gap: 1em;
        align-items: center;
        margin: 0;
        max-width: none;
    }
}


@media screen and (min-width: 540px) {
    header[contract] .header-content {
        opacity: 0;
        pointer-events: none;
    }

    header .collapse-btn svg {
        transform: rotateX(180deg);
        transition: transform 0.4s ease;
    }

    header[contract] .collapse-btn svg {
        transform: rotateX(0deg);
    }

    .collapse-btn {
        position: absolute;
        bottom: 0.25rem;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--header-bg-color);
        padding: 0.5rem 1rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        cursor: pointer;
    }
}

/*TAILWIND STYLE CLASSES*/
.line-height-1em {
    line-height: 1em;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.gap-05em {
    gap: 0.5em;
}

.gap-1em {
    gap: 1em;
}

.gap-1rem {
    gap: 1rem;
}

.gap-1-5em {
    gap: 1.5em;
}

.gap-1-5rem {
    gap: 1.5rem;
}

.gap-2em {
    gap: 2em;
}

.gap-4em {
    gap: 4em;
}

.space-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.align-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: start;
}

.justify-center {
    justify-content: center;
}

.align-self-start {
    align-self: flex-start;
}

.overflow-hidden {
    overflow: hidden;
}

.flex-grow {
    flex-grow: 1;
}

.margin-bottom-05em {
    margin-bottom: 0.5em;
}

.margin-bottom-1em {
    margin-bottom: 1em;
}

.margin-bottom-1-5rem {
    padding-bottom: 1.5rem;
}

.mono-txt {
    font-family: Monospace, monospace;
}

.width-full {
    width: 100%;
}

@media screen and (max-width: 539px) {
    /*COOMON STYLES*/

    header {
        padding: 1em 0.5em;
    }

    .header-icon {
        width: 1.5em;
        height: 1.5em;
        margin-right: 0.5em;
    }

    header>div {
        flex-direction: column;
        gap: 1em;
        align-items: center;
        margin: 0;
        max-width: none;
    }

    .header-content {
        gap: 1em;
        max-width: 100%;
    }

    .collapse-btn {
        display: none;
        visibility: hidden;
    }

    /*TAILWIND STYLE MOBILE CLASSES*/
    .flex-row.mobile-column {
        flex-direction: column;
    }

    .gap-1em {
        gap: 0.5em;
    }
}