body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 20px;
    text-align: center;
}

header {
    margin-bottom: 40px;
}

h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
    display: inline-block;
}

span#header-cursor {
    background-color: #333;
    display: inline-block;
    width: 1em;
    height: 0.2em;
    margin-left: 2px;
    animation: blink 1.2s ease-in-out infinite;
    transform: translateY(0.1em);
}

@keyframes blink {
    20%, 80% { opacity: 1; }
    30%, 70% { opacity: 0; }
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

main {
    display: flex;
    gap: 20px;
}

main section {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

main section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #333;
    transition: color 0.3s ease;
}

main section:hover h2 {
    color: #007bff;
}

p {
    font-size: 1em;
    margin-bottom: 1em;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.button.disabled {
    color: #999;
    border-color: #ddd;
    background-color: #f5f5f5;
    pointer-events: auto;
    cursor: default;
}

footer {
    margin-top: 40px;
    font-size: 0.9em;
    color: #888;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
}

/* Modal Styles */
.modal {
    display: flex; /* Use flex for centering */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    
    /* Animation properties */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

@keyframes popUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal.show .modal-content {
    animation: popUp 0.1s ease-in-out forwards;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    text-align: left;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modal-content .button {
    margin-top: 10px;
}

.modal-divider {
    display: flex;
    gap: 10px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

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