/* Global Style sets background and font */
body {
  background-color: #121212;
  color: #E0E0E0;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
}

h1, h2 {
  text-align: center;
  color: #8A2BE2;
}

/* Links styling */
a {
  color: #8A2BE2;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #9D4EDD;
  text-decoration: underline;
}

a:visited {
  color: #7B68EE;
}

.top {
  background-color: #1E1E1E;
  height: 100%;
  border-bottom: 2px solid #8A2BE2;
}

.container {
  display: flex;
  flex-wrap: wrap;
}

.box {
  width: 100%;
  padding: 1%;
}

/* style for demo box image containers */
.box > .container {
  display: flex;
  justify-content: center;
}

/* Sets size for demo box images */
.demo-image {
  width: 25%;
}

.overview, .hobbies {
  background-color: #1E1E1E;
  margin: 10px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#nav-head {
  text-align: center;
  text-decoration: underline;
  color: #8A2BE2;
}

/* moves nav pane into view when navicon is clicked open */
.open {
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

/* sets nav links to a visible color and pads them */
.nav-link {
  color: #E0E0E0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #8A2BE2;
}

.nav-list {
  padding-top: 15px;
  padding-bottom: 15px;
  list-style-type: none;
}

.nav-list > a:visited {
  color: inherit;
}

.hobbyimg {
  width: 100%;
}

.float-image {
  box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 8px;
}

footer {
  background-color: #1E1E1E;
  color: #E0E0E0;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
  border-top: 2px solid #8A2BE2;
}

footer a {
  color: #8A2BE2;
}

/* Very Small Screen */
@media screen and (min-width: 1px) and (max-width: 350px) {
  h2 {
    width: 100%;
    text-align: center;
  }

  p {
    padding: 1%;
  }

  .top {
    padding: 1%;
  }

  .container {
    width: 97%;
    overflow: auto;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }

  /* Nav transform and animation from Udacity course Moves nav off screen.
  Also, we make this happen over time with a nice snappy transition. */
  nav {
    color: #E0E0E0;
    background-color: #1E1E1E;
    width: 200px;
    height: 100%;
    position: absolute;
    -webkit-transform: translate(-300px, 0);
    transform: translate(-300px, 0);
    transition: transform 0.3s ease;
    border-right: 2px solid #8A2BE2;
  }

 /* Thanks to W3C for the awesome Navicon guide https://www.w3schools.com/howto/howto_css_menu_icon.asp */
  .nav-container {
    display: inline-block;
    cursor: pointer;
    margin: auto;
  }
  /* builds a hamburger using divs */
  .burg1, .burg2, .burg3 {
    width: 60px;
    height: 4px;
    background-color: #8A2BE2;
    margin: 6px 0;
    transition: 0.4s;
  }

 /* Rotate first line */
  .change .burg1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
    transform: rotate(-45deg) translate(-9px, 6px) ;
  }

 /* Fade out */
  .change .burg2 {
    opacity: 0;
  }

 /* Rotate last line */
  .change .burg3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
    transform: rotate(45deg) translate(-8px, -8px) ;
  }

  .avatar {
    width: 20%;
  }
/* Rounds profile image and sets a padding ring to the color violet */
  #prof-image {
    width: 100%;
    margin-top: 10%;
    padding: 5%;
    border-radius: 50%;
    background-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
  }

  .title-bar {
    width: 74%;
    margin-top: 3%;
    text-align: center;
    font-size: small;
  }

}

