/* Mobile first styles */
* {
  margin: 0;
  padding: 10px;
  box-sizing: border-box;
}

/* Typography */
html {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
  color: #3b3b3b;
}

a {
  color: #3b3b3b;
  /* don't underline links */
  text-decoration: none;
}

a:hover {
  color: black;
  background: yellow;
}

header {
  position: relative;
  width: 100%;
  padding: 0;
  background-color: #fff;
  text-align: center; 
  color:#563cea;
}

.sidebar {
  display: none;
}
    
content {
      padding-top: 100px;
    }

.portfolio {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px 1fr));
    }

  .portfolio .item img {
      width: 100%;
      height: auto;
    }

  .portfolio .item .caption {
      display: none;     
    }
   
  #hamburger-menu {
      position: fixed;
      top: 20px;
      left: 20px;
      width: 50px;
      height: 50px;
      display: inline;
      border: none;
      padding: 0px;
      margin: 0px;
      background: linear-gradient(
        to bottom, 
        #563cea, #563cea 20%, 
        white 20%, white 40%, 
        #563cea 40%, #563cea 60%, 
        white 60%, white 80%, 
        #563cea 80%, #563cea 100%
      );
  }

  #hamburger-menu #dropdown-menu {
    visibility: hidden;
    position: fixed;
    top: -500px;
    width: 90%;
    height: 60%;
    opacity: 0.95;
    background-color: #1d1d1d;
    transition: 0.3s;
    padding: 1;
    box-sizing: border-box;
}

  .overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background: rgb(255, 255, 255);
    z-index: -1;
  }


#dropdown-menu h2 {
  color: #fff;
  font-size: 1.5rem;
  font-style: normal;
}

#dropdown-menu ul {

  margin: 10px auto;
  display: auto;
}

#dropdown-menu li {
  list-style-type: none;
  font-size: 2rem;
}

#dropdown-menu a {
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
}

#dropdown-menu a:hover {
  color:dimgray;
}


#hamburger-input{
    visibility: hidden;
}
#hamburger-input:checked + #hamburger-menu #dropdown-menu {
    visibility: visible;
    top: 0;
}
#hamburger-input:checked ~ .overlay{
    visibility: visible;
    opacity: 0.4;
}


  
/* Styles for larger screens */
@media screen and (min-width: 768px) {
/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  
    /* Typography */
  html {
      font-family: 'Courier New', Courier, monospace;
      font-size: 16px;
      line-height: 1.5;
      color:#333;
    }
   
  h1, h2, h3, h4, h5, h6 {
      font-weight: bold;
      margin: 1em 0;
      margin-top: 20px;

    }
  
  a {
      color: #563cea;
      /* don't underline links */
      text-decoration: none;
    }
  
  a:hover {
    color: black;
    background: yellow;
  }
  
   /* Layout */
  .wrapper {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
  }
  
  header {
    display: none;
  } 
  
  footer {
    width: 100%;
    padding: 1em;
    background-color: #fffff1;
    text-align: center;
  }

  nav {
    display: block;
  }
  
  .menu-icon {
    display: none;
  }

  main {
    flex: 1;
    padding: 1em;
  }
  
  .sidebar {
    display: block;
    position: fixed;
    top: 20px;
    left: 0;
  
    width: 200px;
    height: 100%;
    padding-left: 1em;
    background-color: white;
  }
    .sidebar h2 {
      font-size: 18px;
      margin-top: 0;
      color: #563cea;
    }
  
    .sidebar ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    .sidebar ul li {
      margin-bottom: 10px;
    }
  
    .sidebar ul li a {
      color: #333;
    }
  
  #content {
    margin-left: 200px;
  }
  
  
  .portfolio {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-gap: 1em;
        justify-content: space-between;
      }
  
  .portfolio .item img {
        width: 100%;
        height: auto;
      }
      
  
  .portfolio .item .caption {
        position: relative;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: yellow;
        color: palevioletred;
        padding: 0em;
        opacity: 0;
        transition: opacity 0.1s ease-in-out;
      }
  
  .portfolio .item:hover .caption {
        opacity: 1;
      }
  
  body {
    padding-top: 20px;
    margin: 10px;
    font-size: 20px;
    min-height: 100vh;
  }

}





