@font-face {
	font-family: Byrd-Bold;
	src: url(../webfonts/Byrd-Bold.woff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    height: 100%;
    font-family: 'Bryd-Bold', bold;
    font-size: 1rem;
    background:  #000;
}

#container {
    display: flex;
    width: 100%;
    
}

#first {
    width: 100%;
    height: 100%;
    margin-left: 10px;
    margin-right: 10px;
}


.grid-container {
		background:#000;
		padding: 1em;
		margin:0 auto;
		height: auto;
		width: calc(100vw - 60px);
		max-width: 772px;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
		gap: 1em 1em;
		grid-auto-flow: row;
		justify-content: stretch;
		align-content: stretch;
		justify-items: center;
		align-items: center;
	   grid-template-areas: "button1 button2 button3 button4"
                         "button5 button6 button7 button8"
                         "button9 button10 button11 button12"
								 "button13 button14 button15 button16";
		 grid-gap: 20px;
}

@media screen and (max-width: 799px) and (orientation: portrait) {
	.grid-container {
			background: #000;
		padding: 1em;
		margin: 0 auto;
		height: auto;
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
		gap: 1em 1em;
		grid-auto-flow: row;
		justify-content: stretch;
		align-content: stretch;
		justify-items: center;
		align-items: center;	
		
		grid-template-areas:
"button1 button2"
"button3 button4"
"button5 button6"
"button7 button8"
"button9 button10"
"button11 button12"
"button13 button14"
"button15 button16" !important;
	}
	
}
.small_btn {
    width: 175px;
    height: 175px;
    
}

.big_btn {
    width: 175px;
    height: 175px;
}

button.button-4,
button.button-4:before,
button.button-4:after {
  box-sizing: border-box;
}


button.button-4 {
  touch-action: manipulation;
  position: relative;
  background: transparent;
  border: none;
  outline: none;
  display: block;
  height: 175px;
  width: 175px;
  padding: 10px;
  font-size: 20px;
  line-height: 20px;
  font-weight: 100;
  text-transform: uppercase;
  margin: 0 auto;
  border-radius: 10px;
  top: 0;
  -webkit-transition: 0.15s ease-in-out;
  -moz-transition: 0.15s ease-in-out;
  -ms-transition: 0.15s ease-in-out;
  -o-transition: 0.15s ease-in-out;
  transition: 0.15s ease-in-out;
}

button.button-4 {
  touch-action: manipulation;
  -webkit-transform: perspective(400px) ;
}

button.button-4:before {
  content: "";
  display: block;
  position: absolute;
  z-index: 1;
  background: #181A18 ;
  /* Old browsers */
  background: -moz-linear-gradient(top, #181A18  0%, #181A18  100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #181A18 ), color-stop(100%, #181A18 ));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #181A18  0%, #181A18  100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #181A18  0%, #181A18  100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #181A18  0%, #181A18  100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #181A18  0%, #181A18  100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#181A18 ", endColorstr="#181A18 ",GradientType=0 );
  /* IE6-9 */
  top: 0;
  left: 0;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-shadow: inset 0 -2px 5px rgba(255, 255, 255, 0.3);
}

button.button-4:after {
  content: "";
  display: block;
  position: absolute;
  bottom: -10px;
  left: 1px;
  height: 15px;
  width: 173px;
  background: #b2b4b2;
  /* Old browsers */
  background: -moz-linear-gradient(top, #b2b4b2 0%, #211a21 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b2b4b2), color-stop(100%, #211a21));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #b2b4b2 0%, #211a21 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #b2b4b2 0%, #211a21 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, #b2b4b2 0%, #211a21 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, #b2b4b2 0%, #211a21 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#b2b4b2", endColorstr="#211a21",GradientType=0 );
  /* IE6-9 */
  border-radius: 0 0 5px 5px;
  -webkit-transform: perspective(500px) rotateX(-40deg);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.5), 0 3px 2px -1px black;
  -webkit-transition: 0.15s ease-in-out;
  -moz-transition: 0.15s ease-in-out;
  -ms-transition: 0.15s ease-in-out;
  -o-transition: 0.15s ease-in-out;
  transition: 0.15s ease-in-out;
}

button.button-4:hover {
  top: -3px;
}

button.button-4:hover:after {
  height: 18.5px;
  bottom: -13px;
}

button.button-4:active {
  top: 0px;
}

button.button-4:active:after {
  height: 15px;
  bottom: -10px;
}

button.button-4 .text {
  position: relative;
  z-index: 2;
  font-family: Byrd-Bold;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}



.grid-item:nth-child(1) {
    grid-area: button1;
}

.grid-item:nth-child(2) {
    grid-area: button2;
}

.grid-item:nth-child(3) {
    grid-area: button3;
}

.grid-item:nth-child(4) {
    grid-area: button4;
}

.grid-item:nth-child(5) {
    grid-area: button5;
}
.grid-item:nth-child(6) {
    grid-area: button6;
}
.grid-item:nth-child(7) {
    grid-area: button7;
}
.grid-item:nth-child(8) {
    grid-area: button8;
}
.grid-item:nth-child(9) {
    grid-area: button9;
}
.grid-item:nth-child(10) {
    grid-area: button10;
}
.grid-item:nth-child(11) {
    grid-area: button11;
}
.grid-item:nth-child(12) {
    grid-area: button12;
}
.grid-item:nth-child(13) {
    grid-area: button13;
}
.grid-item:nth-child(14) {
    grid-area: button14;
}
.grid-item:nth-child(15) {
    grid-area: button15;
}
.grid-item:nth-child(16) {
    grid-area: button16;
}

h1, h2 {
  text-align: center;
      color: #ffffff;
      font-family: Byrd-Bold;
      margin-top: 20px;

}

#second {
    width: 100%;
    height: 100%;
    margin-left: 10px;
    margin-right: 10px;
}