/* Mobile or Small Screen Style */
@media screen and (min-width: 351px) and (max-width: 450px) {
  h2 {
    width: 100%;
    text-align: center;
  }

  p {
    padding: 1%;
  }

  .top {
    padding: 1%;
  }

  /* Nav transform and animation from Udacity course Moves nav off screen.
  Also, we make this happen over time with a nice snappy transition. */
  nav {
    color: #E0E0E0;
    background-color: #1E1E1E;
    width: 200px;
    height: 100%;
    position: absolute;
    -webkit-transform: translate(-300px, 0);
    transform: translate(-300px, 0);
    transition: transform 0.3s ease;
    border-right: 2px solid #8A2BE2;
  }

 /* Thanks to W3C for the awesome Navicon guide https://www.w3schools.com/howto/howto_css_menu_icon.asp */
  .nav-container {
    display: inline-block;
    cursor: pointer;
  }
  /* creates navicon bars from divs */
  .burg1, .burg2, .burg3 {
    width: 35px;
    height: 5px;
    background-color: #8A2BE2;
    margin: 6px 0;
    transition: 0.4s;
  }

 /* Rotate first bar */
  .change .burg1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
    transform: rotate(-45deg) translate(-9px, 6px) ;
  }

 /* Fade out the second bar */
  .change .burg2 {
    opacity: 0;
  }

 /* Rotate last bar */
  .change .burg3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
    transform: rotate(45deg) translate(-8px, -8px) ;
  }

  .avatar {
    width: 20%;
  }

  #prof-image {
    width: 100%;
    margin-top: 5%;
    padding: 5%;
    border-radius: 50%;
    background-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
  }

  .title-bar {
    width: 65%;
    margin-top: 3%;
    text-align: center;
    font-size: small;
  }

}

@media screen and (min-width: 451px) and (max-width: 834px) {
  body {
    font-size: 120%;
  }

  h2 {
    width: 100%;
    text-align: center;
  }

  p {
    padding: 1%;
  }

  .top {
    padding: 1%;
    position: relative;
    height: 130px;
  }

  .top .container {
    width: 415px;
    overflow: auto;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }


  /* Nav transform and animation from Udacity course Moves nav off screen.
  Also, we make this happen over time with a nice snappy transition. */
  nav {
    color: #E0E0E0;
    background-color: #1E1E1E;
    width: 200px;
    height: 100%;
    position: absolute;
    -webkit-transform: translate(-300px, 0);
    transform: translate(-300px, 0);
    transition: transform 0.3s ease;
    border-right: 2px solid #8A2BE2;
  }

 /* Thanks to W3C for the awesome Navicon guide https://www.w3schools.com/howto/howto_css_menu_icon.asp */
  .nav-container {
    display: inline-block;
    cursor: pointer;
    margin-left: 2%;
  }
  /* creates navicon bars from divs */
  .burg1, .burg2, .burg3 {
    width: 45px;
    height: 5px;
    background-color: #8A2BE2;
    margin: 5px 0%;
    transition: 0.4s;
  }

 /* Rotate first bar */
  .change .burg1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
    transform: rotate(-45deg) translate(-6px, 6px) ;
  }

 /* Fade out the second bar */
  .change .burg2 {
    opacity: 0;
  }

 /* Rotate last bar */
  .change .burg3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
    transform: rotate(45deg) translate(-8px, -8px) ;
  }

  .avatar {
    width: 80px;
  }

  #prof-image {
    width: 100%;
    margin-top: 5%;
    padding: 5%;
    border-radius: 50%;
    background-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
  }

  .title-bar {
    width: 250px;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
  }
}

