body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: radial-gradient(circle, rgba(90, 156, 220, 1) 0%, rgba(11, 82, 137, 1) 75%, rgba(11, 82, 137, 1) 100%);
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 20px;
    text-align: center;
    color: white;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Adjusted to have four columns */
    gap: 10px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 20px;
}

.cotd {
    position: fixed;
    padding: 3ch;
    z-index: 8888888;
    background: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    text-align: center;
    border-radius: 20px;
    display: none;
    filter: drop-shadow(3px 3px 17px #000000);
    grid-template-columns: 300px 1fr;
    grid-gap: 2ch;
    align-items: center;

}

.cotd .cotd-info {
    width: 300px;
}

.cotd .cotd-info h3 {
    font-size: 1.5em;
}

.cotd p.description {
    text-align: left;
    font-size: .825em;
    max-height: 285px;
    overflow-y: auto;
}

.cotd.visible {
    display: flex;
}

.cotd img {
    width: 420px;
    border: 1px solid black;
}

button {
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 0 1ch;
}

button.smol {
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 16px;
    padding: 0 18px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 0 1ch;
}

button.realsmol {
  padding: 0 12px;
  line-height: 25px;
}


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

.close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
}
.fish-container {
    text-align: center;
    margin-bottom: 2ch;
    position: relative;
    z-index: 1;
}

.fish-container img {
    width: 100%;
    height: auto;
    cursor: pointer;
    filter: drop-shadow(3px 3px 17px #000000);

}

.fish-container p {
    z-index: 2;
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 0 1ch;
}
#searchInput {
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    font-size: 18px;
    padding: 10px 18px;
    margin: 0 1ch;
    width: 200px; /* Adjust as needed */
}

#searchInput:focus {
    outline: none;
}

/* Adjustments for screens smaller than 600px */
@media only screen and (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 5px;
        padding: 10px;
    }

    .cotd {
        width: 90%;
        max-width: 300px;
        left: 5%;
        top: 10%;
        padding: 1em;
    }

    .cotd img {
        width: 100%;
    }

    .fish-container p {
        font-size: 14px;
        line-height: 25px;
    }

    #searchInput {
        font-size: 14px;
        padding: 8px 14px;
        width: 150px;
    }
}

footer {
    background-color: #001f3f; /* Darker shade of blue */
    color: white; /* Text color */
    padding: 10px; /* Add some padding for better aesthetics */
    text-align: center; /* Center the text */
    margin-top: auto; /* Push the footer to the bottom */
}

footer a {
    color: #8ac6d1; /* Link color */
    text-decoration: none; /* Remove underlines from links */
}

footer a:hover {
    text-decoration: underline; /* Add underline on hover */
}
