﻿html,
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    height: 100%;
    width: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    animation: none;
    overflow: hidden;
}

@keyframes bgLoading {
    0% {
        background-position: 0 0, 15px 15px;
        background-color: #ffffff;
        background-image: radial-gradient(#2a323f 5%, transparent 5%), radial-gradient(#ffd500 5%, transparent 5%);
        background-size: 30px 30px;
    }

    50% {
        background-position: 15px 15px, 90px 90px;
        background-color: #fbf9f9;
        background-image: radial-gradient(#ffd500 5%, transparent 5%, radial-gradient(#2a323f 5%, transparent 5%));
        background-size: 32px 32px;
    }

    100% {
        background-position: 0 0, 15px 15px;
        background-color: #ffffff;
        background-image: radial-gradient(#2a323f 5%, transparent 5%), radial-gradient(#ffd500 5%, transparent 5%);
        background-size: 30px 30px;
    }
}


html {
    position: relative;
    z-index: 0;
    overflow: hidden;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
}

.container {
    max-width: 1640px;
}



.appBox .appBoxIframe {
    position: relative;
    height: 100vh; /* Full viewport height to allow for footer placement */
    min-height: 200px;
    overflow-y: auto;
}


.headerApp {
    display: flex;
    justify-content: space-between; /* Title on the left, logo on the right */
    align-items: center; /* Center the title and logo vertically */
    padding: 15px;
}

.headerText h1 {
    margin: 0;
    font-size: 24px; /* Adjust font size as needed */
    font-weight: normal; /* Custom font weight */
}

/* Logo in header */
.headerLogo img {
    height: 100px; /* Match the height of the footer logo */
    width: auto;
}



/* Main footer styling */
.footer {
    height: 70px; /* Fix the height of the footer */
    display: flex; /* Enable flexbox for alignment */
    align-items: center; /* Vertically center the text and image */
    padding: 0 16px; /* Horizontal padding for some spacing */
    width: 90%;
    margin: 0 auto;
    background-color: #2a323f; /* Dark background color */
    box-sizing: border-box;
    box-shadow: 0 0 8px 1px #B3B3B3 !important;
    border-bottom-left-radius: .5em;
    border-bottom-right-radius: .5em;
    color: #6c757d; /* Muted text color */
    position: relative; /* Ensure it's not overlapping content */
}

/* Footer text styling */
.footerText {
    margin: 0; /* Remove any margin */
    padding: 0; /* Ensure no padding */
    line-height: normal; /* Let the text wrap normally */
    color: #6c757d; /* Muted text color */
}

/* Footer link styling */
.footerLink {
    color: #ffd500; /* Custom link color */
    text-decoration: none;
}

/* Footer image logo styling */
.footerLogo {
    height: 25px;
    width: auto /* Ensure the image fits within the footer */
}

/* Hover state for the link */
.footerLink:hover {
    color: #ffcc00; /* Slightly darker yellow on hover */
}

/* Media query adjustments */
@media screen and (max-width: 768px) {
    .footer {
        width: 100% !important;
        margin: 0;
        position: absolute;
        bottom:0;
    }

    .appBox .appBoxIframe {
        margin: 0;
        max-height: calc(100vh - 20px);
        width: 100% !important;
        overflow-y: auto;
    }

    .headerText h1 {
        font-size: 18px; /* Reduce the title font size on small screens */
    }

    .headerLogo img {
        height: 25px; /* Reduce the logo size on small screens */
    }

    .footerLink {
        display: none; /* Hide the footer text on mobile, but leave the link */
    }
}


.btn {
    visibility: visible;
    letter-spacing: 0.75px;
    box-sizing: border-box;
    font-family: "Open Sans",Helvetica,Arial,sans-serif;
    min-width: 9em;
    margin: 0 1em 0 0;
    font-weight: 700;
    border: 1px solid;
    border-radius: 5px;
    display: inline-block;
    padding: 0.6em 1.2em;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    background-image: none;
    overflow: visible;
    border-color: #067080;
    background-color: #ffffff;
}



.btn-delete {
    background-color: #ac4e4e;
    color: white;
}


.btn:hover {
    background-color: #FFCC00;
    color: #ffffff;
    border: 1px solid #067080;
}

.btn:disabled {
    background-color: grey;
    cursor: not-allowed;
    color: #dcdcdc; /* optional to lighten the text color */
}

@media screen and (min-width: 768px) {

    .footer {
        justify-content: space-between; /* Space items between */
        max-width: 1600px
    }

    .appBox {

        border: 1px solid #33343A;
        border-radius: .5em;
        box-sizing: border-box;
        box-shadow: 0 0 8px 1px #B3B3B3 !important;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom: none;
        width: 90%; /* Same width as footer */
        max-width: 1600px; /* Same max-width as footer */
        margin: 20px auto  0;
        /* Centering, same as footer */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .appBoxIframe {

        border: none;
        width: 90%; /* Same width as footer */
        max-width: 1600px; /* Same max-width as footer */
        margin: 0 auto; /* Centering, same as footer */
        margin: 100px auto 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

