#socialMedia,
#popup {
  position: fixed;
  background-color:var(--darkBlue);
  opacity: 0.98;
  width: 100%;
  height: 100%;
  z-index: 14;
  display: none;
  top: 0;
  left: 0;
  right: 0;
}

#socialMedia #socialList {
  list-style-position: inside !important;
  list-style-type: none;
  padding: 20px 15px;
  width: 80%;
  display: none;
  position: absolute;
  top: 100px;
  right: 10%;
  z-index: 8;
  opacity: 2;
  background-color: #f6de94;
  opacity: 1 !important;
  text-align: center;
  border-radius: 40px 20px 40px 20px;
}

#socialList form {
  flex-direction: column;
  align-items: stretch;
  width:fit-content;
  margin: 0 auto 20px;
}

#socialList button {
 width: 100px;
 align-self: center;
 margin-top: 15px;
}

#socialMedia #closebtn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 5rem;
  margin-left: 50px;
  cursor: pointer;
  color: #f6de94;
  text-decoration: none;
}

#popup #closepopup {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 5rem;
  margin-left: 50px;
  cursor: pointer;
  color: var(--yellow);
  text-decoration: none;
}

#socialList .fab,
#socialMedia .fas {
  padding: 10px;
  font-size: 1.5rem;
  border-radius: 50%;
  background-color: #3e627a;
  box-shadow: 2px 2px 10px #9999;
  color: #f6de94;
}

#showSubscribeForm {
  border-radius: 50%;
  width: 90px;
  padding: 24px 0;
  background-color: #f2cc59;
  outline: none;
  border: 2px solid #3e627a;
  box-shadow: 1px 3px 15px rgba(153, 153, 153, 0.6);
  color: #3e627a;
  font-family: var(--fontNoto);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  position: fixed;
  z-index: 8;
  right: 3%;
  bottom: 3%;
  transition: 2s ease-in-out;
}
.fa-bell {
  display: block;
  padding: 5px;
  transition: transform 4s fade;
  animation: turn-around 4s ease-in-out infinite;
}
@keyframes turn-around {
  0% {
    transform: rotate(-75deg);
  }
  50% {
    transform: rotate(75deg);
  }
  100% {
    transform: rotate(-75deg);
  }
}
#socialList li {
  padding: 5px;
}

#socialList button {
  background-color: #3e627a;

  color: #f6de94;
}

#socialList input {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #3e627a;
  font-size: 16px;
}

#socialList > li:first-child {
  text-transform: capitalize;
  color: #3e627a;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 2;
  font-weight: bold;
  margin-bottom: 20px;
}

#show:hover {
  transform: scale(1.2);
  transition: transform 2s ease;
}

#upDown {
  position: fixed;
  right: 5%;
  top: 50%;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 10px;
  z-index: 2;
}

#upDown .fas {
  background-color: #3e627a;
  border-radius: 20px 40px 20px 40px;
  padding: 5px;
  margin: 5px;
  color: #f2cc59;
  box-shadow: 1px 1px 10px #9999;
  font-size: 1.5rem;
}

#upDown .fas:hover {
  transform: scale(1.4);
  transition: transform 1s ease;
}

#top,
#down {
  display: none;
}

.overlay {
  position: fixed;
  background-color: #bfe9fb99;
  opacity: 0.9;
  width: 100%;
  height: 100%;
  z-index: 4;
  display: none;
  top: 0;
  left: 0;
  right: 0;
}
#popup p {
  position: absolute;
  font-size: 16px;
  background-color: #f2cc59;
  opacity: 2;
  top: 100px;
  left: 10%;
  right: 10%;
  width: 80%;
  text-align: center;
  color: #3e627a;
  padding: 50px 20px;
  border-radius: 40px 20px 40px 20px;
  text-transform: uppercase;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  line-height: 2;
}

#popup p a {
  display: block;
}

input {
  border-radius: 8px;
  font-family: "Open Sans", sans-serif;
  outline: none;
  background-color: var(--lightBlue);
  width: 200px;
  font-size: 16px;
}

input:focus {
  border: 1px solid #6fb7d7;
  outline: none;
}

input[type="submit"],
button {
  color: #3e627a;
  border: 1px solid #3e627a;
  font-size: 16px;
  padding: 12px;
  border-radius: 30px 50px 30px 50px;
  font-weight: bold;
  outline: none;
  box-shadow: 1px 1px 20px #9999;
  margin: 20px 5px;
  cursor: pointer;
  text-transform: capitalize;
  text-align: center;
}

.actionComment {
  text-align: center;
  padding: 10px;
  margin: 20px auto;
  font-family: var(--fontText);
  text-transform: uppercase;
  font-size: 18px;
  color: var(--red);
  width: 100%;
  font-weight: bold;
}

@media screen and (min-width: 767px) {
  #socialList >li:first-child {
    font-size: 20px;
  }

  #socialList form {
    flex-direction: row;
    width: fit-content;
    padding: 0;
    align-items: center;
    margin : 0 auto 20px;
  }
 
  #socialList  form button {
    margin: 0;
  }

  #socialList  form span {
    text-align: left;
    flex-basis: 100%;
    width:0;
    min-width: 100%;
    
  }

  #socialMedia #socialList {
    width: 80%;
    right: 10%;
    padding: 20px 30px;
  }

  #popup p {
    font-size: 1.6rem;
    width: 50%;
    right: 25%;
    left: 25%;
  }
}

@media screen and (min-width: 1024px) {
  #socialMedia #socialList {
    width: 60%;
    right: 20%;
  }

  #popup p {
    font-size: 2rem;
  }

  .actionComment {
    margin-left: 10px;
  }
}
