/*
 Theme Name:     MyCode Theme
 Theme URI:      https://wp.portlanddigital.co.uk/
 Description:    My Development Theme
 Author:         Portland Digital
 Author URI:     https://portlanddigital.co.uk
 Template:       blankslate
 Version:        1.0.0
*/
 
#mycodenav {
  background-color: yellow;
}
.sitelogo {
    height: 50px;
    padding-left: 25px
}
body {
    font-family: 'Arial';
	width: 80%;
	max-width: 1100px;
	margin: auto;
}
#footercontent {
    padding: 1px 2vw 40px;
  background-color: yellow;
	margin: 0 auto;
}
.footertitle {
    text-align: center;
    text-transform: uppercase;
    font-size: 1.8vw;
    font-family: 'Annie Use Your Telescope';
}
a:link {
  color: gray;
}
a:visited {
  color: green;
}
a:hover {
  color: purple;
}
a:active {
  color: teal;
}
#navigation {
  background-color: yellow;
}
p {
  font-size: 120%;
  color: dimgray;
}
ul {
  float: right;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
li {
      float: right;
  margin: 0;
}
li a {
      float: right;
    display: block;
  color: white;
  text-align: center;
   text-transform: uppercase;
  margin: 0;
  padding: 16px 26px;
  text-decoration: none;
}
/* Change the link color to white on hover */
li a:hover {
  background-color: red;
}
.mySlides {display: none;}
img {vertical-align: middle;}
/* Caption text */
.slidetext {
  color: yellow;
  background-color: green;
  font-size: 35px;
  text-transform: uppercase;
  position: absolute;
  bottom: 40%;
  margin: 0 25%;
  width: 50%;
  text-align: center;
}
/* The dots/bullets/indicators */
.dot {
    display: inline-block;
    margin: 2px;
    padding: 1%;
  font-size: 1vw;
  text-transform: uppercase;
  color: white;
  background-color: #bbb;
  border-radius: 5px;
  transition: background-color 0.6s ease;
}
.dotactive {
  background-color: #717171;
}
/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 2.5s;
}
@-webkit-keyframes fade {
  from {opacity: .1} 
  to {opacity: 1}
}
@keyframes fade {
  from {opacity: .1} 
  to {opacity: 1}
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}
.slidertextcontainer {
  position: relative;
}
.slidertextoverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  width: 100%;
  height: 0;
  transition: .5s ease;
}
.slidertextcontainer:hover .slidertextoverlay {
  height: 100%;
}
.sliderhovertext {
  color: white;
  font-size: 40px;
  font-family: 'Annie Use Your Telescope';
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
      @keyframes slideInLeft {
        0% {
          transform: translateY(-100%);
        }
        100% {
          transform: translateY(0);
        }
      }
.sliderslidedowntext {
    color: white;
  font-size: 40px;
  font-family: 'Annie Use Your Telescope';
   text-transform: uppercase;
  position: absolute;
  bottom: 40%;
  margin: 0 25%;
  width: 50%;
  text-align: center;
  animation: 1s ease-out 0s 1 slideInLeft;
}
/* =Custom Styles
------------------------------------- */
.c-glitch,
.c-glitch__img {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.c-glitch {
  height: 300px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.c-glitch__img {
  background-color: transparent;
  height: calc(100% + 5px * 2);
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate3d(0, 0, 0);
  width: calc(100% + 10px * 2);
}
.c-glitch:hover .c-glitch__img:nth-child(n+2) {
          animation-duration: 2s;
          animation-delay: 0s;
          animation-timing-function: linear;
          animation-iteration-count: infinite;
          animation-fill-mode: forwards;
}
.c-glitch:hover .c-glitch__img:nth-child(2) {
          animation-name: glitch-anim-1;
}
.c-glitch:hover .c-glitch__img:nth-child(3) {
          animation-name: glitch-anim-2;
}
.c-glitch:hover .c-glitch__img:nth-child(4) {
          animation-name: glitch-anim-3;
}
.c-glitch:hover .c-glitch__img:nth-child(5) {
          animation-name: glitch-anim-4;
  background-color: #af4949;
}
.c-glitch__img:nth-child(n+2) {
  opacity: 0;
}
@keyframes glitch-anim-1 {
  0%, 100% {
    opacity: 1;
    transform: translate3d(40px, 0, 0) scale3d(-1, -1, 1);
    -webkit-clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
  }
  20% {
    -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
  }
  30% {
    -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
  }
  40% {
    -webkit-clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
  }
  50% {
    -webkit-clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
  }
  55% {
    -webkit-clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
  }
  60% {
    -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 20%, 0 20%);
  }
  65% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
  }
  70% {
    -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 80%, 0 80%);
  }
  80% {
    -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
  }
  85% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%);
  }
  95% {
    -webkit-clip-path: polygon(0 72%, 100% 72%, 100% 78%, 0 78%);
  }
}
@keyframes glitch-anim-2 {
  0%, 100% {
    opacity: 1;
    transform: translate3d(-10px, 0, 0);
    -webkit-clip-path: polygon(0 25%, 100% 25%, 100% 30%, 0 30%);
  }
  10% {
    -webkit-clip-path: polygon(0 3%, 100% 3%, 100% 3%, 0 3%);
  }
  15% {
    -webkit-clip-path: polygon(0 5%, 100% 5%, 100% 20%, 0 20%);
  }
  17% {
    -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
  }
  19% {
    -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 40%, 0 40%);
  }
  33% {
    -webkit-clip-path: polygon(0 52%, 100% 52%, 100% 59%, 0 59%);
  }
  35% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
  }
  40% {
    -webkit-clip-path: polygon(0 75%, 100% 75%, 100% 75%, 0 75%);
  }
  45% {
    -webkit-clip-path: polygon(0 65%, 100% 65%, 100% 40%, 0 40%);
  }
  49% {
    -webkit-clip-path: polygon(0 45%, 100% 45%, 100% 50%, 0 50%);
  }
  50% {
    -webkit-clip-path: polygon(0 14%, 100% 14%, 100% 33%, 0 33%);
  }
  55% {
    -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%);
  }
  60% {
    -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
  }
  70% {
    -webkit-clip-path: polygon(0 65%, 100% 65%, 100% 60%, 0 60%);
  }
  80% {
    -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%);
  }
  90% {
    -webkit-clip-path: polygon(0 55%, 100% 55%, 100% 65%, 0 65%);
  }
}
@keyframes glitch-anim-3 {
  0%, 100% {
    opacity: 1;
    transform: translate3d(0, -5px, 0) scale3d(-1, -1, 1);
    -webkit-clip-path: polygon(0 1%, 100% 1%, 100% 3%, 0 3%);
  }
  5% {
    -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 9%, 0 9%);
  }
  11% {
    -webkit-clip-path: polygon(0 5%, 100% 5%, 100% 6%, 0 6%);
  }
  20% {
    -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 20%, 0 20%);
  }
  25% {
    -webkit-clip-path: polygon(0 10%, 100% 10%, 100% 10%, 0 10%);
  }
  35% {
    -webkit-clip-path: polygon(0 30%, 100% 30%, 100% 25%, 0 25%);
  }
  42% {
    -webkit-clip-path: polygon(0 15%, 100% 15%, 100% 16%, 0 16%);
  }
  48% {
    -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 39%, 0 39%);
  }
  50% {
    -webkit-clip-path: polygon(0 20%, 100% 20%, 100% 21%, 0 21%);
  }
  56% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 55%, 0 55%);
  }
  61% {
    -webkit-clip-path: polygon(0 30%, 100% 30%, 100% 31%, 0 31%);
  }
  68% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 69%, 0 69%);
  }
  72% {
    -webkit-clip-path: polygon(0 40%, 100% 40%, 100% 41%, 0 41%);
  }
  77% {
    -webkit-clip-path: polygon(0 80%, 100% 80%, 100% 75%, 0 75%);
  }
  81% {
    -webkit-clip-path: polygon(0 50%, 100% 50%, 100% 51%, 0 51%);
  }
  86% {
    -webkit-clip-path: polygon(0 90%, 100% 90%, 100% 90%, 0 90%);
  }
  90% {
    -webkit-clip-path: polygon(0 60%, 100% 60%, 100% 60%, 0 60%);
  }
  92% {
    -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 99%, 0 99%);
  }
  94% {
    -webkit-clip-path: polygon(0 70%, 100% 70%, 100% 71%, 0 71%);
  }
}
@keyframes glitch-anim-4 {
  0%, 5% {
    opacity: 0.2;
    transform: translate3d(10px, 5px, 0);
  }
  5.5%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0);
  }
}
.fprow {
    max-width: 1100px;
    margin: 0 0;
    padding: 0;
}
.fpdotrow {
    text-align: center;
}
/* Create two equal columns that floats next to each other */
.fptwocolumn {
  float: left;
  width: 50%;
}
.fptwocolumn2 {
  width: 50%;
}
/* Clear floats after the columns */
.fptwocolrow:after {
  content: "";
  display: table;
  clear: both;
}
.formsucessmessage {
    font-size: 40px;
  font-family: 'Annie Use Your Telescope';
   text-transform: uppercase;
  text-align: center;
}
#modalbtn {
   font-size: 120%;
  font-family: 'Annie Use Your Telescope'; 
  width: 79%;
  height: auto;
  color: white;
  background-color: #bbb;
  border-radius: 5px;
  transition: background-color 0.6s ease;
}

