/*Website Set-Up*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', 'Arial', sans-serif;
}

html {
    background-color: floralwhite;
    color: black;
}

/*Top Bar Navigation and Logo*/
.header {
    text-align: center;
    width: 100%;
    height: auto;
    min-height: 250px;
    background-image: url(../assets/CSS50A_headerimage.png);
    background-size: cover;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    padding: 25px;
}

nav {
    text-decoration: none;
    background: #073200;
    top: 0;
    width: 100vw;
    padding: 0;
    text-align: center;
    font-size: 18px;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.navbar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #29741d;
    position: relative;
    width: 100%;
}

.navbar a {
    display: flex;
    align-content: center;
    justify-content: center;
    text-decoration: none;
    height: 40px;
    color: white;
    font-size: 18px;
    padding: 10px;
}

header img {
    height: 100px;
    max-width: 100%;
    margin-left: 20px;
    padding: 0;
}

nav ul li {
  flex: auto;
  list-style-type: none;
}

.dropdownabout{
    position: absolute;
    flex-direction: column;
    top: 50px;
    width: 50%;
    z-index: 10;
}

.dropdownabout li{
    display: none;
    position: relative;
}

.navbar li:hover .dropdownabout > li{
    display: block;
    top: 0;
    background-color: #29741d;
    border-bottom: 1px #073200 solid;
}

.dropdownabout li:hover{
  display: block;
}

/*Header Banner*/
.header h1{
    font-weight: 800;
    font-size: 64px;
    color: #073200;
    margin-bottom: 0;
}

.header p{
    font-size: 30px;
    color: #073200;
    margin-top: 5px;
}

/*Main*/
main {
    display: flex;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 20px;
  }

main p {
    font-size: 14px;
}

.article-specs {
    flex: 33%;
    padding: 10px 0;
    width: 50%;
}

article h2 {
    text-align: center;
    padding: 10px 0 5px 0;
}

article h2 a {
    text-decoration: none;
    color: black;
}

article h2:hover {
    color: #073200;
    text-decoration: underline;
}

article h2 a:hover {
    color: #073200;
}

.article-text {
    text-align: center;
    font-size: 1rem;
    line-height: 1.2rem;
    padding: 10px;
}

#article1image {
    background-image: url(../assets/Img_WhoAreWe.png);
    background-size: cover;
    display: flex;
    justify-content: center;
    flex: 100%;
    height: 200px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

#article1image:hover {
    content: url(../assets/Img_WhoAreWe_hover.png);
    height: 200px;
    width: 300px;
}

#article2image {
    background-image: url(../assets/Img_Camps.png);
    background-size: cover;
    display: flex;
    flex: 100%;
    height: 200px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

#article2image:hover {
    content: url(../assets/Img_Camps_hover.png);
    height: 200px;
    width: 300px;
}

#article3image {
    background-image: url(../assets/Img_Contact.png);
    background-size: cover;
    display: flex;
    flex: 100%;
    height: 200px;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

#article3image:hover {
    content: url(../assets/Img_Contact_hover.png);
    height: 200px;
    width: 300px;
}

.tip {
    position: relative;
}

.tip:before {
  /* initial*/
    visibility: hidden;
  
  /* delay */
    transition-property: visibility;
    transition-delay: 0.5s;
  
  /* text display */
    content: attr(aria-label);

  /* styling */
    padding: 2px 5px;
    background: #073200;
    color: floralwhite;
    border-radius: 3px;
    white-space: wrap;
    font-size: 14px;
    width: 100%;

  /* vertical */
    position: absolute;
    top: 100%;
  
  /* horizontal */
    left: 50%;
    transform: translateX(-50%);
}

/* show tooltip on hover and when it receives focus */
.tip:hover:before,
.tip:focus:before{
    visibility: visible
}


/* FOOTER*/
footer {
    text-align: center;
    padding: 1em;
    background-color: floralwhite;
    color: #073200;
    clear: both;
    width: 100%;
}

caption {
    padding-top: 10px;
}

/* Small devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
        max-width: 98%;
        margin: auto;
    }
    
    main {
        display: flex;
        flex-wrap: wrap;
    }
    
    nav {
        flex-direction: row;
        background: #073200;
        top: 20px;
        width: 100vw;
        text-align: center;
        font-size: 18px;
}
    
    nav ul {
        flex-direction: row;
    }
    
    .dropdownabout{
        flex-wrap:wrap;
        width:100%;
        top: 40px;
    }
    
    body, p, a, h4 {
        font-size: 15px;
    }
    
    aside {
        text-align: center;
    }
}


/* Medium devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
    .header {
        padding: 100px;
        font-size: 84px;
    }
    
    .header p {
        font-size: 36px;
    }
    
    body {   
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
    
    main {
        display: flex;
        flex-wrap: wrap;
    }
    
    h2 a {
       font-size: 24px; 
    }
    
    nav, header {
        order: -1;
    }
    
    nav {
        flex-direction: row;
        top: 0;
        width: auto;
        text-align: center;
        font-size: 18px;
    }
    
    .navbar ul {
        flex-direction: row;
    }
    
    .navbar ul li {
        padding: 0;
        border-bottom: none;
    }
    
    nav a {
        flex: auto;
    }
    
    .navbar a:hover {
        background: floralwhite;
        color: #073200;
        border-radius: 3px;
        border-top: 1px solid #073200;
    }
    
    .article-specs {
        flex: 33%;
        padding: 10px 0;
        width: 50%;
    }
    
    aside, section {
        flex: 100%;
    }
    
    table {
        width: 75%;
        margin-left: auto;
        margin-right: auto;
    }
    
    footer {
        background-color: #073200;
        color: floralwhite;
        width: 100%;
    }
}

