body {
    margin: 0;
    padding: 0;
    background-color: #001f3f;
    justify-self: center;
}

#head-logo {
    background-color: #7fdbff;
    border-radius: 50px 50px 0 0;
    width: 1250px;
    height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;  /* 3 equal columns */
    grid-template-rows: 1fr auto;         /* text row + nav row */
    padding: 0 20px;
    box-sizing: border-box;
    align-items: center;
    margin: 0 auto;
}

#head-logo h1 {
    grid-column: 2 / 3;       /* center column */
    grid-row: 1 / 2;
    text-align: center;
    font-size: 100px;
    margin: 0;
}

.logo {
    grid-column: 3 / 4;       /* right column */
    grid-row: 1 / 2;
    height: 195px;
    width: 400px;
    justify-self: end;        /* pushes image to the right edge */
}

nav {
    grid-column: 1 / 4;       /* spans all 3 columns */
    grid-row: 2 / 3;
    margin-bottom: 10px;
    border-top: 2px solid #001f3f;
    padding-top: 10px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-right: 80px;
}

nav ul li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #001f3f;
}

#description1{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    background: #f5f5dc;
    transition: border-color 0.3s, background 0.3s;

}

#description1:hover {
    border-color: rgba(255,209,102,0.3);
    background: rgba(10,22,40,0.6);

}

#description2{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    background:#f5f5dc;
    transition: border-color 0.3s, background 0.3s;

}

#description2:hover {
    border-color: rgba(255,209,102,0.3);
    background: rgba(10,22,40,0.6);

}

#description3{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    background: #f5f5dc;
    transition: border-color 0.3s, background 0.3s;

}

#description3:hover {
    border-color: rgba(255,209,102,0.3);
    background: rgba(10,22,40,0.6);
}

#reef-fact {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
    margin: 30px auto;
    color: black;
    width: 80%;
    height: 200px;
    margin-top: 100px;
    text-align:center;
}

.fisherton { flex: 1; }
.fishery {
    font-family: 'crimson pro', serif;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.crab {
    font-size: 0.75rem;
    line-height: 1.5;
}

#footer {
    display:flex;
    justify-content: left;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1250px;
    background-color: #7fdbff;
    height: 75px;
    border-radius: 0 0 50px 50px;

}

#footer p {
    margin-right: 15px;
    margin-left: 15px;
}

.social {
    display: flex;
    gap: 16px;
}

.social a img {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.social a:hover img {
    opacity: 1;
}

@media (max-width: 700px) {
    .imagegrid {
        grid-template-columns: repeat(2, 1fr);
    }

    #container-page {
        border-radius: 30px;
    }

    #mainpage {
        padding: 0 20px;
    }

    #footer {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        text-align: center;
    }
}


