* {
    box-sizing: border-box;
}

html {
    font-family: "Sen";
    font-weight: 100;
    font-style: normal;
    font-size: 16px;
}

@font-face {
    font-family: "X Typewriter";
    src: url("https://db.onlinewebfonts.com/t/b31f0099c2a4a2aa08671b5fa909ffc7.eot");
    src: url("https://db.onlinewebfonts.com/t/b31f0099c2a4a2aa08671b5fa909ffc7.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/b31f0099c2a4a2aa08671b5fa909ffc7.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/b31f0099c2a4a2aa08671b5fa909ffc7.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/b31f0099c2a4a2aa08671b5fa909ffc7.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/b31f0099c2a4a2aa08671b5fa909ffc7.svg#X Typewriter")format("svg");
}

@font-face {
    font-family: "FinkHeavy";
    src: url("https://db.onlinewebfonts.com/t/cd1810fafebbd3df4964112052edf871.eot");
    src: url("https://db.onlinewebfonts.com/t/cd1810fafebbd3df4964112052edf871.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/cd1810fafebbd3df4964112052edf871.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/cd1810fafebbd3df4964112052edf871.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/cd1810fafebbd3df4964112052edf871.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/cd1810fafebbd3df4964112052edf871.svg#FinkHeavy")format("svg");
}

@font-face {
    font-family: "Blairesque Gothic JF";
    src: url("https://db.onlinewebfonts.com/t/cf4a577de9e692400e4d7a8ffe182019.eot");
    src: url("https://db.onlinewebfonts.com/t/cf4a577de9e692400e4d7a8ffe182019.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/cf4a577de9e692400e4d7a8ffe182019.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/cf4a577de9e692400e4d7a8ffe182019.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/cf4a577de9e692400e4d7a8ffe182019.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/cf4a577de9e692400e4d7a8ffe182019.svg#Blairesque Gothic JF")format("svg");
}

body {
    background:#191919;
}

h1 {
    margin-top: 0px;
    margin-bottom: 10px;
    font-family: "X Typewriter";
    font-size: 30px;
    font-weight: normal;
}

h2 {
    margin-top: 0px;
    margin-bottom: 5px;
    font-family: "FinkHeavy";
    font-size: 25px;
    font-weight: lighter;
}

h22 {
    margin-top: 5px;
    font-family: "Blairesque Gothic JF";
    font-size: 20px;
    font-weight: normal;
}

h3 {
    margin-top: 10px;
    margin-bottom: 15px;
    font-family: "Sen";
}

h33 {
    font-size: 1.17em;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: "Sen";
    font-weight: bold;
}

p {
    margin-top: 0px;
    margin-bottom: 5px;
}

a {
    color: #40A19C;
}

a2 {
    color: #dbddcd;
}

a:hover {
    color: #035854;
    text-decoration: underline;
}

ul {
    margin: 0;
}

.flex {
    display: flex;
    height: auto;
}

#container {
    margin: 0 auto;
    width: 1000px;
}

header {
    margin-bottom: 10px;
    height: 150px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header img {
    width: 100%;
    height: 100%;
}

#flexbox {
    background:#dbddcd;
    display: flex;
    flex-flow: row wrap; /*flex-direction is row, flex-wrap is wrap all in one declaration*/
    padding-bottom: 10px;
}

nav {
	font-family: 'Sen';
	font-size:12pt;
	padding: 12px;
    flex: 1 0 auto;
    display: flex;
    flex-flow: column wrap;
    align-items: center;
	}

nav ul {
    list-style:none;
    display:block;
    text-align:center;
    padding-left: 0;
}

nav li {
    display:block;
    text-align:center;
    margin-top: 15px;
}

nav a {
text-align:center;
font-family: "FinkHeavy";
text-decoration:none;
  background: #40A19C;
  color: #191919;
}

nav a:hover {
    text-decoration:none;
	background:#191919;
	color:#40A19C;
}

.button {
  text-align:center;
  padding: 5px 35px;
  margin:5px;
  font-size: 29px;
  display: flex;
  justify-content: center;
  flex: 1 1 0;
}

