body, html {
    margin: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    direction: rtl;
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 60px;
    background: #e91e63;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-size: 22px;
    font-weight: bold;
}

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* MENU BAR */
.menu-bar {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    height: 50px;
    display: flex;
    background: #fddde6;
    border-bottom: 2px solid #e91e63;
    z-index: 900;
}

.menu-bar button {
    flex: 1;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
}

.menu-bar button:hover {
    background: #ffe5ef;
}

/* MAIN + IFRAME */
main {
    position: absolute;
    top: 110px; /* header + menu height */
    bottom: 0;
    right: 0;
    left: 0;
}

main iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 25px;
}


/* FADE EFFECT ON IFRAME */
main iframe {
    transition: opacity 0.4s ease;
    opacity: 1;
}
main iframe.fade-out {
    opacity: 0;
}
main iframe.fade-in {
    opacity: 1;
}

/* SELECTED MENU BUTTON */
.menu-bar button.active {
    background: #e91e63;
    color: white;
    font-weight: bold;
}

.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

#footer {
    width:100%;
    /*height:300px;*/
    background:black;
    color:white;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width:80%;
}

.spinLoader {
    display: none;
    justify-content: center; 
    align-items: center; 
    font-size: 4rem; 

    width:100%; 
    height:100%;
    color: #e91e63;
}

/* ======== RESPONSIVE MOBILE ======== */
@media (max-width: 768px) {
    .menu-bar {
        display: none;
        flex-direction: column;
        height: auto;
        width: 120px;
    }
    .menu-bar button {
        width: 120px;
        height: 40px;
        border-bottom: 1px dotted black;
    }
    .menu-bar.show {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    main {
        top: 60px; /* only header visible */
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
        justify-content: flex-start;
        align-items: center;

        width:100%;
    }

    .site-header {
        font-size: 18px;
    }
    .site-header img {
        width: 40px;
    }
}
