@import "font.css";

:root{
  --main-color: #0F0;
}

body{
  font-family: 'Techna', serif;
  font-size: 20px;
  line-height: 1.2;
  background: #f9F9F9;
  color: #000;
  padding: 40px;
  line-height: 1.4;
  overflow-x: hidden; 
  letter-spacing: 0.01em;
}

h1, h2, h3{
  font-weight:normal;
}

a{
  color: #000; 
  text-decoration: none;
  border-bottom: 1px solid var(--main-color);
}

a:hover{
  color: var(--main-color);
}

img{
  width: 100%;
}

ul{
  padding: 0;
}

li{
  list-style: none;
}

figure{
  margin:0;
  width: 90%;
}


header{
  // display: grid;
  // grid-template-columns: 30% 30% calc(40% - 40px);
  // grid-gap: 20px;
  margin-bottom: 60px;
  display:flex;
}

header .title{
  width: 90%;
}

header h1{
  font-size: 5rem; 
  margin:0;
  letter-spacing: 1px;
}

header h2{
  font-size: 20px;
}

header .about-btn{
  text-align: right; 
  font-size: 20px;
  cursor: pointer; 
  margin-top: 50px;   
}

header .about-btn:hover{
  color: var(--main-color); 
}

.introduction{
  width: 70%;
  position: absolute; 
  top: 150px;
  right: -200%;
  padding:0 80px 20px 40px; 
  
  // max-height: 0;
  // overflow: hidden;
  -o-transition: all 0.8s ease;
  transition: all 0.8s ease;
  background: var(--main-color); 
}

input:checked ~ .introduction {
  // max-height: 1500px;
  right: 0px; 
  -webkit-transition: all 0.8s ease;
  -o-transition: all 0.8s ease;
  transition: all 0.8s ease;
  
}

input + label{
  width: 100%;
  text-align: right;
}


.span-nochecked, .span-checked{
  cursor:pointer;
  padding-right: var(--big-margin);
  transition: all 0.5s ease;
  margin-bottom: var(--normal-margin);
}

.span-nochecked:hover, .span-checked:hover{
  color: var(--main-color);
}
 
input + label .span-nochecked { display: block; }
input + label .span-checked { display: none;}

input:checked + label .span-nochecked { display: none; }
input:checked + label .span-checked { display: block; }


main{
  margin-bottom: 100px;
}

.project-gallery{
  display: grid;
  grid-template-columns: 100%;
}

.project-gallery h2{
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--main-color);
  font-size: 20px; 
}

.project-gallery h3{
  font-size: 16px;
  font-weight: normal;
}

.project-gallery .link:before{
  content: "⬈";
  color: var(--main-color);
  font-size: 35px;
}

.project-gallery .pdf:before{
  content: "⬇";
  color: var(--main-color);
}

@media only screen and (min-width: 48em) {
  .project-gallery{
    grid-template-columns: 30% 30% 30%;
    grid-gap: 40px;
  }

  .introduction{
    width: 40%;
    right: -100%;
  }

}



