/* General Styles */
body {
    font-family: DuffyScriptRegular, sans-serif;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 50%;
    margin: auto;
}

/* Title Styles */
.title {
    font-family: DuffyScriptDemiBold, sans-serif;
    font-size: 4em;
    margin-bottom: 20px;
}

/* Grid Styles */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 1px;
    background-color: white;
    border: none;
}

.grid div {
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    background: white;
    text-align: center;
    border: none;
}

/* Grid Link Styles */
.grid a {
    display: inline-block;
    border: 2px solid black;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: green;
    cursor: pointer;
}

/* Link Styles */
.link {
    text-align: center;
    margin-top: 10px;
    font-size: 2em;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%; /* Set a maximum width to ensure responsiveness */
    max-height: 80vh; /* Set a maximum height to fit within viewport */
    width: auto;
    height: auto;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Close Button Styles */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover, .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
