body {
    background-color: black;
    font-family: 'Courier New', Courier, monospace;
    color: #00FF00; /* Bright green text, common in retro aesthetics */
}

.titleStyle {
    background-color: #0000FF; /* Dark blue for contrast */
    width: 500px;
    font-family: 'Courier New', Courier, monospace;
    font-size: large;
    text-align: center;
    font-weight: bold;
    color: #FFFF00; /* Bright yellow text */
    border: 2px solid #FFFFFF; /* White border around title */
    padding: 5px;
    margin-bottom: 20px;
}

.standardDiv {
    background-color: #1A1A1A; /* Darker background */
    max-width: 580px;
    min-width: 50px;
    color: #FFFFFF;
    border: 2px solid #00FF00; /* Bright green border */
    padding: 10px;
}

.sectionDiv {
    display: inline-block; /* Shrinks width to fit content */
    background-color: #1A1A1A;
    padding: 10px;
    border: 1px solid #FF0000; /* Red border for section */
    margin: 10px auto; /* Centres the div horizontally */
    min-width: 50px; /* Ensures the border shows, even with narrow content */
    box-sizing: border-box; /* Includes padding in width calculations */
}



.button {
    background-color: #FF0000; /* Spectrum red */
    border: 1px solid #FFFF00; /* Yellow border */
    color: #FFFFFF;
    padding: 5px 10px;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.1s;
    font-family: 'Courier New', Courier, monospace;
}

.button:hover {
    background-color: #FFBF00; /* Orange on hover */
    cursor: pointer;
}

.button:active {
    background-color: #FF8000; /* Darker orange when clicked */
    transform: scale(0.95);
}

.p5sketch {
    background-color: black;
    display: inline-block;
    /*border: 0px solid #FFFFFF;  White border for retro style */
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 999;
}

#modal {
    width: 100%;
    max-width: 2000px; /* Smaller, retro modal */
    min-width: 300px;
    padding: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    color: #FFFF00; /* Yellow text */
    border: 2px solid #FF0000; /* Red border */
    display: none;
    z-index: 1000;
}

#modal.show {
    display: block;
    animation: zoomIn 0.0s ease forwards;
}

#modal.hide {
    animation: zoomOut 0.0s ease forwards;
}

#modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #FF0000; /* Spectrum red for close icon */
    background-color: #000000;
    padding: 3px;
    border: 1px solid #FFFFFF;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modal-close:hover {
    background-color: #FF0000; /* Red on hover */
    color: #FFFFFF;
}

#modal-close:active {
    transform: scale(0.95);
}

.centerContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
}

#primes {
    max-height: 300px;  /* Adjust the height as needed */
    overflow-y: auto;   /* Adds a vertical scrollbar when content overflows */
}
