@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,700;1,400&display=swap');

html{
    scroll-behavior: smooth;
}
body{
    font-family: 'Montserrat', sans-serif;
    margin : 0;
}

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

.dark-mode .hero-bg {
    background: #black;   
}

/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0); 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #0e57f6; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #0e35f6; 
}

.lightlabel{
    float: right;
    width: 2em;
    margin: 0.75em 2em 0em 0em;
    height: auto;
    color: black;
    font-size: 0.5em;
}

.intro{
    padding: 0 2em 0 2em;
}

.hero-bg{
    background: #0e57f6;
}

.head{
    background: #0e57f6;
    @extend .dark-mode;
}

.head a{
      color: #ffffff;
      font-size: 1em;
      font-weight: 700;
      text-decoration: none;
}

header{
    display: flex;
    justify-content: space-between;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  float: right;
  margin:2em 2em 0 0;
  position: fixed;
  width: 50%;
  height: 100%;
  background: rgba(36,41,44,1);
  top:0;
  right:0;
  text-align: left;
  z-index:7;
  padding-top: 3em;
}

.hide{
    display: none;
}

nav li{
    padding: 2em;
}
.back{
    width: 2em;;
    height: auto;
}

.light{
    float: right;
    width: 2em;
    margin: 0em 2em 0em 0em;
    height: auto;
}

.hide-mobile{
    display: none; 
}

.menu{
    width: 20px;
    height: auto;
    margin: 2em 2em;
}



#home{
    display:inline-block;
   float: left;
    margin:2em 0 0 2em;
}



.mainintro{
    display: block;
    text-align: center;
}

.mainintro img{
    width: 20rem;
    height:auto;
    margin-bottom: -0.25em;
}

.projects-bg{
    background: #FFF;
}

.projectbg{
    border-radius: 2em;
    height: 15rem;
    color: white;
    background: #3f12e3;
    padding: 2em;
    margin: 2em 2em;
    text-align: center;
}
input[type=button]{
    background: #ffffff;
    border: none;
    color: black;
    margin-top: 1em;
    width: 10em;
    font-weight: 200;
    padding: 0.5em 0.5em;
    border-radius: .5em;
    cursor: pointer;
    font-size: 1em;
    
}

.skills-bg{
    background: #316DF0;
    display: inline-block;
    text-align: center;
}

.skills{
    background: #1f00ff;
    margin: 2em;
    padding: 0.5em;
    color: white;
    border: 0px solid #FFF;
}


footer{
    background: #18008e;
    text-align: center;
    margin: -2em 0;
    padding: 2em;
}

#socials{
    align-content: space-between;
    display: inline-block;
    list-style-type: none;
}

#socials li{
    align-content: center;
    vertical-align: middle;
    padding: 0.5em;
    display: inline;
}

#socials img{
    width: 2em;
    height: 2em;
}

.catalog{
    display: inline-block;
    align-content: center;
    text-align: center;
    margin: 2em 2em 2em 2em;
    border-radius: 6em;
}

.catalog-items{
    color: blue;
    height: 15em;
    width: 15em;
    background: white;
    text-align: center;
    border: solid 0.1em black;
    margin: 2em 0em 2em 0em;
}

.catalog-items:hover{
/*    background: skyblue;*/
    -webkit-filter: brightness(70%);
}

.catalog-items img{
    margin: 2em 1em 2em 1em;
    width: 70%;
    text-align: center;
}

.catalog-items p{
    font-size: 80%;
    margin: 2em 1em -2em 1em;
}

.gallery{
    display: grid;
    text-align: center;
    margin: 2em 0 2em 0;
    grid-template-columns: auto auto;
}

.items img{
    margin: 1em 1em 1em 1em;
    height: 30%;
    width: auto;
    -webkit-filter: brightness(100%);
    text-align: center;
    max-height: 7em;
}

.items img:hover {
    -webkit-filter: brightness(70%);
    max-height: 10em;
}

.items img:active{
    -webkit-filter: brightness(100%);
    max-height: 14em;
    border: solid 2px black;
    backface-visibility: hidden;
}
/*

.items span{
    background: black;
    opacity: 0;
}

.items span:hover{
    opacity: 40%;
}
*/

@media only screen and (min-width:730px){
    .mainintro img{
        float: left;
        margin-bottom: 0em;
    }
    .mainintro{
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;        
    }
    .intro{
        float: right;
        margin: 5em 2em; 
    }
    .skills-bg{
        display: grid;
        grid-template-columns: auto auto;
    }
    .skills{
        border: 1px solid #FFF;
        margin-bottom: 3em;
    }
    
    .projects-bg{
        display: flex;
        justify-content: space-between;
    }
    .projectbg{    
        padding: 1em;
        height: 20em;
        margin: 1em;
        box-shadow: 2px solid rgba(0,0,0,0.2);
    }
    .catalog{
        display: flex;
    }
    
    .catalog-items{
        margin: 2em 2em 2em 2em;
    }
    
    .catalog-items img{
        margin: 2em 2em 2em 2em;
    }

    
    input[type=button]{
        width: 10em;
        height: 2em;
        text-align: center;
        font-size: 1em;
    }
    
    .show-desktop{
        display: inline-block; 
    }

    .hide-desktop{
        display: none;
    }
    
    nav ul {
      display: inline-block;
      list-style-type: none;
      margin: 0;
      padding: 0;
      float: right;
      margin:2em 2em 0 0;
      position: relative;
      width: 100%;
      height: 0;
      background: rgba(0,0,0,0);
      top:0;
      right:0;
      text-align: left;
      z-index:1;
    }
    
    .items img{
        max-height: 10em;
    }

    .items img:hover {
        max-height: 13em;
    }

    .items img:active{
        max-height: 17em;
    }

    nav li {
      display: inline;
    } 
    
    .back{
        display: none;
    }
    
    .light{
        
    }
    
    
}
