@charset "utf-8";
/* CSS Document */

html {
 box-sizing: border-box;
}
*, *:before, *:after {
 box-sizing: inherit; 
}
body {
 margin: auto;
 position: relative;
 margin-top: 60px;
 font-family: "Arial", sans-serif;
 line-height: 1.4;
}
header{
 position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 1rem .25rem;
    max-width: 42rem;
}
header img {
 max-width: 7.5rem;
}
header img.name {
 position: absolute;
 left:49px;
 top:48px;
}
article p {
 margin: 0;
 color:#504f4f;
}
.rotate {
 max-width: 3.5rem;
 transition: transform 0.5s ease;
}
section:hover .rotate {
 transform: scale(1.1) rotate(360deg);
}
article{
 border-top:1px #808080 solid;
 position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    padding: 1rem .25rem;
    max-width: 42rem;
}
article section {
 position: relative;
    flex-basis: calc(18% - 1rem);
    max-width: calc(18% - 1rem);
    min-width: 10rem;
    flex-shrink: 0;
    flex-grow: 1;
    margin: 0.5rem 0;
    padding: 0.5rem 0;
}
article img {
 width: 70%;
}
article img:hover {
 border: .25rem #ea6b44 solid;
}
footer {
	position: relative;
	margin: 3rem 2rem ;
	display: flex;
	flex-direction: column; /* Arrange items in a column */
	align-items: center; 
}
footer a, footer button {
  margin: 0 10px; 
}
footer .links {
  display: flex;
  justify-content: space-between;
  width: 25%; /* Make sure the links stretch across the footer */
}
footer .links a.prev, footer .links a.next {
	 color: gray;
    text-decoration: none;
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
}
footer .links a.prev:hover, footer .links a.next:hover {
	background-color: rgba(86, 86, 86, 0.90); 
}
footer p {
	text-align:center;
	color: rgb(52, 55, 65);
	margin-top: 1rem;
}
/*  box hide start  */
.box {
 height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 position: fixed;
 inset: 0;
 background: rgba(24, 109, 199, 0.6);
}
.box a {
 padding: 0 15px;
 border-radius: 3px;
 text-decoration: none;
}
.content {
 position: relative;
 background: #fff;
 color: #000;
 padding: 3rem;
 border-radius: 1rem;
 margin: auto 30%;
}
.content h2 {
 margin-bottom: .5rem;
 color:#504f4f;
 text-transform: capitalize;
}
.content p {
 font-size: 1.25rem;
 margin-top: 0;
 color:#504f4f;
}
.content a {
 position: absolute;
 top: 0;
 right: 10px;
 color: #000;
 font-size: 3rem;
 text-decoration: none;
 color:#504f4f;
}
@media (max-width: 699px) {
 .hero-image {
  background-color: #BE092F;
 }
 .content {
  margin: auto 3rem;
  padding: 1rem 2rem;
 }
 .content h2, .content p {
    font-size: 1rem;
 }
 .content a {
    font-size: 2rem;
 }
}
/*  end box hide  */
div#animation1, div#animation2, div#animation3 {
 width: 100%;
 background: rgba(0, 0, 0, 0.7);
 padding: 10%;
}
div.video {
 margin: auto;
 width: 80%;
 background: #fff;
 padding: 0;
 background: rgba(0, 0, 0, 0.9);
}
div.video button {
 margin: 1rem 0 1rem 45%;
}
button {
 font-size: 1.25rem;
 margin: 3rem 2rem 2rem;
 padding: .5rem 2rem;
 border-radius: 3.5rem;
 border: 1px black solid;
 background-color: #3c3b3b;
 color: #c5c3c3;
}
button:hover {
 background-color: #595858;
 cursor: pointer;
}
button.thumbnail {
 padding: 0;
 border: none;
 background: none;
 text-align: left;
}
video {
 width:100%;
}

@media only screen and (max-width: 1530px) and (min-width: 760px) {
 body{
  margin-top: 10px;
 }
 div#animation1, div#animation2, div#animation3 {
  height: auto;
 }
 div.video {
  width: 100%;
 }
}
@media (max-width: 760px) {
 body{
  margin-top: 5%;
 }
 article{
  justify-content: space-around;
  max-width: none;
  text-align: center;
  display: block;
 }
 article section {
  min-width: 100%;
 }
 article p {
  font-size:1.5rem;
 }
 header {
  margin-left:21%;
 }
 button.thumbnail {
  text-align: center;
  margin: 0;
 }
 div#animation1 button, div#animation2 button, div#animation3 button {
  margin: 1rem 0;
 }
 div#animation1, div#animation2, div#animation3 {
  height: auto;
  padding: 25% 5% 5%;
 }
 div.video {
  width: 100%;
 }
 button {
  font-size: 2.25rem;  
  padding: .5rem 3rem;
 }
 article:nth-child(4) div {
  margin:auto;
 }
}
@media only screen and (max-width: 760px) and (min-width: 460px) {
 article:nth-child(3), article:nth-child(4) {
  width: 70%;
 }
 header {
  margin-left:34%;
 }
}


@media only screen and (max-width: 1400px) and (min-width: 1072px) {
	button {
		margin: 3% calc(46% - 1rem) 2rem;
	}
}
@media only screen and (max-width: 1071px) and (min-width: 720px) {
	button {
		margin: 3% calc(44% - 1rem) 2rem;
	}
}
@media only screen and (max-width: 719px) and (min-width: 620px) {
	button {
		margin: 5% calc(36% - 1rem) 2rem;
		font-size: 2.25rem;  
		padding: .5rem 3rem;
	}
	footer .links {
		width: 100%; 
	}
	footer .links a.prev, footer .links a.next {
		font-size: 2rem;
	}
}
@media (max-width: 699px) {
	footer .links, footer .links.email {
		width: 100%; 
	}
	footer .links a.prev, footer .links a.next, footer .links.email a.prev, footer.email .links a.next {
		font-size: 2rem;
	}
}	
@media only screen and (max-width: 619px) and (min-width: 480px) {
	button {
		margin: 9% calc(33% - 1rem) 2rem;
		font-size: 2.25rem;  
		padding: .5rem 3rem;
	}
}
@media (max-width: 480px) {
	button {
		font-size: 2.25rem;  
		padding: .5rem 2rem;
	}
	footer button {
		margin: 0% calc(2% - 1rem);
	}
	footer {
		margin: 2rem .5rem;
	}
}
@media (max-width: 350px) {
	footer .links a.prev {
		margin-right: 4%;
	}
}