@import url('https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
body {
    background: #fff;
    margin: 0;
    font-family: 'Quicksand', sans-serif;
}

a {
    text-decoration: none;
}

header {
    width:100%;height: 100%; position: relative;
}

#gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 160px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 90%) 100%);
}

.logo {
    width: 85px; height: 85px; background: white; border-radius: 85px; 
    background-image: url(/logo.png);
    background-size: 80px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0px 3px 5px black;
}

#title {
    position: absolute;
    bottom: 40px; 
    left: 30px; 
    height: 85px; 
    color: white; 
    font-family: 'Open Sans Condensed', sans-serif;
}

#title a {
    color: white;
}

#title .logo {
    position: absolute;
    bottom: 0;
    left: 0; 
}

#title h1 {
    margin: 0 0 0 105px;
    line-height: 85px;
    font-size: 24px;
    font-family: "Times New Roman", Times, serif;
}

#title h2 {
    margin: -15px 0 0 165px;
    line-height: 0px;
    font-size: 14px;
}

#fader, .fade-object {
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fade-object {
    display: none;
    background-size: cover;
    background-position: center;
    transition: transform 8s linear;
}

.header {position: relative;}

nav {
    position: absolute;
    bottom: 40px;
    right: 60px;
}

nav a {
    line-height: 85px;
    color: white;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 24px;
    margin-right: 25px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

nav a:hover {
    border-bottom: 1px solid white;
    text-shadow: 0px 2px 4px rgb(31,115,174);
}

nav a:active {
    color: rgb(57,155,52); 
}

#menu_button {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.8);
    z-index: 999;
    padding: 0 10px;
    cursor: pointer;
    border-bottom-right-radius: 3px;
}

#menu_button .menu1, #menu_button .menu2, #menu_button .menu3 {
    width: 40px;
    height: 5px;
    background-color: white;
    margin: 11px 0;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.x .menu1 {
	-webkit-transform: rotate(-45deg) translate(-15px, 10px) ;
	    transform: rotate(-45deg) translate(-15px, 10px) ;}
.x .menu2 {opacity: 0;}
.x .menu3 { -webkit-transform: rotate(45deg) translate(-12px, -7px) ;
	    transform: rotate(45deg) translate(-12px, -7px) ;}

@media (min-width: 1001px) {
    nav {
        left: auto !important;
    }
}

@media (max-width: 1000px) {
    #menu_button {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: -167px;
        background: rgba(0,0,0,0.9);
        z-index: 998;
        width: 167px;
        height: calc(100% - 120px);
        overflow: auto;
        padding: 60px 0;
    }

    nav a {
        display: block;
        padding: 0 2vw;
        margin: 0;
    }
}

main {
    position: relative;
    background: rgba(255,255,255,0.85);
}

main a {
    color: rgb(57,155,52);
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 24px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

main a:hover {
    border-bottom: 1px solid rgb(57,155,52);
    text-shadow: 0px 2px 4px rgb(31,115,174);
}

form {
    padding: 20px 30px;
}

input[type=text], input[type=email], textarea {
    padding: 5px;
    width: 100%;
}

input[type=submit] {
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 20px;
    transition: all 0.4s ease;
    padding: 10px 30px;
    margin: 4px;
    background: white;
    border-radius: 15px;
    border: 1px solid rgb(57,155,52);
    cursor: pointer;
}

input[type=submit]:hover {
    color: white;
    background: linear-gradient(rgb(57,155,52), rgb(31,115,174));
}

.flex {
    display: flex;
    flex-direction: row; /* column on mobile */
    max-width: 900px;
    margin: 0 auto;
}

.flex > div {
    width: 50%;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

@media (max-width: 1000px) {
    .flex {
        flex-direction: column;
    }

    .flex > div {
        width: 100%;
        padding: 10px 0;
    }

    main .flex > div {
        min-height: 30vh;
    }
  }

.flex h1 {
    margin: 0;
    padding: 0 30px;
}

.flex p {
    padding: 0 30px;
    text-align: justify;
}

section {
    padding: 1px;
    max-width: 900px;
    margin: 0 auto;
}

.submenu {
    text-align: center;
}

.submenu a {
    color: initial;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 20px;
    transition: all 0.4s ease;
    padding: 18px 30px;
    margin: 4px;
    background: white;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid rgb(57,155,52);
}

.submenu a:hover, .submenu .active {
    color: white;
    background: linear-gradient(rgb(57,155,52), rgb(31,115,174));
}

.gallery .flex img {
    width: calc(100% - 8px);
}


.gallery ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  margin: 0 0 40px;
  padding: 0;
}

.gallery li {
  height: 40vh;
  flex-grow: 1;
}

.gallery li:last-child {
  flex-grow: 10;
}

.gallery img {
  max-height: 100%;
  min-width: calc(100% - 8px);
  object-fit: cover;
  vertical-align: bottom;
  border: 4px solid white;
}


@media (max-aspect-ratio: 1/1) {
  .gallery li {
    height: 30vh;
  }
}

@media (max-height: 480px) {
  .gallery li {
    height: 80vh;
  }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .gallery ul {
    flex-direction: row;
  }

  .gallery li {
    height: auto;
    width: 100%;
  }
  .gallery img {
    width: calc(100% - 8px);
    max-height: 75vh;
    min-width: 0;
  }
}

footer {
    position: relative;
    background: rgba(95, 73, 73, 0.7);
    padding: 1px;
    color: white;
}

footer a {
    color: white;
    font-family: 'Open Sans Condensed', sans-serif;
    font-size: 24px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    border-bottom: 1px solid white;
    text-shadow: 0px 2px 4px rgb(31,115,174);
}

footer .company {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
}

footer .copy {
    font-size: 12px;
    text-align: center;
}

footer .copy a {
    font-size: inherit;
    letter-spacing: 3px;
}

.fb-container {
    height: 40px;
    width: 386px;
    position: fixed;
    right: -346px;
    top: 0px;
    text-align: right;
    background: url("/fb-icon.png") no-repeat left top;
    cursor: pointer;
}

.fb-content {
    padding: 5px;
    margin-left: 40px;
    background: rgba(0,0,0,0.5);
}