main {
    padding-right: 15px;
    height: auto;
    position: relative;
    left: 15px;
}

#content {
    flex: 0 0 75%;
}

#title{
    margin-top: 10px;
    padding: 5px 5px;
}

.subtitle {
    margin-top: 10px;
    padding: 5px 5px;
}

.tab {
    margin-top: 10px;
    overflow: hidden;
}

button {
    font-family: "FinkHeavy";
    font-size: 25px;
}

.tab button {
    background-color: #191919;
    float: right;
    border: none;
    outline: none;
  cursor: pointer;
    margin-left: 3px;
    padding: 5px 10px;
    color: #40A19c;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #40A19c;
    color: #fff9e9;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #40A19C;
    color: #fff9e9;
}

/* Style the tab content */
.tabcontent {
    background-color: #40A19C;
    display: none;
    border: none;
    text-align: center;
    height: 255px;
    padding-top: 5px;
    padding-bottom: 2px;
    overflow: auto;
}

.tabcontent img {
    height: 120px;
}

.tabcontent a {
    text-decoration: none;
}

#flexbox2 {
    display: flex;
    margin-bottom: 20px;
    height: 275px;
}

#flexbox2 h2 {
    text-align: center;
}

#cb1, #cb2 {
    margin-right: 5px;
    width: 100%;
}

.contentbox {
    height: 80%;
    padding: 5px 10px 0 10px;
    border-style: dotted;
    border-width:2px;
}

.contentbox2 {
    height: 245px;
    display: inline-flex;
    width: 100%;
    padding: 5px 5px 0 5px;
    border-style: none;
    background-color: #40A19C;
}

.contentbox2 img {
    height: 115px;
}

.scroll {
    height: 100%;
    overflow: auto;
}

#buttoncontainer {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 5px;
    justify-content: space-evenly;
}

footer {
    padding: 5px;
    text-align: center;
    color: #191919;
    background-color: #40A19C;
}

footer > p {
    margin: 0;
    padding: 5px;
    font-size: 16px;
}

footer a {
    color: #dbddcd;
    text-decoration-line: none;
}

#gallerybox {
    flex-direction: row;
}

.gallery {
    display: flex;
}

.gallery a {
    display: inline;
    text-decoration: none;
    text-align: center;
    color:#191919;
    flex: 0 0 33%;
}

.gallery img {
    width: 100%;
}

.gallery img:hover {
    transform: translateY(-5px);
}

#gallerybox2 {
    flex-direction: row;
}

.gallery2 {
    display: flex;
    flex-wrap: wrap;
}

.gallery2 a {
    display: inline;
    text-decoration: none;
    text-align: center;
    margin: 5px;
    margin-bottom: -5px;
    flex: 0 0 30%;
}

.gallery2 img {
    width: 235px;
}

.mobile {
    display: none;
}

/* For mobile */
@media (max-width: 800px) {
    body {
        background-size: cover;
    }
    
    .mobile {
        display: block;
    }

    .mobilehide {
        display: none;
    }

    #container {
        width: 100%;
    }
    
    nav ul {
        display: flex;
        flex-flow: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding-left: 0;
    }

    nav li {margin-left: 0;}
    
    .button {
        text-align:center;
        display: flex;
        flex-wrap: wrap;
        padding: 5px 10px;
        margin: 2px;
        font-size: 18px;
        justify-content: center;
        width: 120px;
    }

    #flexbox,
    .flex {
        flex-direction: column;
    }

    #flexbox2 {
        flex-direction: column;
        height: auto;
    }

    main {
        padding-left: 10px;
        left: 0;
    }

    .contentbox {
        height: 250px;
    }

    #gallerybox {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .gallery {
        display: flex;
        flex-wrap: wrap;
    }
    
    .gallery a {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery img {
        width: 100px;
        height: 100px;
        margin: auto;
    }
    
    #gallerybox2 {
        display: flex;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .gallery2 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    
    .gallery2 a {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery2 img {
        width: 300px;
        height: auto;
        margin: auto;
    }