/* Medium Screen Tablet design */
@media screen and (min-width: 835px) and (max-width: 1099px) {
  body {
    font-size: 120%;
  }

  h2 {
    width: 100%;
    text-align: center;
  }

  p {
    padding: 1%;
  }

  .top {
    padding: 1%;
    position: relative;
    height: 130px;
  }

  .top .container {
    width: 415px;
    overflow: auto;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
  }

  /* Nav transform and animation from Udacity course Moves nav off screen.
  Also, we make this happen over time with a nice snappy transition. */
  nav {
    color: #E0E0E0;
    background-color: #1E1E1E;
    width: 200px;
    height: 100%;
    position: absolute;
    -webkit-transform: translate(-300px, 0);
    transform: translate(-300px, 0);
    transition: transform 0.3s ease;
    border-right: 2px solid #8A2BE2;
  }

 /* Thanks to W3C for the awesome Navicon guide https://www.w3schools.com/howto/howto_css_menu_icon.asp */
  .nav-container {
    display: inline-block;
    cursor: pointer;
    margin-left: 2%;
  }
  /* creates navicon bars from divs */
  .burg1, .burg2, .burg3 {
    width: 45px;
    height: 5px;
    background-color: #8A2BE2;
    margin: 5px 0%;
    transition: 0.4s;
  }

 /* Rotate first bar */
  .change .burg1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
    transform: rotate(-45deg) translate(-6px, 6px) ;
  }

 /* Fade out the second bar */
  .change .burg2 {
    opacity: 0;
  }

 /* Rotate last bar */
  .change .burg3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
    transform: rotate(45deg) translate(-8px, -8px) ;
  }

  .avatar {
    width: 80px;
  }

  #prof-image {
    width: 100%;
    margin-top: 5%;
    padding: 5%;
    border-radius: 50%;
    background-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
  }

  .title-bar {
    width: 250px;
    margin-top: 10px;
    text-align: center;
    font-size: 16px;
  }
}

/*Large Screen Tablet and Desktop design TEST combine medium with desktop*/
@media screen and (min-width: 1100px) {
  body {
    font-size: 120%;
  }

  h2 {
    width: 100%;
    text-align: center;
  }

  p {
    padding: 1% 10%;
  }

  .top {
    padding: 1%;
    position: relative;
    height: 276px;
  }

  .skills > ul {
    padding: 0% 14%;
  }

  /* Nav transform and animation from Udacity course Moves nav off screen.
  Also, we make this happen over time with a nice snappy transition. */
  nav {
    color: #E0E0E0;
    background-color: #1E1E1E;
    width: 400px;
    height: 100%;
    position: absolute;
    -webkit-transform: translate(-400px, 0);
    transform: translate(-408px, 0);
    transition: transform 0.3s ease;
    border-right: 2px solid #8A2BE2;
  }

  #navul {
    margin-left: 112px;
  }

 /* Thanks to W3C for the awesome Navicon guide https://www.w3schools.com/howto/howto_css_menu_icon.asp */
  .nav-container {
    display: inline-block;
    cursor: pointer;
    margin-left: auto;
  }
  /* creates navicon bars from divs */
  .burg1, .burg2, .burg3 {
    width: 45px;
    height: 5px;
    background-color: #8A2BE2;
    margin: 5px 0%;
    transition: 0.4s;
  }

 /* Rotate first bar */
  .change .burg1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px) ;
    transform: rotate(-45deg) translate(-6px, 6px) ;
  }

 /* Fade out the second bar */
  .change .burg2 {
    opacity: 0;
  }

 /* Rotate last bar */
  .change .burg3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px) ;
    transform: rotate(45deg) translate(-8px, -8px) ;
  }

  .avatar {
    width: 233px;
  }

  #prof-image {
    width: 100%;
    padding: 5px;
    border-radius: 50%;
    background-color: #8A2BE2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
  }

  .title-bar {
    width: 65%;
    margin-top: 44px;
    text-align: center;
    font-size: 140%;
  }

  .float-text {
    float: left;
    width: 45%
  }

  .float-image {
    float: right;
    width: 50%;
  }
}

/* Add some additional techie styling */
.skills ul li {
  background-color: #2A2A2A;
  padding: 8px 12px;
  margin: 5px 0;
  border-radius: 4px;
  border-left: 3px solid #8A2BE2;
  list-style: none;
}

/* Hover effects for interactivity */
.box:hover {
  transition: all 0.3s ease;
}

.overview .box:hover,
.hobbies .box:hover {
  background-color: #252525;
}

/* Code-like styling for tech list items */
.skills ul li::before {
  content: "> ";
  color: #8A2BE2;
  font-weight: bold;
}
