@font-face{
    font-family: Eightgon;
    src: url("fonts/eightgon-font/Eightgon-OGn6p.ttf");
}

.space-grotesk {
  font-family: "Space Grotesk", sans-serif;
  font-style: normal;
}

  /*Headings*/
  
h1{
    color: #4a6db1;
    font-weight: bold;
    font-size: 80px;
    font-family: Eightgon;
}

h3{
    color: #4a6db1;
    font-weight: bold;
    font-size: 30px;
    font-family: Eightgon;
}

h4{
    color: #4a6db1;
    font-weight: bold;
    font-size: 20px;
    font-family: Eightgon;
}

/* Body text (as well as links, list items, etc */
p{
    color: #4a6db1;
    font-size: 25px;
    margin-left: 20px;
    margin-right: 20px;
    font-family: "Space Grotesk", sans-serif;
}

a{
  font-family: "Space Grotesk", sans-serif;
}

li{
    color: #4a6db1;
    font-weight: bold;
    font-size: 22px;
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.8;
}

body{
    background-color: rgb(241, 246, 248);
    margin: 0;
    padding: 0;
    height: 100%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    animation: slowfade 1s ease-out forwards;
}

/*Slowfade animation - slowly fade in website content on page load */
@keyframes slowfade {
    0% {
      transform: translateY(1%);
      opacity: 0;
      visibility: hidden;
    }
    100% {
      transform: translateY(0%);
      opacity: 1;
      visibility: visible;
    }
  }
/*Used for the contact me button */
  button{
    color: #ffffff;
    font-family: Eightgon;
    font-size: 40px;
    border-radius: 25px;
    background-color: #4a6db1;
    padding: 10px 20px;
    cursor:pointer;
    border: 5px solid #dfeaf9;
  }

  /*Styling the Contact Me form */

  form{
    position: relative;
    margin: 100px;
    border: 2px solid #4a6db1;
    border-radius: 25px;
    background-color: #dfeaf9;
  }

  /*Styling the contact me textarea */ 
  input, textarea{
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    width: 300px;
    height: 50px;
    box-sizing: border-box;
    border: 1px solid #7d98ce;
    border-radius: 15px;
    text-align: center;
  }

  input:focus, textarea:focus{
    outline-style: solid;
    outline-width: 3px;
    outline-color: #83cfe4;
  }

  textarea{
    padding: 13px;
    color: #5b5555;
  }

  /*Styling the table and footer */
  table, th, td{
    color: #4a6db1;
    font-size: 16px;
    font-family: "Space Grotesk", sans-serif;
    border-collapse: collapse;
    padding: 10px;
    border: 2px solid navy;
    border-radius: 25px;
    margin: 10px;
  }

  footer{
    list-style-type: none;
    font-family: "Space Grotesk", sans-serif;
    padding: 25px;
    background-color: #4a6db1;
    color: white;
    overflow: hidden;
  }

  /*Contentbox, for general content that needs to stand out slightly */
#contentbox{
        border: 3px solid #4a6db1;
        margin: 0px;
        background-color: #dfeaf9;
        text-align: center;
        margin: 50px 50px 50px 50px;
}

 /* Styling the navigation bar */
#navigation{
    list-style-type: none;
    margin: 0px;
    padding: 10px;
    margin: 20px 20px 20px 20px;
    background-color: #4a6db1;
    color: white;
    overflow: hidden;
}

#navigation a{
    display: block;
    width: 150px;
    background-color: #4a6db1;
    color: linen;
    text-decoration: none;
    padding: 10px 10px;
    
}

#navigation li{
  display: inline-block;
  justify-content: center;
}

#nav-icons{
    float: right;
}

#navigation a:link{
    color: linen;
}

#navigation a:visited{
    color: white;
}

#navigation a:hover{
    background-color: lightblue;
    color: navy;
}

#navigation a:active{
    color: navy;
}

#submit-button{
    font-size: 15px;
}


/* Blog elements - styling the blog aside and blog posts */ 
.blogaside{
  float: left;
  margin-left: 10px;
  width: 26%;
  border: 2px solid #4a6db1;
  background-color: #dfeaf9;
  text-align: center;
  position: sticky;
  top: 50px;
}

.blogpost{
  float: right;
  width: 70%;
  border: 2px solid #4a6db1;
  background-color: #dfeaf9;
  text-align: center;
  margin-bottom: 20px;
  margin-right: 10px;
}

/* Compress blog text initially to 3.5lh */
.blogtext{
  font-family: "Space Grotesk", sans-serif;
  height: 3.5lh;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  transition: height 0.5s;
}
/* Below is the code to create the read more button */
input[type="checkbox"]{
  bottom: 0;
  clip: rect(0);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

input[type="checkbox"]:not(:checked) ~ label::after{
  content: "Read More";
}

input[type="checkbox"]:checked ~ label::after{
  content: "Read Less";
}
/* Unravel the blog post to full height */
input[type="checkbox"]:checked ~ .blogtext{
  line-clamp: unset;
  -webkit-line-clamp: unset;
  height: auto;
}

label{
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  color: #4a6db1;
  margin-top: 1lh;
  display: inline-block;
  font-size: 20px;
}

.row:after{
  content: "";
  display: table;
  clear: both;
}

/* Style each skill bubble */
.bubble{
  width: 15%;
  font-size: 10px;
  border: 2px solid #19395a;
  border-radius: 10px;
  margin: 5px;
  text-align: center;
  display: inline-block;
  color: #19395a;
  transition: transform 250ms;
}

.bubble p{
  font-size: 15px;
}

.bubble:hover{
  transform: translateY(-10px);
}

/* Style each individual filter background */
.filter{
  width: 25%;
  font-size: 20px;
  border: 2px solid #19395a;
  border-radius: 10px;
  margin: 5px;
  padding: 2px;
  text-align: center;
  display: inline-block;
  font-family: Eightgon;
  color: #19395a;
  cursor: pointer;
}

.filter.projects{
  background-color: #e1baba;
}

.filter.design{
  background-color: #c1e2a6;
}

.filter.coding{
  background-color: #a2d7e0;
}

.filter.misc{
  background-color: #d9a2e7;
}

/* Style projects gallery */

.gallery{
  margin-bottom: 40px;
}

.gallery-cell {
  width: 48%;
  height: 400px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  margin-right: 10px;
  background: lightblue;
  color: white;
}

.gallery-cell.is-selected {
  background: lightblue;
  color: #4a6db1;
}

.gallery-cell:before {
  display: block;
  color: white;
}

/* CSS media queries for mobile. */
@media only screen and (max-width: 600px){
  img{
    height: 50%;
    width: 50%;
  }

  .technologies{
    text-align: center;
    margin-left: 150px;
    height: 50%;
    width: 50%;
  }

  h1{
    font-size: 50px;
  }

  p{
    font-size: 20px;
  }

  .blogaside{
    margin-top: 0px;
    margin-bottom: 20px;
    width: 96%;
    border: 2px solid #4a6db1;
    background-color: #dfeaf9;
    text-align: center;
    position: flex;
  }

  .blogpost{
    width: 96%;
  }

  .blogtext{
    height: 1lh;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    transition: height 0.5s;
  }

  ul{
    font-size: 10px;
  }

  .gallery-cell p{
    font-size: 15px;
  }

  .gallery-cell a{
    font-size: 20px;
  }

  h3{
    font-size: 20px;
  }

}