:root {
    --bs-border-radius: 0.2rem !important;
}

/* common */
html {
    height: -webkit-fill-available;
}

body {
    min-height: -webkit-fill-available !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.font-image{
    position: relative;
    width: 70vw;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2em;
}

#spinner-overlay {
    position: fixed;
    z-index: 1050;
}

@media (min-height: 768px) {
    .center-dislay {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh !important;
        overflow-y: auto !important;
    }
}

@media (max-height: 768px) {
    .center-dislay {
        padding-top: 1%;
    }
}

@media (min-height: 768px) and (max-width: 768px) {
    .center-dislay {
        align-items: start;
        padding-top: 1%;
    }
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.resize-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 28rem;
    min-height: 15rem !important;
    resize: vertical;
    overflow: auto;
}

/* navBar.blade.php - sideBar.blade.php */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
    width: 100vw;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    z-index: 1049;
}

#navbar-title {
    min-width: 112px;
    margin-bottom: 0px !important;
}

#side-bar {
    position: relative;
    height: 100%;
    width: 100px;
}

.sidebar {
  width: 100%;
  border-left: 1px solid;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: width 0.3s;
}

#side-bar-title {
    font-size: 0.8rem;
}

/* login.blade.php */

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* dashboard.blade.php */

#editor {
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.editor-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 15rem !important;
    height: 28rem;
    resize: vertical;
    overflow: auto;
}

.ql-toolbar {
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0% 0% !important;
    padding: 0%;
}

.ql-container {
    border-radius: 0% 0% var(--bs-border-radius) var(--bs-border-radius) !important;
    padding: 0%;
}

.editor-wrapper::-webkit-scrollbar {
    width: 0px !important;
}

.modal-content-custom {
    width: fit-content;
    height: fit-content;
}

#contentPreview {
    border: 0px solid #ccc;
}

#previewModal {
    overflow: hidden;
}

.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body-custom {
    width: 95vw !important;
    height: 85vh !important;
    max-height: 854px !important;
    display: flex;
    flex-direction: column;
}
@media (min-width: 506px) {
    .modal-body-custom {
        width: 480px !important;
    }
}

.index-content{
    height: 100svh;
    max-width: 760px;
    min-width: 760px;
}
@media (max-width: 768px) {
    .index-content {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

.color-picker {
    width: 3.5em;
    height: 1.7em;
    background-color: #fff;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.color-display {
    width: 95%;
    height: 90%;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    margin: 2px;
}
.color-options {
    display: none;
    position: absolute;
    top: 1.6em;
    right: 0;
    background-color: #fff;
    border: 1px solid #d2d2d2;
    box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px;
    z-index: 1000;
    grid-template-rows: repeat(5, 1fr);
    gap: 4px;
    grid-auto-flow: column;
    padding: 4px;
    cursor: default;
}
.color-option {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.toggle-content {
    cursor: pointer;
}

.modal-body-custom {
  padding: 0 !important;
  overflow-y: auto !important;
}

#titlePreview {
  margin: 15px 15px 0px 15px;
}

.preview-content {
    flex: 1;
    overflow: hidden !important;
    padding-top: 0%;
    height: fit-content !important;
}

/* admin.blade.php */

.clickable {
    cursor: pointer !important;
}

th {
    min-width: 100px;
}

.table-h-limite {
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    overflow: hidden;
    max-height: calc(1.5em * 4);
    overflow-y: auto;
    min-height: calc(1.5em * 4);
}
.table-resize-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 45vh;
    max-height: 85vh;
    resize: vertical;
    overflow: hidden;
}
.table-resize-wrapper .table-responsive {
    flex: 1;
    overflow: auto;
    max-height: none;
}
.table-responsive thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.thumbnail-logo-placeholder {
    color: #6c757d;
}
.thumbnail-logo-img {
    max-height: 200px;
    width: auto;
}

/* index.blade.php */

.container-md {
    min-height: 100vh;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#content {
    border: 0px solid #ccc;
}
#content .ql-editor {
    overflow: visible;
    height: auto;
}

h1 {
    font-size: 2.6rem;
}

/* home.blade.php */

.home-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

