@import url("../plugin/bootstrap-icons-1.10.3/font/bootstrap-icons.css");

@import url("./variable.css");
@import url("./button.css");

@font-face {
    font-family: "roboto-light";
    src: url("../font/roboto/Roboto-Light.ttf") format('truetype');
}

html,
body {
    font-family:
        "roboto-light",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Open Sans',
        'Helvetica Neue',
        sans-serif;
    position: fixed;
    display: flex;
    flex-direction: column;
    /* gap: 1px; */
    margin: 0px;
    padding: 0px;
    width: var(--viewport-width);
    max-height: var(--viewport-height);
    max-width: -webkit-fill-available;
    max-height: -webkit-fill-available;
    font-size: var(--fs-normal);
    background-image: url("../img/makkah.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 80%;
    background-color: var(--bs-white);
    color: var(--bs-dark);
    overflow: auto;
    scroll-behavior: smooth;
}

/* body.scroll-desabled {
    overflow: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
} */

.card {
    border-radius: 15px;
    padding: 10px;
    box-shadow: 5px 5px 10px 10px rgba(0, 0, 0, 0.15);
}

.bg-white {
    background-color: var(--bs-white);
}

.bg-trans-light {
    background-color: rgba(255, 255, 255, 0.7);
}

section.header {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 100%;
    min-height: calc(var(--viewport-height) - 60px);
    max-height: calc(var(--viewport-height) - 60px);
    background-color: var(--head-overlay);
}

section.header .title {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: calc(100% - 20px);
    padding: 10px;
    color: var(--bs-white);
    text-align: center;
}

section.header .title img {
    width: auto;
    height: 150px;
}

section.header .title .text-medium {
    font-size: calc((5 / 100) * var(--viewport-height));
}

section.header .title .text-large {
    font-size: calc((7.5 / 100) * var(--viewport-height));
}

section.header .info-container~.title,
section.header .button-container~.title,
section.header .title:has(+ .info-container),
section.header .title:has(+ .button-container) {
    height: calc(var(--viewport-height) - 100px);
}

section.header .info-container:has(+ .title + .button-container)~.title,
section.header .info-container:has(+ .button-container + .title)~.title,
section.header .button-container:has(+ .title + .info-container)~.title,
section.header .button-container:has(+ .info-container + .title)~.title,
section.header .title:has(+ .info-container + .button-container),
section.header .title:has(+ .button-container + .info-container) {
    height: calc(var(--viewport-height) - 160px);
}

section.header .info-container {
    width: 100%;
    min-height: 60px;
    max-height: 60px;
}

section.header .button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    min-height: 60px;
}

section.navigation {
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: calc(100% - 20px);
    min-height: 60px;
    max-height: 60px;
    padding: 0px 10px;
    transition: var(--tran-025);
    background-color: var(--head-overlay);
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.15);
}

section.navigation .app-logo {
    width: auto;
    height: 50px;
}

section.navigation .app-title {
    font-size: var(--fs-xx-large);
    font-weight: bold;
    text-transform: uppercase;
}

section.navigation .menu {
    text-transform: capitalize;
    font-size: var(--fs-medium);
}

section.navigation :not(.button).menu {
    color: var(--bs-white)
}

section.navigation.bg-white {
    background-color: var(--bs-white);
}

section.navigation.bg-white :not(.button).menu {
    color: var(--bs-dark);
}

section.body {
    z-index: 1;
    display: flex;
    flex-direction: row;
    /* width: 100%; */
    min-height: calc(var(--viewport-height) - 60px);
    max-height: calc(var(--viewport-height) - 60px);
    background-color: var(--bs-light);
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

section.body::-webkit-scrollbar {
    display: none;
}

section.body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

section.body .content {
    display: flex;
    flex-direction: column;
    min-width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 10px;
    min-height: calc(var(--viewport-height) - 80px);
    max-height: calc(var(--viewport-height) - 80px);
    scroll-snap-align: center;
    overflow-x: hidden;
    overflow-y: auto;
}
section.body .content table {
    min-width: 100%;
    max-width: 100%;
}

section.footer {
    z-index: 2;
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 200px;
    max-height: 200px;
    background-color: var(--bs-green);
    box-shadow: 0px -5px 10px 0px rgba(0, 0, 0, 0.25);
}

.logo {
    flex: 1;
}

.row {
    display: flex;
    flex-direction: row;
}

.col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.col.col-100 {
    min-width: 100%;
}

.flex-center {
    align-items: center;
    justify-content: center;
}

.flex-ai-center {
    align-items: center;
}

.flex-jc-center {
    justify-content: center;
}

.flex-ai-right {
    align-items: right;
}

.flex-jc-right {
    justify-content: right;
}

.flex-self .flex-center {
    align-self: center;
    justify-self: center;
}

.flex-self .flex-ai-center {
    align-self: center;
}

.flex-self .flex-jc-center {
    justify-self: center;
}

.timer {
    z-index: 1000;
    position: absolute;
    min-width: 100px;
    min-height: 0px;
    /* top: -10px;
    right: -10px; */
    font-weight: bold;
    font-size: calc((10 / 100) * var(--viewport-height)) !important;
    color: var(--bs-success);
}

.skeleton-bar {
    display: inline-block;
    height: auto;
    position: relative;
    overflow: hidden;
    background-color: #dedede;
    color: transparent;
}

.skeleton-bar::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    -o-transform: translateX(-100%);
    -ms-transform: translateX(-100%);
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: shimmer 1s infinite;
    content: '';
}

@keyframes shimmer {
    100% {
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -o-transform: translateX(100%);
        -ms-transform: translateX(100%);
        transform: translateX(100%);
    }
}


