@font-face {
    font-family: 'HaniArb-Regular';
    src: url('HaniArb-Regular.woff') format('woff');
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    background-color: #000000;
    overflow: hidden;
}

#krpanoContainer {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

#krpanoViewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.nav-trigger {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 10px; /* Adjusted top position */
    right: 20px;
    background: transparent;
    border: none;
    vertical-align: middle;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.nav-trigger:focus {
    outline: 0;
}

.nav-trigger:hover span,
.nav-trigger:hover span:before,
.nav-trigger:hover span:after {
    background: #228ac9;
}

.nav-trigger:before {
    content: '';
    opacity: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.nav-trigger span {
    display: block;
    position: relative;
}

.nav-trigger span:before,
.nav-trigger span:after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-trigger span:before {
    top: -8px;
}

.nav-trigger span:after {
    bottom: -8px;
}

.nav-trigger span,
.nav-trigger span:before,
.nav-trigger span:after {
    width: 100%;
    height: 4px;
    background: #228ac9;
    transition: all 0.4s ease;
}

.nav-trigger.is-active:before {
    opacity: 1;
    width: 50px;
    height: 50px;
    background: #fff;
}

.nav-trigger.is-active span {
    background: transparent;
}

.nav-trigger.is-active span:before {
    top: 0;
    transform: rotate(225deg);
}

.nav-trigger.is-active span:after {
    bottom: 0;
    transform: rotate(-225deg);
}

.menu {
    width: 30%;
    position: absolute;
    top: 70px;
    right: 10px;
    display: block; /* Make the menu visible by default */
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    text-align: right;
    direction: rtl;
    font-family: 'HaniArb-Regular', Arial, sans-serif;
}

/* Custom scrollbar for webkit browsers */
.menu::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.menu::-webkit-scrollbar-track {
    background: #f1f1f1; /* Background of the scrollbar track */
}

.menu::-webkit-scrollbar-thumb {
    background: #888; /* Color of the scrollbar thumb */
    border-radius: 5px; /* Rounded corners for the thumb */
}

.menu::-webkit-scrollbar-thumb:hover {
    background: #555; /* Color of the scrollbar thumb when hovered */
}

/* For Firefox */
.menu {
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Color of the thumb and track */
}

.logo-container {
    text-align: center;
    padding: 10px;
}

.logo {
    max-width: 60%;
    height: auto;
    margin-bottom: 10px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

.name-logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
}

.social-media-icons {
    text-align: center;
    padding: 10px;
}

.social-media-icons a {
    margin: 0 5px;
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-media-icons a:hover {
    color: #6eb559;
}

.main-title, .submenu-title {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-title:hover, .submenu-title:hover {
    background-color: #6eb559;
    color: white;
}

.main-title:hover .arrow, .submenu-title:hover .arrow {
    border-color: white;
}

.submenu-title {
    background-color: #ffffff;
}

.submenu, .floor-menu {
    display: none;
    background-color: #f1f1f1;
}

.floor-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
    background-color: #e9ecef;
}

.floor-menu a:hover {
    background-color: #6eb559;
    color: white;
}

.arrow {
    width: 5px;
    height: 5px;
    border: 2px solid #333;
    border-left: 0;
    border-top: 0;
    transition: transform 0.3s, border-color 0.3s;
    transform: rotate(45deg);
}

.down {
    transform: rotate(45deg);
}

.up {
    transform: rotate(-135deg);
}

@media (min-width: 768px) {
    .menu {
        max-width: 240px;
    }
}

@media (max-width: 767px) {
    .menu {
        width: 90%;
        right: 5%;
        top: 60px;
    }

    .logo, .name-logo {
        max-width: 80%;
    }
}
