@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */

@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */

@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */

@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html, body, #main {
   margin: 0;
   padding: 0;
 }

body {
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   box-sizing: border-box;
   padding: 22px 10px 10px;
  background-color: black;
  font: normal 16px/150% 'Open Sans', sans-serif;
}


h1 {
  font: bold 24px/30px 'Open Sans', sans-serif;
  margin: 15px 10px 0;
}

h2 {
  font: bold 18px/19px 'Open Sans', sans-serif;
  margin: 15px 10px 5px;
  text-align: center;
}

p {
  font: normal 14px/21px 'Open Sans', sans-serif;
  margin: 0 0 15px;
  text-align: center;
}

a:link, a:visited, a:active {
  text-decoration: none;
  color: #000;
}

iframe {
  border: none;
  margin: 0 auto 5px;
}

.fit, .fit2, .fit3 {
  display: block;
  margin: 0 auto 20px;
  height: auto;
  max-width: 100%;
}

.fit {
  width: 100%;
}

.fit3 {
  background: url(../images/main/canvaspat.jpg);
  padding: 5px;
}


.framecover {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #f00;
}

/* Styles the thumbnail */

.ithumb {
  width: 200px;
  height: 200px;
  background-color: #eef3ff;
  border: 1px solid #aad;
  box-sizing: border-box;
  padding: 5px;
  margin: 5px;
  box-shadow: 0px 3px 4px rgba(50, 50, 100, .6);
}

.ithumb:hover {
  width: 202px;
  height: 202px;
  margin: 4px;
  background-color: #ffffff;
  box-shadow: 0px 6px 7px rgba(50, 50, 100, .6);
}

a.ithumb img {
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 800px;
}

#main {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  max-width: 1300px;
  height: auto;
  text-align: center;
  border: 4px solid #049;
  box-sizing: border-box;
  background-color: #bcf;
  background: -webkit-linear-gradient(rgba(136, 170, 255, 0.45), rgba(204, 221, 255, 0.45)), url(../images/main/canvaspat.jpg);
  /*Safari*/
  background: -o-linear-gradient(rgba(136, 170, 255, 0.45), rgba(204, 221, 255, 0.45)), url(../images/main/canvaspat.jpg);
  /*Opera*/
  background: -moz-linear-gradient(rgba(136, 170, 255, 0.45), rgba(204, 221, 255, 0.45)), url(../images/main/canvaspat.jpg);
  /*Firefox*/
  background-image: linear-gradient(rgba(136, 170, 255, 0.45), rgba(204, 221, 255, 0.45)), url(../images/main/canvaspat.jpg);
  background-position: center, center;
  -webkit-animation: fadein 2s;
  /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 2s;
  /* Firefox < 16 */
  -ms-animation: fadein 2s;
  /* Internet Explorer */
  -o-animation: fadein 2s;
  /* Opera < 12.1 */
  animation: fadein 1s;
}

.mainhead {
  width: 100%;
  height: auto;
  margin-bottom: 3px;
  padding: 0px;
  background-color: #049;
  background: -webkit-linear-gradient(#06b, #038);
  /*Safari*/
  background: -o-linear-gradient(#06b, #038);
  /*Opera*/
  background: -moz-linear-gradient(#06b, #038);
  /*Firefox*/
  background: linear-gradient(#06b, #038);
}

.mainhead img {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0px;
  margin-top: -20px;
}

.crumbbox {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.crumb, .crumbl, .crumblast, .crumblastl {
  width: auto;
  height: 25px;
  margin: 5px;
  background-color: #ffcc00;
  padding: 3px 8px 3px 15px;
  box-sizing: border-box;
  border-radius: 15px 0 0 15px;
  font: normal 16px/16px 'Open Sans', sans-serif;
  box-shadow: 0px 4px 4px rgba(50, 50, 100, .6);
}

.crumblast, .crumblastl {
  padding: 3px 15px;
  border-radius: 15px;
}

.crumbl:hover, .crumblastl:hover {
  background-color: #fff;
  cursor: pointer;
}

.crumb p, .crumbl p, .crumblast p, .crumblastl p {
  font: normal 16px/16px 'Open Sans', sans-serif;
  margin: 2px 0 0 0;
}

.arrow-right {
  float: left;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 13px solid #049;
  box-sizing: border-box;
  margin-left: -5px;
}

.mainimg, .boximg {
  background-color: #eef3ff;
  border: 1px solid #aad;
  box-sizing: border-box;
  padding: 5px;
  box-shadow: 0px 4px 4px rgba(50, 50, 100, .6);
}

.mainimg:hover, .boximg:hover {
  background-color: #fff;
}

.mainimg {
  width: 100%;
  height: auto;
  margin: 5px 20px;
}

.boximg {
  width: 200px;
  height: 200px;
  margin: 5px;
}

.boximg2 {
  width: 300px;
  height: 300px;
  margin: 15px 5px 0px;
}

.boximg img, .mainimg img {
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 800px;
}

.boximg2 img, .mainimg2 img {
  width: 100%;
  max-width: 800px;
  height: 100%;
  max-height: 800px;
}

.maintext {
  width: 100%;
  height: auto;
  margin: 15px 20px;
  text-align: left;
}

.maintext2 {
  width: 100%;
  height: auto;
  margin: 0px 0px 15px;
  text-align: center;
}

.maintext2 p {
  margin: 15px 25px 0;
}

.fsize {
  max-width: 100%;
  height: auto;
}

.footer {
  width: 100%;
  height: 20px;
  margin-top: 20px;
  padding: 0px;
  background-color: #06b;
  color: #fff;
}

.footer p {
  font: normal 10px/10px 'Open Sans', sans-serif;
  margin: 5px 0 0 0;
}

sup, sub {
  vertical-align: baseline;
  position: relative;
  top: -0.2em;
  font-weight: normal;
}

sub {
  top: 0.4em;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: portrait) {
  .mainhead img {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0px;
    margin-top: -10px;
  }
  iframe {
    zoom: 0.9;
    -webkit-transform: scale(0.9);
    -webkit-transform-origin: 20% 0;
    -moz-transform: scale(0.9);
    -moz-transform-origin: 20% 0;
    transform: scale(0.9);
    transform-origin: 20% 0;
  }
}

@media only screen and (min-device-width: 375px) and (max-device-width: 667px) and (orientation: portrait) {
  .mainhead img {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0px;
    margin-top: -10px;
  }
  iframe {
    zoom: 0.9;
    -webkit-transform: scale(0.9);
    -webkit-transform-origin: 20% 0;
  }
}