.hp-layout {
    width: 100%;
    display: grid;
    grid-template-rows: repeat(8, auto);
    grid-template-columns: 100%;
    gap: 2em;
}

.home-preview {
    height: 42vh;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border-radius: 10px;
}

.home-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.indicator{
    width: 3em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    font-weight: bold;
}
.indicator span{
    height: 65%;
    width: 65%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15%;
}

.hp-content {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1em;
    height: calc(100% - 1.25em);
    position: relative;
    font-size: 1.1rem;
}
.hp-thumbnail-cont {
    display: flex;
    width: calc(min(40%, 25em));
    justify-content: center;
}
.hp-thumbnail {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.template-container{
    flex-direction: column;
    gap: .5em;
}

.hp-text {
    display: flex;
    flex-direction: column;
    gap: .5em;
    height: 100%;
    width: -webkit-fill-available;
}
.hp-text h5{
    margin: 0;
}
.hp-text p {
    overflow-y: auto;
    height: calc(100% - 2.25em);
    width: -webkit-fill-available;
    margin: 0;
    padding: 0;
}
.single-paragraph{
    display: flex;
    flex-direction: column;
    gap: .5em;
    width: 100%;
    height: calc(100% - 1.25em);
}
.single-paragraph p{
    overflow-y: auto;
    height: calc(100% - 2.25em);
}

#container{
    width: 100%;
    height: 100%;
}
#container .ql-editor{
    overflow-y: scroll !important;
}

@media only screen and (max-width: 768px) {
    .hp-content {
        flex-direction: column;
    }
    .hp-thumbnail-cont {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        height: 45%;
        max-height: 45%;
        min-height: 45%;
    }
    .hp-text {
        height: 55%;
        max-height: 55%;
    }
}

/* map.blade.php */

.map-content {
    height: 100vh;
    max-width: 760px;
    min-width: 760px;
}
@media (max-width: 768px) {
    .map-content {
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .map-text {
        font-size: 0.65rem !important;
    }
}

.map-layout {
    max-width: 100%;
    height: 100%;
    display: flex;
    display: block;
    object-fit: contain;
}

.map-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.map-text {
    position: absolute;
    color: #000;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.2em 0.5em;
    border-radius: 0.2em;
    font-size: 0.8em;
    cursor: pointer;
    max-height: 10%;
    overflow-y: auto;
    overflow-x: hidden;
}

#stand-8 {
    top: 21.8%;
    left: 55%;
    max-width: calc(100% - 55% - 2%);
}
#stand-7 {
    top: 33.5%;
    right: 65%;
    max-width: calc(100% - 65% - 2%);
}
#stand-6 {
    top: 32.1%;
    left: 63.5%;
    max-width: calc(100% - 63.5% - 2%);
}
#stand-5 {
    top: 45%;
    right: 63.8%;
    max-width: calc(100% - 63.8% - 2%);
}
#stand-4 {
    top: 55%;
    left: 70.4%;
    max-width: calc(100% - 70.4% - 2%);
}
#stand-3 {
    top: 57.9%;
    right: 61.7%;
    max-width: calc(100% - 61.7% - 2%);
}
#stand-2 {
    top: 67.3%;
    left: 69.5%;
    max-width: calc(100% - 69.5% - 2%);
}
#stand-1 {
    top: 69.4%;
    right: 60%;
    max-width: calc(100% - 60% - 2%);
}

.map-marker {
    position: absolute;
    border: 5px solid #f53131;
    border-radius: 0.2em;
}

#marker-1 {
    top: 43.8%;
    left: 58.6%;
    width: 11.5%;
    height: 6.6%;
}
#marker-2 {
    top: 78.01%;
    left: 52.7%;
    width: 11.5%;
    height: 6.6%;
}

/* file input wrapper */

.file-input-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border: 2px dashed #ced4da;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}
.file-input-wrapper:hover {
  border-color: #6c757d;
  transition: border-color 0.3s;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  padding: 0;
}

.file-input-overlay {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: background-color 0.3s;
}

.file-input-wrapper:hover .file-input-overlay {
  background-color: rgba(121, 157, 183, 0.4);
}

.hover-overlay {
  background-color: rgba(121, 157, 183, 0.4);
}

.file-input-text {
  color: #6c757d;
  font-size: 1.2rem;
}