/* Reset some basic elements for consistency across browsers */
body, h1, h2, ul, li, p {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Set a modern font and apply basic styling to the body */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header styling */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
}

header a:hover {
    text-decoration: underline;
}

/* Main heading styling */
h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 2.5rem;
    color: #333;
}

/* Container styling */
.container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 20px;
}

.box {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 45%;
    margin: 20px 0;
    padding: 20px;
}

.box h2 {
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.box ul {
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.box ul li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.box ul li:last-child {
    border-bottom: none;
}

.box ul li:hover {
    background: #f1f1f1;
    cursor: pointer;
}

/* Modal styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: #fff;
    padding: 15px;
    border-radius: 5px 5px 0 0;
}

.modal-content {
    padding: 20px;
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 90%;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.5rem;
    color: #333;
}
