body {
    font-size: 1.2rem;
    font-family: sans-serif;
    margin: 0;
    padding:2rem;
    background-color:#114c2a;
}

main {
    background-color: #C9E4C5;
    color: #000060;
    padding: 2rem;
}

header, footer {
    background-color:#114c2a ;
    color: #C9E4C5;
}

/* Note: opacity is just one way of handling the visiblilty of the link. We would not want to use a technique like display:none as this would remove the link from the keyboard focus order */

.skipLink {
    color: #C9E4C5;
    opacity: 0;
}

.skipLink:focus {
    opacity: 1;
}

.navContainer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 40%;
}

.desktopNavigation {
    display: none;
}
    
.hamburgerBtn {
    display: flex;
    flex-direction: column;
    background-color: #C9E4C5;
    border: 2px solid #114c2a;
    border-radius: 5px;
    padding: 4px;
}
    
.mobileNavigation {
    display: none;
    line-height: 1.6;
}

.navText {
    align-self: center;
}

.showMobileNavigation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    margin-top:0.5rem;
}

.mobileNavContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


.hamburgerBar {
    width: 35px;
    height: 5px;
    margin: 3px;
    background-color:#114c2a;
}

nav a {
    color:#C9E4C5;
    text-underline-offset: 0.3rem;
}

nav a[aria-current="page"]{
    text-decoration: underline #C9E4C5 0.3rem;
    text-underline-offset: 0.3rem;
}

.linkStyleButton {
    color: #C9E4C5;
    background-color: transparent;
    border: none;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    font-size: 1.2rem;
}

.subMenu {
    z-index: 1;
}

.hideSubMenu {
    display: none;
}

.showSubMenu {
    position: absolute;
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
    color:#114c2a;
    background-color: #C9E4C5;
    border-radius: 5px;
    box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

.hideMobileSubMenu {
    display: none;
}

.showMobileSubMenu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    list-style: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
    color: #C9E4C5;
}

.mobileSubMenuContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.arrowDown {
    border: solid #C9E4C5;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    margin-left: 0.5rem;
    height: 0.25rem;
    width:0.25rem;
}
   
.arrowUp {
    border: solid #C9E4C5;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(225deg);
    margin-left: 0.5rem;
    height: 0.25rem;
    width:0.25rem;
    margin-bottom: -0.3rem;
}

.showSubMenu a {
    color: #114c2a;
    margin-bottom: 0.5rem;
}

.showSubMenu li {
    margin-bottom: 0.5rem;
}


footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
}

h2, legend {
    font-size: 2rem;
    font-weight: bold;
}

h2 {
    margin-bottom: 0;
}

/* Tablist styles */

.tabpanelVisible {
    display: flex;
    flex-direction: column;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid #114c2a;
    border-radius: 0 10px 10px 10px;
}

.tabpanelHidden {
    display: none;
}

[role="tab"][aria-selected="true"]{
    border-bottom: 5px solid #114c2a;
}

.tab {
    background-color: white;
    padding: 0.5rem;
    border: 1px solid #114c2a;
    border-radius: 5px 5px 0 0;
    color: #000060;
    font-size: 1rem;
}

/* Gallery styles */

.gallery-header {
    height:50rem;
}

.hero-image {
    margin-top: 1rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./assets/dock_on_lake.jpg");
    height: 90%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(255,255,255,0.6);
padding: 1rem;
color: #114c2a;
}
  
.gallery-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.gallery-container img {
    max-width: 24rem;
    height: 15rem;
    margin-bottom: 2rem;
}

.css-bg-img {
    width: 16.6rem;
    height: 25rem;
    background-image: url(./assets/girl_with_binoculars.jpg); 
    background-size: contain;
}

.instagram-logo, .twitter-logo {
    height: 3rem;
    width: 3rem;
}

/* Table styles */

table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #000060;
    min-width: 580px;
}

tbody td {
    text-align: center;
}

td, tr, th {
    border: 2px solid #000060;
    padding: 0.5rem;
    background-color: #C9E4C5;
}

th {
    background-color: #114c2a;
    color: #C9E4C5;
}

caption {
    margin-bottom: 1rem;
}

.second-table {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

@media screen and (min-width: 600px)  {
    .desktopNavigation {
        display: flex;
        justify-content: space-between;
        width: 40%;
    }
    .hamburgerBtn {
        display: none;
    }

    .mobileNavigation {
        display: none;
    }

    .gallery-container img {
        max-width: 34rem;
        height: 25rem;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 850px)  {
    .desktopNavigation {
        width: 60%;
    }
}

@media screen and (max-width: 480px)  {
    body {
        padding: 2rem 0.5rem;
    }

    h2, legend {
        font-size:1.5rem;
    }

    label {
        margin-top: 0.5rem;
    }

    .gallery-container img {
        max-width: 15rem;
        height: 12rem;
        margin-bottom: 2rem;
    }
}