:root {
    --seablue: rgb(146, 203, 206);
    --darkblue: rgb(49, 52, 61);
    --bgColor: #eeeef7;
}

body {
    box-sizing: border-box;
    margin: 0;
    background-color: var(--bgColor);
    color: var(--darkblue);
    font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}

header {
    background-color: var(--darkblue);
    height: 150px;
    width: 100%;
}

h3 {
    padding-bottom: 3px;
    border-bottom: 3px solid var(--seablue);
}

section {
    display: flex;
    flex-direction: row;
}

.topnav a {
    float: left;
    color: var(--seablue);
    text-align: center;
    padding: 10px 10px;
    text-decoration: none;
}

.topnav a h1 {
    background-color: var(--seablue);
    color: var(--darkblue);
    position: relative;
    margin: 0 -30px;
    padding: 0.25rem 10px;
    padding-left: 75;
    top: 22px;
    left: 20px;
    font-size: 44px;
}

.name:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    background: var(--seablue);
}

.botnav a {
    float: left;
    color: var(--darkblue);
    text-align: center;
    padding: 10px 34px;
    text-decoration: none;
}

.botnav a h1 {
    background-color: var(--seablue);
    color: var(--darkblue);
    position: relative;
    margin: 0 -30px;
    padding: 0.25rem 10px;
    padding-left: 75;
    top: 10px;
    left: 20px;
    font-size: 44px;
}

.botnav h3 {
    border-bottom: 3px solid var(--darkblue);
}

.topimg {
    position: relative;
    margin: 0;
    top: -16px;
    width: 100%;
}

.imgtext {
    position: absolute;
    z-index: 999;
    margin: 0 auto;
    left: auto;
    right: 55px;
    top: 40%;
    background: var(--seablue);
    color: var(--darkblue);
    font-size: 50px;
}

.mainheadings {
    font-size: 50px;
    color: var(--darkblue);
    text-align: end;
    padding-left: 200px;
    padding-right: 20px;
    margin-top: 0;
    width: 10%;
}

.border {
    border-left: 5px solid var(--darkblue);
    padding-left: 35px;
    width: 60%;
    font-size: 22px;
    display: flex;
    flex-wrap: wrap;
}

.border li {
    list-style-type: none;
}

.surfOverlay {
    background-color: solid var(--seablue);
    opacity: 1;
    width: 100%;
    height: 400px;
}

.surfOverlay:hover {
    opacity: 0.7;
}

.overlay {
    background-color: solid var(--seablue);
    opacity: 1;
    width: 100%;
    height: 225px;
}

.overlay:hover {
    opacity: 0.7;
}

.surf-box {
    margin: 4;
    border: 6px solid var(--seablue);
    height: 400px;
    position: absolute;
    flex: 0 0 96%;
    width: 200px;
}

.image-box {
    margin: 4;
    border: 6px solid var(--seablue);
    height: 225px;
    position: absolute;
    flex: 0 0 47%;
    width: 449px;
}

.image-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    border: 4px solid var(--seablue);
    background-color: var(--seablue);
}

.image-label p {
    font-size: 12px;
}

/* -----   IDs   ----- */

#imglay {
    display: flex;
    flex-wrap: wrap;
}

#topnav-right {
    float: right;
    margin-right: 50px;
    font-size: 20px;
    color: var(--darkblue);
    text-align: center;
    padding: 10px 10px;
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    border-bottom: 3px solid var(--darkblue);
}

#contactme {
    padding-right: 20px;
    align-items: center;
}

#imglay li {
    position: relative;
    flex-wrap: wrap;
    flex-direction: row;
}

/*   ----- MEDIA QUERY -----   */
@media only screen and (max-width: 768px) {
    body {
        align-items: center;
    }
    section {
        display: flex;
        flex-direction: column;
        padding-left: 100;
    }

    .name:after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 100%;
        background: var(--seablue);
    }

    .surf-box {
        margin: 4;
        border: 6px solid var(--seablue);
        height: 225px;
        position: absolute;
        flex: 0 0 100%;
        width: 200px;
    }
    .surfOverlay {
        background-color: solid var(--seablue);
        opacity: 1;
        width: 100%;
        height: 225px;
    }
    .image-box {
        margin: 4;
        border: 6px solid var(--seablue);
        height: 225px;
        position: absolute;
        flex: 0 0 100%;
        width: 200px;
    }
    .mainheadings {
        font-size: 50px;
        color: var(--darkblue);
        text-align: center;
        padding-left: 100px;
        padding-right: 97px;
        margin-top: 0;
        width: 38%;
    }

    .border {
        border-left: 0;
        border-top: 5px solid var(--darkblue);
        padding-left: 35px;
        width: 60%;
        font-size: 22px;
        display: flex;
        flex-wrap: wrap;
    }
}
