@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');


p {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
}

body {
  color: black;
  background: seashell;
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

h1,
h2 {
  color: #ddcedb;
  font-family: sans-serif;
  text-shadow: 0px 5px 8px rgba(218, 176, 220, 0.5);
  margin: 0;

}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline;



}

.main-nav {
  background-color: rgb(84, 4, 108);
  color: white;
  padding: 40px;
  position: fixed;
  width: 100%;
  top:0;
  z-index:999;


}

.dropdown {
  display: none;
  position: absolute;
  left: 250px;
  padding-top:20px;
}
.dropdown li{

  display:block;
  width: 200;
  background:black;
  border-top: 1px solid white;
  padding:10px;
}

.dropdown-link:hover .dropdown {
  display: block;

}
.dropdown-link::after {

  content: "+";
  color: yellow;
  font-weight: bold;
}

.main-header {
  background-image: url(images/41586_2016_Article_BF540500a_Figi_HTML.jpeg);
  background-size: cover;
  background-position: 0px -150px;
  background-repeat: repeat-x;
  padding: 80px;
  text-align: center;
  padding-top: 138px;

}

.main-content {
  background-color: #fff;
  border-width: 2px;
  border-style: solid;
  border-color: #666;
  border-radius: 20px;
  box-shadow: 0px 5px 8px rgba(0, 0, 0, .5);
  width: 600px;
  margin: 100px auto;
  padding: 25px 50px;
  text-align: left;



}

.main-nav a {
  color: white;
  margin-right: 20px;
}
.main-nav a:hover{
   color: purple !important;
   text-decoration: underline;

}
.main-nav a:visited {
  color:#666;

}

.active {
  color: yellow !important;
  text-decoration: none;
}
.button {
  background-color:grey;
  color:white;
  font-size: 24px;
  padding:20px;
  margin-top:40px;
  display:block;
  text-align: center;
  width: 300px;
  margin-left: auto;
  margin-right: auto;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
  border-bottom:10px solid black;
  transform: translateY(0px);
  transition-property: all;
  transition-duration: 300ms;
  opacity: .5;
  animation-name: moving-button;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: reverse;


}
.button:hover {
  background-color: red;
  color:black;
  opacity:1;
  
}
.button:active {

  background:green;
  color:white;
  transform: translateY(10px);
  border-bottom:0px solid;
}
.main-content img {
  width:50%;
  margin-right:auto;
  margin-left:auto;
  display: block;
  margin-bottom:30px


}
.main-content img:last-child {
  margin-bottom:0;
}
.main-content img:first-child {
  display:none;
}
.main-content img:nth-child(3) {
  width:100%;
}

.main-header h1 {

  animation-name: popinheader; 
  animation-duration: 1s;
  

}

.main-header h2 {

  animation-name: popinheader; 
  animation-duration: 1s;
  animation-delay: 1s;
  opacity: 0;
  transform: translateY(50px);
  animation-fill-mode:forwards;
}



@keyframes popinheader {

  from {opacity:0; transform:translateY(50px); }
  to {opacity: 1; transform:translate(0px); }

}

@keyframes moving-button {
  0% {transform:translateX(0); background-color: #666; width:300px;}
  25% {transform:translateX(-200px); background-color: #ce1818;width:400px;}
  50% {transform:translateX(0);  background-color: #3010bd; width:300px; }
  75% {transform:translateX(200px);  background-color: #7db72b; width:400px;}
  100% {transform:translateX(0);  background-color: #e42f0b; width:300px;}



}