* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
[class*="col-"] {
  float: left;
}

body {
  background-color: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  padding: 0 20px 0 20px;
  margin: auto;
  color: #696969;
}

header {
  background-color: #F5F5F5;
  margin: 0 auto;
  box-shadow: 6px 6px 25px 0px rgba(50, 50, 50, 0.34);
  width: 100%;
  height: auto;
  font-size: 1em;
  padding: 20px 0 10px;
}

.logo {
  max-width: 150px;
  text-align: left;
  margin-left: 20px;
}

nav>ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

nav>ul>li>a {
  color: #696969;
  text-decoration: none;
}

nav>ul>li>a:active {
  color: #696969;
  text-decoration: none;
  /* No underlining */
}

nav>ul>li>a:hover {
  color: #6D1A36;
  text-decoration: none;
  /* Underlining when hovering over a link deleted*/
  transition: all 0.5s;
}

.navtoggle, .navtoggle.responsive {
  position: relative;
}

.navtoggle.responsive nav {
  padding: 24px 0 0;
}

.navtoggle.responsive ul {
  display: block;
}

.navtoggle.responsive li {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 127, 80, 0.5);
}

.navtoggle.responsive li:last-child {
  padding: 0 0 10px;
}

/* new thing added 2.3*/
.navtoggle li:not(:last-child) {
  display: none;
}

.navtoggle.responsive li {
  display: block;
}

.navtoggle li .icon {
  position: absolute;
  right: 20px;
  top: 45px;
  font-size: 20px;
  padding-right: 0;
}

ul>li {
  list-style-type: none;
  text-align: left;

}

#hero {
  background-color: #FFFFFF;
  margin: 60px 0;
  display: inline-block;
  width: 100%;
  text-align: center;
}

#hero span {
  display: block;
}

#hero h1 {
  text-align: center;
  margin: 0;
}

#work.row {
  padding-bottom: 25px;
}

#about h4 {
  text-align: left;
  padding: 20px;
}

.myphoto {
  max-width: 1200px;
  max-height: 600px;
  padding: 0 0 30px 0;
  text-align: center;
}

.container-header {
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.container {
  padding: 20px 20px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  float: inherit;
  max-width: 1200px;
}

.container-about {
  text-align: left;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px 0;
}

.container-case {
  text-align: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 40px;
}

.container-footer {
  padding: 5px 5px;
  text-align: center;
  margin: 0 auto;
}

.row {
  margin: 25px 0;
  /* 25px top and bottom, 0 left and right */
}

footer {
  text-align: center;
  height: 100%;
  padding: 5px;
  margin: 0 auto;
  background-color: #F5F5F5;
  border-top: 2px solid #3A405A;
}

.fa-linkedin {
  padding: 10px;
  margin: 20px 0 0 0;
  display: inline-block;
  font-size: 60px;
  color: #6D1A36;
}

.fa-behance-square {
  padding: 10px;
  margin: 20px 0 0 0;
  display: inline-block;
  font-size: 60px;
  color: #6D1A36;
}

.fa-linkedin:hover,
.fa-behance-square:hover {
  color: #3A405A;
}

p {
  margin-left: 0;
}

/*ANIMATION*/
.sun {
  animation-duration: 4s;
  animation-name: color-change;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
}

.cloud-front {
  animation-duration: 10s;
  animation-name: cloud-move;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in;
}

.cloud-back {
  animation: 34s cloud-move-reverse infinite alternate linear;
}

@keyframes color-change {
  from {
    fill: #edc655;
  }

  to {
    fill: #f76414;
  }
}

@keyframes cloud-move {
  from {
    transform: translate(0, 50px);
  }

  to {
    transform: translate(200px, 50px);
  }
}

@keyframes cloud-move-reverse {
  from {
    transform: translate(446px, 48px);
  }

  to {
    transform: translate(100px, 48px);
  }
}

/*HEADINGS*/
h1, h2, h3, h4 {
  line-height: 1.8;
}

h1 {
  font-family: 'Proza Libre', sans-serif;
  font-size: 2.5em;
  font-weight: 300;
  color: #6D1A36;
  text-align: left;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 2em;
  font-weight: 300;
  color: #6D1A36;
  text-align: left;
  padding: 0;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 2em;
  font-weight: 300;
  color: #6D1A36;
  text-align: center;
}

h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.6em;
  font-weight: 300;
  text-align: left;

}

h5 {
  font-family: 'Proza Libre', sans-serif;
  font-size: 0.6em;
  font-weight: 400;
  text-align: center;
  padding-bottom: 0;
  padding-top: 50px;
}

img {
  width: 100%;
  max-width: 1400px;
}

a {
  color: #6D1A36;
  font-size: 1em;
  /* No underlining */
  margin: 0 auto;
  padding: 10px 5px;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #6D1A36;
  font-size: 1em;
  /* Underlining when hovering over a link deleted*/
  margin: 0 auto;
  padding: 5px;
  text-decoration: none;
}

/*BUTTONS*/
.button {
  display: inline-block;
  /* since the <a> tag is inline by default, we need to change this to inline-block, but more on this in the next exercise */
  background-color: #6D1A36;
  opacity: 0.8;
  color: #FFFFFF !important;
  /* needed to override the default link color */
  text-decoration: none;
  font-weight: 300;
  font-size: 1em;
  padding: 5px;
  border-radius: 3px;
  border-bottom: 2px solid #F0DCD4;
  /* width of the border, type, color */
  margin-left: 0;
  transition-duration: 0.2s;
  transition-property: opacity;
}

.button:hover,
.button:focus {
  opacity: 1;
  color: #3A405A;
  padding: 5px;
  font-size: 1em;
  /* Reduces the opacity of the button to 80% */
  text-decoration: none;
  margin-left: 0;
}

.button:active {
  background-color: #6D1A36;
  margin-left: 0;
  padding: 5px;
}

.button-contact {
  background-color: transparent;
  color: #6D1A36 !important;
  font-weight: 400;
  font-size: 1.2em;
  padding: 5px 5px;
  margin: 0 auto;
  border-radius: 3px;
}

.button-contact:hover {
  background-color: #3A405A;
  color: #FFFFFF !important;
  border-radius: 5px;
  transition: all 0.5s;
  font-size: 1.2em;
  padding: 5px 5px;
  margin: 0 auto;
  border-radius: 3px;
}


/* ==============================
Medium devices (640px and larger)
================================= */
@media only screen and (min-width: 641px) {
  header {
    text-align: unset;
    padding: 20px 0 10px;
  }

  .navtoggle li:not(:last-child) {
    display: inline-block;
  }

  .navtoggle li:last-child {
    display: none;
  }

  nav {
    width: auto;
    float: right;
    margin-top: 4px;
  }

  nav>ul {
    list-style-type: none;
    padding-right: 0;
    margin-right: 20px;
    padding-top: 55px;
    text-align: right;
    width: 100%;
  }

  nav>ul>li {
    display: inline-block;
  }


body {
  font-size: 18px;
}

.col-md-6 {
  width: 50%;
}
}

/* ==============================
Large devices (1024px or larger)
================================= */
@media only screen and (min-width: 1024px) {
  .col-md-6 {
    width: 50%;
  }
}
