* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
    min-height: 100%; /* Look, it's not fixed anymore! */

    display: flex;
    flex-direction: column;
}

body {
	font-family: 'Montserrat', sans-serif;
    color:#343a40;
    flex-grow: 1;
}

h1, h2, h3, h4, h5 h6 {
    font-family: 'Oswald', sans-serif;
}

/* Container styles */
.container {
    display: flex;
    flex-direction: row;
    height: 100%;
  }
  

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color:  #655D8A;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    z-index: 5;
    display: none;
  }
  
  .navbar-logo {
    float: left;
    padding: 20px;
    color:white;
  }
  
  .navbar-toggle {
    display: none;
    float: right;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
  }
  
  .navbar-menu {
    float: right;
    background-color:  #655D8A;
  }
  
  .navbar-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
  }
  
  .navbar-menu li {
    margin: 0 10px;
  }
  
  .navbar-menu a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
  }
  
  /* Media queries for responsive design */
  @media (min-width: 768px) {
    .navbar-menu {
        display: none;
    }
  }

  @media (max-width: 768px) {

    #topNavbar {
        display: block;
    }
    #topNavbar.active {
        background: #655D8A;
    }

    .navbar-toggle {
      display: block;
      background-color:  #655D8A;
      padding: 20px;
    }
    

    .navbar-menu {
        

      display: none;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background-color: white;
      text-align: center;
      
    }
    .navbar-menu ul {
      flex-direction: column;
    }
    .navbar-menu li {
      margin: 0px 0;
      background-color:  #655D8A;
    }
    .navbar-menu a {
      padding: 10px;
      color:white;
    }
    .active {
      display: block;
    }
  }


.selected {
  color:white;
  opacity: 1;
}

  /* Content section styles */
.content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-x: hidden;
  }
  
  section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    margin-left: 300px;
    padding: 40px 0;
    opacity: 1;
    transition: all ease-in .25s;
    padding: 60px 20px;
  }

  
  
  .home {
    background-color: #f5f5f5;
  }
  
  .info {
    background-color: #eee;
  }
  
  .experience {
    background-color: #f5f5f5;
  }
  
  .contact {
    background-color: #ccc;
  }
  



  /* Responsive styles */
  @media (max-width: 768px) {
    section {
        margin-left: 0;
        width: 100vw;
        /* padding: 12px !important; */
        
      }
      
      .home {
        text-align: center;
      }

      #landing-photo {
        display: block !important;
        margin: 0 auto;
      }

      section h1 {
        display: block !important;
        text-align: center !important;
        padding-top: 40px;
      }

      .home h1 {
        margin-top: 12px;
        padding: 0;
      }

      p {
        font-size: 1rem !important
      }
  }

/*Landing*/
.home {
    padding: 30px;
  }
#landing-photo {
    display: none;
    border: 16px solid #655D8A;
    border-radius: 50%;
    overflow: hidden;
    width: 240px;
    height: 240px;
    background-image: url(profile-image-blurred.png);
    background-position: center center;
    background-size: contain;
    padding: -4px;
}

 section h1 {
    margin: 0;
    font-size: calc(1.725rem + 3vw);
    text-transform: uppercase;
    line-height: 1;
    display: inline;
    margin-bottom: 0;
    font-weight: bolder;
}


section h1 span {
    color:#655D8A;
    flex: 1;
}

.home h2 {
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
    margin: 4px 0 8px;
    opacity: .7;
    
    width: 100%;
    
}

.home h3 {
    margin: 0 !important;
    display: none;
    font-weight: bold;
    line-height: 1;
} 

