/* Full-page setup */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrolling */
    box-sizing: border-box;
}

/* Fullscreen slide styles */
.slide {
    padding: 10px;

    display: flex;
    justify-content: flex-start; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    flex-direction: column;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    border: 4px solid blue;
}

.mathjax-content {
  visibility: hidden;
}


/* Ensure the content container spans the full viewport */
.databox {

    position: relative;

    width: calc(96vw);
    height: calc((96vw)/2);

    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid red;

}

.databoxTop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc((0.2 * 96vw)/2);
    display: block;
    border: 8px solid green;
    box-sizing: border-box;
    overflow: hidden;
}

.databoxBot {
    position: absolute;
    top: calc((0.2 * 96vw)/2);
    left: 0;
    width: 100%;
    height: calc((0.8 * 96vw)/2);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 8px solid red;
    box-sizing: border-box;
    overflow: hidden;
}

.databoxA, .databoxB {
    position: absolute;
    top: calc((0.2 * 96vw) / 2);
    height: calc((0.8 * 96vw) / 2);
    box-sizing: border-box;
    border: 8px solid orange;
    padding: 10px;
    overflow: hidden;
    display: block;
}

.databoxA {
    left: 0;
    width: 48vw;
}

.databoxB {
    left: 48vw;
    width: 48vw;
}



/* Scale navigation buttons */
.navigation {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.navigation a, .navigation span {
    font-size: calc(1.2rem);
    padding: 5px 5px;
    border: 2px solid #007BFF;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: #007BFF;
    background: white;
    min-width: 120px; /* Ensure buttons have consistent width */
    display: flex;
    height: 20px;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    user-select: none;
}

.navigation a:hover {
    background: #007BFF;
    color: white;
}

.navigation .disabled {
    visibility: hidden; /* Keep spacing consistent but hide the button */
    opacity: 0;
    pointer-events: none; /* Prevent interaction */
}