#modalbtn:hover {
  text-transform: uppercase;
  background-color: purple;
}
.spaceinfo {
    display: inline-block;
    margin: 0 0;
    width: 10%;
}
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(44,44,44,0.8); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  width: 80%;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.inmodal {
  color: white;
  font-size: 3vw;
  font-family: 'Annie Use Your Telescope';
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;

}
.typewriter {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid orange; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation: 
    typing 3.5s steps(30, end),
    blink-caret .5s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: orange }
}
#boxmove {
  width: 150px;
  height: 150px;
  position: relative;
  background-color: red;
  animation-name: moving;
  animation-duration: 4s;
  animation-iteration-count: infinite;
  animation-direction: alternate;   
}
#boxmove:hover {
    border-radius: 20px;
}
.boxmovetext {
  padding: 20px;
  text-align: center;
  animation-name: movingtext;
  animation-duration: 4s;
}
@keyframes moving {
  0%   {background-color: red; left:0; top:0;}
  25%  {background-color: blue; left:0; top:-600px;}
  50%  {background-color: green; left:700px; top:-100px;}
  75%  {background-color: yellow; left:600px; top:0;}
  100% {background-color: red; left:950px; top:0;}
}
@keyframes movingtext {
  0%   {color: white;}
  25%  {color: orange;}
  50%  {color: brown;}
  75%  {color: blue;}
  100% {color: pink;}
}