/* Global Base Settings */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Background image rule */
.home-background {
    background-image: url('images/back.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Header & Nav */
header {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

nav {
    display: flex;
    gap: 15px;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a.active {
    color: yellow;
}

/* Main Content */
main {
    flex: 1;
    padding: 20px;
}

/* Update the global iframe rule to be less restrictive */
iframe {
    display: block;
    width: 100%;
    border: none;
}

/* This targets ONLY the iframe inside the white box */
.white-box-iframe iframe {
    height: 100%; /* Now it will correctly fill the container */
}

table {
    width: 100% !important;
    font-size: 20px;
    vertical-align: top;
}

/* Mobile Breakpoint */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    nav {
        width: 100%;
        justify-content: center;
    }
}
.white-box {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Increased height for more visibility */
    height: 75vh;      
    overflow-y: auto;  
}

/* Ensure the list looks good inside the white box */
.white-box h2 {
    text-align: center;
    font-size: 1.2rem;
}
/* Force the white box to be the boss */
.white-box-iframe {
    background-color: white;
    padding: 10px;
    margin: 20px auto;
    width: 98% !important;
    height: 75vh !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Force the iframe to fit the box */
.white-box-iframe iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}
.white-box-iframe iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    /* Forces the content to behave if it's too small */
    transform-origin: top left;
}