html {
    scroll-behavior: smooth !important;
}

.dark {
    background-color: black;
    color: white;
}

.dark .topnav a{
    color: white;
}

.dark .navigation {
    background-color: black;
}

.button {
    background-color: white;
    color: black;
    border: 4px solid black;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
    transition: background-color 0.4s, border 0.4s, color 0.4s;
}

.button a:hover{
    background-color: black;
    color: white;
    border: 4px solid white;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
}

#darkbutton a {
    background-color: white;
    color: black;
    border: 4px solid black;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
    transition: background-color 0.4s, border 0.4s, color 0.4s;
}

#darkbutton a:hover{
    background-color: black;
    color: white;
    border: 4px solid white;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
}

body {
    transition: 1s background ease;
}

h1 {
    font-family: "Futura", sans-serif;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    padding: 50px;
    text-transform: uppercase;
    text-shadow: 4px 4px #a9a9a9;
}

h2 {
    font-family: "Futura", sans-serif;
    font-weight: bold;
    text-align: center;
    padding-bottom: 20px;
}

p {
    font-family: "Arial", sans-serif;
}

.work {
    font-family: "Futura", sans-serif;
    padding-left: 10px;
    padding-right: 10px;
}

.modules {
    padding-bottom: 20px;
}

ul {
    font-family: "Arial", sans-serif;
}

#portfolio_buttons {
    font-family: "Arial", sans-serif;
    margin-left: -40px;   
}


.bgimage {
    height: auto;
    background: url('background.jpg');
    width: 100%;
    background-size:cover;
    position:relative;
    padding-bottom: 60%;
}

.hero_title {
    font-family: "Futura", sans-serif;
    font-size: 4.5rem;
    font-weight: bold;
    text-shadow: 6px 6px #a9a9a9;
}
.hero_desc {
    font-size: 2rem;
    font-family: "Futura", sans-serif;
    text-shadow: 3px 3px #a9a9a9;
}
.hero-text {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.navigation {
    background-color: white;
    width: 100%;
    padding-bottom: 12px;
    padding-top: 12px;
    margin: auto;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: 1s background ease;
}

.topnav {
    padding: 10px;
    padding-left: 80px;
    display: inline;
    text-align: right;
    font-family: sans-serif;
    text-transform: uppercase;
}

.topnav button {
    background-color: white;
    color: black;
    border: 4px solid black;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    width: 200px; 
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
    transition: background-color 0.4s, border 0.4s, color 0.4s;
}

.topnav button:hover{
    background-color: black;
    color: white;
    border: 4px solid white;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    width: 200px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
}

.buttons {
    list-style-type: none;
}

.buttons a {
    background-color: white;
    color: black;
    border: 4px solid black;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
    transition: background-color 0.4s, border 0.4s, color 0.4s;
}

.buttons a:hover{
    background-color: black;
    color: white;
    border: 4px solid white;
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 200px;
    margin: auto;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-family: sans-serif;
    font-weight: bold;
}

.topnav a {
    color: black;
    text-decoration: none;
    font-weight: bold;    
}

.topnav a:hover{
    border-radius: 25px;
    color: white;
    border: 6px solid black;
    font-weight: 1200;
    background-color: black; 
}

#leftcontent {
    border: 4px solid black;
    border-radius: 25px;
    margin: auto;
    margin-top: 30px;
    width: 300px;
    height: 360px;
    transition: width 0.4s, height 0.4s, background-color 0.4s, color 0.4s;
}

#leftcontent:hover {
    width: 500px;
    height: 320px;
    background-color: black;
    color: white;
}

#rightcontent {
    text-align: center;
    border: 4px solid black;
    border-radius: 25px;
    width: 300px;
    height: 400px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin: auto;
    transition: width 0.4s, height 0.4s, background-color 0.4s, color 0.4s;
}

#rightcontent:hover {
    width: 500px;
    height: 300px;
    background-color: black;
    color: white;
}

#about {
    border-top: 6px solid black;
    margin-top: 10px;
    padding-top: 20px;
}

#portfolio {
    margin-top: 50px;
    padding-top: 20px;
    padding-bottom: 40px;
    border-top: 6px solid black;
}

#contact {
    border-top: 6px solid black;
    border-bottom: 6px solid black;
    padding-bottom: 60px;
    margin-bottom: 30px;
    padding-top: 20px;
}

#thanks {
    border-top: 6px solid black;
    border-bottom: 6px solid black;
    padding-bottom: 40px;
    margin-top: 150px;
}

input[type=text], select {
    width: 15%;
    padding: 10px;
    margin: auto;
    margin-bottom: 15px;
    border: 3px solid black;
    border-radius: 6px;
    display: block;
    transition: width 0.4s ease-in-out;
}

/* Input Box */

input[type=text]:focus {
    width: 30%;
}

input[type=submit] {
    width: 10%;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    display: block;
    margin: auto;
    cursor: pointer;
    padding: 8px;
    font-weight: bold;
    margin-bottom: 60px;
    transition: width 0.4s ease-in-out;

}

input[type=submit]:hover {
    color: black;
}

/* Crossfade Background */

#test {
  position:relative;
  margin:0 auto;
}

#test img {
    height: auto;
    background-size:cover;
    width: 100%;
    position:absolute;
    left:0;
  -webkit-animation: fade 30s infinite;
  animation: fade 30s infinite;
}


#test img.five {
    animation-delay: 6s;
}

#test img.four {
    animation-delay: 12s;
}

#test img.three {
    animation-delay: 18s;
}

#test img.two {
    animation-delay: 24s;
}

#test img.one {
    animation-delay: 30s;
}


@-webkit-keyframes fade {
  0% {
    opacity: 1;
  }
  16.6% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  96.6% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade {
  0% {
    opacity: 1;
  }
  16.6% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  96.6% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Socials */ 

.social {
    text-align:center;
    padding-bottom: 25px;
}

.social > a {
    font-size:60px;
    padding: 3px;
    width:40px;
    height:40px;
    line-height: 43px;
    display:inline-block;
    text-align:center;
    margin:0 14px;
    color:inherit;
    opacity:0.6;
    transition: font-size 0.5s, opacity 0.5s;
}

.social > a:hover {
    opacity:1;
    font-size: 65px;
}


@media screen and (max-width: 960px){
    
    .hero_title {
        font-size: 3.5rem;
    }
    .hero_desc {
        font-size: 2rem;
    }
}

@media screen and (max-width: 640px){
    
    input[type=text] {
    width: 45%;  
}
     input[type=submit] {
    width: 20%;  
}
    .hero_title {
        font-size: 2.5rem;
}
    .hero_desc {
        font-size: 1.5rem;
}
    .topnav {
        display: block;
}
}