.grid-nav {
		background:#000;
		padding: 1em;
		margin:0 auto;
		height: auto;
		width: calc(100vw - 60px);
		max-width: 772px;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
		gap: 1em 1em;
		grid-auto-flow: row;
		justify-content: stretch;
		align-content: stretch;
		justify-items: center;
		align-items: center;
	   grid-template-areas: "button1 button2 button3 button4"
                         "button5 button6 button7 button8";
		 grid-gap: 20px;
}

article {
  display: grid;
  align-content: below;
  font-family: Byrd-Bold;
  color: #ffffff;
  gap: 1rem;
  grid-column: span 4;
  		width: calc(100vw - 60px);
		max-width: 772px;
		margin: 0 auto;
		font-size: 20px;

}

.accordion {
  		width: calc(100vw - 60px);
		max-width: 772px;
  margin: 0 auto;
  font-family: Byrd-Bold;
  color: #ffffff;
}

.accordion .container {
  position: relative;
  margin: 10px 10px;
}

/* Positions the labels relative to the .container. Adds padding to the top and bottom and increases font size. Also makes its cursor a pointer */

.accordion .label {
  position: relative;
  padding: 10px 0;
  font-size: 20px;
  color: #ffffff;
  cursor: pointer;
}


/* Positions the plus sign 5px from the right. Centers it using the transform property. */

.accordion .label::before {
  content: '+';
  color: #ffffff;
  position: absolute;
  top: 50%;
  right: -5px;
  font-size: 20px;
  transform: translateY(-50%);
}

/* Hides the content (height: 0), decreases font size, justifies text and adds transition */
.accordion .content {
  position: relative;
  height: 0;
  font-size: 20px;
  text-align: left;
  		width: calc(100vw - 60px);
		max-width: 772px;
  overflow: hidden;
  transition: 0.5s;
}

/* Adds a horizontal line between the contents */

.accordion hr {
  		width: calc(100vw - 60px);
		max-width: 772px;
  margin-left: 0;
  border: 1px solid grey;
}

/* Unhides the content part when active. Sets the height */

.accordion .container.active .content {
  height: auto;
}

/* Changes from plus sign to negative sign once active */

.accordion .container.active .label::before {
  content: '-';
  font-size: 20px;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ul {
  list-style: none;
}

/* Responsive image gallery rules begin*/

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.image-gallery > li {
  flex-basis: 350px; /*width: 350px;*/
  position: relative;
  cursor: pointer;
}

.image-gallery::after {
  content: "";
  flex-basis: 350px;
}

.image-gallery li img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-radius: 5px;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(57, 57, 57, 0.4);
  top: 0;
  left: 0;
  transform: scale(0);
  transition: all 0.2s 0.1s ease-in-out;
  color: #fff;
  border-radius: 5px;
  /* center overlay text */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* hover */
.image-gallery li:hover .overlay {
  transform: scale(1);
}






@media screen and (max-width: 799px) and (orientation: portrait) {
	.grid-nav {
			background: #000;
		padding: 1em;
		margin: 0 auto;
		height: auto;
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr 1fr 1fr 1fr;
		gap: 1em 1em;
		grid-auto-flow: row;
		justify-content: stretch;
		align-content: stretch;
		justify-items: center;
		align-items: center;	
		
		grid-template-areas:
"button1 button2"
"button3 button4"
"button5 button6"
"button7 button8" !important;
	}

