body {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    font-family: 'Arial', sans-serif;
    overflow: hidden;
}

* {
    box-sizing: border-box; /* Ensures that padding and border are included in total width and height */
}

.corner {
    flex: 1 0 50%; /* Flex basis set to 50% */
    height: 50%; /* Each corner takes up exactly half the height of the viewport */
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000; /* Use 1px border for a more predictable layout */
}

/* Apply border to all corners and then remove it as needed */
.corner {
    border: 2px solid #000;
}

/* Remove right border from the 1st and 3rd corner */
.corner:nth-child(1), .corner:nth-child(3) {
    border-right: none;
}

/* Remove bottom border from the 1st and 2nd corner */
.corner:nth-child(1), .corner:nth-child(2) {
    border-bottom: none;
}



h2 {
    margin-top: 0;
    background-color: #4CAF50;
    color: white;
    padding: 10px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}



body, 
button, 
.crosses * { /* Add other selectors as needed */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    user-select: none; /* Standard syntax */
}

.crosses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 80%;
    padding-top: 40px; /* Adjusted for title */
}

.cross {
    font-size: 2em;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.2s ease;
}

.cross:hover {
    transform: scale(1.5);
}

.plus {
    font-size: 2em;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.2s ease;
}

.plus:hover {
    transform: scale(1.5);
}

/* Footer */
footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Align items on both ends */
    padding: 10px 20px;
}

/* Ensure the copyright text does not wrap */
footer > div:first-child {
    white-space: nowrap;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer Content */
footer .footer-content {
    display: flex;
    justify-content: right; /* Center the buttons */
    align-items: center;
    margin-right: 30px;
    flex-grow: 1;
}

footer #numCrosses {
    text-align: center;
    width: 50px; /* Set a fixed width */
    border: 1px solid #ccc; /* Example border */
    margin: 0 5px; /* Spacing between buttons and input field */
}



/* Button Styling in Footer */
footer button {
    background-color: #4CAF50;
    color: white;
    border: none;
    margin: 0 10px;
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

footer button:hover {
    background-color: #367c39;
}

 button {
    background-color: #e3e3e3;
    color: rgb(96, 96, 96);
    border: none;
    margin: 0 10px;
    padding: 10px 20px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

 button:hover {
    background-color: #bbbbbb;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .corner {
        width: 100%;
        height: 25%;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    footer {
        flex-direction: column;
        text-align: center;
    }

    footer .footer-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