p {
    margin: 24px 0;
    font-size: 1.4rem;
    opacity: .8;
    max-width: 900px;
    text-align: left;
    line-height: 26.5px;
    
}

  /* Sidebar styles */
  #profile-image {
    margin:0 auto;
    border-radius: 50%;
    width: 12rem;
    height: 12rem;
    border: 12px solid #343a40;
    
    background-image: url(profile-image-blurred.png);
    background-position: center center;
    background-size: cover;
    text-align: center;
    margin-bottom: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #655D8A;
    color: #fff;
    box-sizing: border-box;
    text-align: center;
    z-index: 6;
    border-right: 12px solid #433b68;
  }

  .sidebar a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
    opacity: .5;
    transition: ease-in all .25s;
  }

  
  .sidebar a:hover {
    opacity: 1;
    transform: scale(1.25);
  }


  
  #topNavbar a {
    opacity: .5;
  }

  #topNavbar a:hover {
    opacity: 1;
  }

  .sidebar a.selected, #topNavbar a.selected {
    opacity: 1;
    transform: scale(1.25);
    
    letter-spacing: 1.2px;
  }

  #topNavbar a {
    font-weight: 500;
  }

  .navbar-logo {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 24px;
    letter-spacing: 1.2px;
  }

  /* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
      display: none;
    }

    .work-item {
        padding: 12px;
    }

    .work-item-image, .work-item-info, .timeframe {
        display: block !important;
        width: 100% !important;
        
    }

    .timeframe
    {
        text-align: left !important;
        margin-top: 8px;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .work-item-image {
        text-align: center;
        width: 100%;
        margin: 20px 0;
    }

    .work-item-image img{
        
        max-width: 200px !important;
        height: auto;
        
    }
    
  .clear {
    opacity: 0;
  }

  .projects {
    flex-direction: column !important;
  }

    .projects-container {
        display: block !important;
    }

    .project-text {
        padding: 4px !important
    }
  .project-text, .project-images-container {
    
    display: block;
    
  }
  }


  .experience-type {
    text-transform: uppercase;
    opacity: .8;
    margin: 20px 0;
    border-bottom: 2px solid rgba(0,0,0,.1);
  }



  .work-item{
    border-bottom: 2px solid rgba(190,190,190,.3);
    padding: 0 !important;
    max-width: 1100px;
  }

  .work-item header:hover {
    opacity: .7;
    background-color: rgba(0,0,0,.1);
    cursor: pointer;
  }

  .work-item header {
    padding: 8px;

  }

  
  .work-item-image {
    width: 15%;
    padding: 0 20px;
    text-align: center;
    
  }

  .work-item-image img {
    
    max-width: 100%;
    max-height: 80px !important;
  }  

  .work-item-info h2 {
    
    text-transform: uppercase;
    font-weight: bolder;
  }

  .work-item-info h3 {
    
    opacity: .7;
    text-transform: uppercase;
  }

  .work-item-description {
    margin: 12px 0;
    font-size: 16px !important;
    display: none;
  }

  .work-item {
    white-space: nowrap;
  }

  .work-item-image, .work-item-info, .timeframe {
    vertical-align: middle;
    display: inline-block;
    white-space: normal;
  }

  .work-item-image {
    max-height: 200px !important;
        
        vertical-align: middle;
        box-sizing: border-box;
  }

  .work-item-info {
    width: 55%;
  }

  

  .timeframe {
    width: 25%;
    color:#655D8A;
    font-size: 12px;
    vertical-align: top;
    font-weight: 600;
    text-align: right;
  }

.projects-container {
    display: flex;
    white-space: nowrap;
    width:100%;
    
    box-sizing: border-box;
    cursor: default;
    max-height: 0;
    overflow: hidden;
    transition: all ease-in .25s;
    margin-bottom: none;
}

.projects {
    
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    white-space: normal;
    justify-content: center;
    background:white
}

.projects h2 {
    margin-bottom: 10px;
}

.project-text {    
    flex: 1 0 75%;
    padding: 18px;
    white-space: normal;
    font-size: 14px;
    
}

.project-images-container {
    flex: 1 0 25%;
    justify-content: center;
}


/* .project-images {
    display: flex;
    flex-wrap: wrap;
    
}

.project-images .item {
    width: 100%;
    background:orange;
    margin: 5px;
    padding-top: calc(50% - 20px);
    position: relative;
    background-size: cover;
    background-position: center center;
    opacity: .8;
    box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
} */

.item {
  cursor: pointer;
}

.item:hover {
  opacity: .9;
  transform: scale(1.05);
}

.skills {
    margin-top: 20px;
    
}

.skills img {
    width: 50px; height: 50px;
    margin-left: 8px;
}

.skills h1 {
    
    border-bottom: 1px solid gray;
    margin-bottom: 16px;
}
    


.show {
    max-height: 2200px !important;
}

.show  .projects {
 margin-bottom: 16px; 
}


.info {
  display: flex;
  flex-direction: row;
  flex-wrap: initial !important;
  justify-content: left;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
}

.info .image {
  box-sizing: border-box;
  padding: 12px;
  width: 30%;
}

.info img {
  border-radius: 4px;
  border-bottom: 10px solid #3795BD ;
  border-right:  10px solid #433b68 ;
  max-width: 100%;
  filter:saturate(75%);
}

.info .text {
  font-size: medium;
  padding: 8px;; 
  width: 60%
}

.info .text p{
  margin-top: 12px;
  font-size: 1rem;
  padding: 8px;
  max-width: 760px;
}

@media only screen and (max-width: 1390px){
  .info {
    flex-direction: column-reverse;
  }
  .info .text 
  {
    width: 100%;
  }
  .info .image {
    padding: 20px;
    min-height: 300px;
    width: 100%;
  }
}


.experience .work-item {
  padding-left: 20px;
  margin-bottom: 8px;
  border-left: 14px solid;
}

.experience .work-item:first-child{
   border-color: #4E31AA;
}

.experience .work-item:nth-child(2){
  border-color:  #2F58CD;
}

.experience .work-item:nth-child(3){
  border-color:  #3795BD;
}

.exp-item {
  margin-bottom: 20px;
}


  
  /* Media query for mobile devices */
  @media only screen and (max-width: 600px) {
    .container {
      flex-direction: column; /* switch flex direction to vertical on mobile */
    }
    
    .image,
    .text {
      flex-basis: 100%; /* set both items to take up 100% on mobile */
    }

    .experience .work-item {
      padding-left: 0;
      padding: 8px;
      margin-bottom: 8px;
      border-left: none;
      border-bottom: 14px solid;
    }
  }

  .project-images-container{
    padding: 12px;
  }

  .project-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    
  }
  .project-images div {
    background-color: red;
    aspect-ratio: 1;
    background-size: cover;
    
  }


  .info, .contact {
    background:#2f2f2f;
    color:white;
  }

  .skills i {
    font-size: 60px;
    margin-left: 8px;
    color: #655D8A;
    padding-bottom: 20px;
    display: inline-block;
  }



  /*MODAL*/

  /* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 8; /* Sit on top */
  left: 0;
  top: 0;
  bottom:0;
  right:0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: auto; /* 15% from the top and centered */
  position: absolute;
  top: 50%;
  left:50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1100px;
  
}

/* The Close Button */
.close {
  color: #aaa;
  
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 2px;
  right: 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
  
}

#modal-image {
  max-width: 100%;
}