
html {
    box-sizing: border-box;
  }
  *,
  *:before,
  *:after {
    box-sizing: inherit;
    padding: 0;
    margin: 0;
  }

@font-face {
  font-family: 'Bahnschrift';
  src: url('/resources/fonts/Bahnschrift-Font-Family/BAHNSCHRIFT.TTF') format('truetype');
}

@font-face {
  font-family: 'Alliance-no-1';
  src: url('/resources/fonts/Alliance-no1/Degarism\ Studio\ -\ Alliance\ No.1\ Light.otf') format('opentype');

}

body {
  padding: 25px 21px 21px 21px;
  height: 100%;
}

main {
  width: 90vw;
  height: 100vh;
}

a {
  color: black;
  transition: 0.15s ease-out;
  text-decoration: none;
}


/* fonts */

.nav-mobile a, h1 {
  font-family: 'Bahnschrift';
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;

  text-decoration: none;
}

#contact, #projects, #blog > p {

  font-family: 'Bahnschrift';
  -webkit-text-stroke-width: 0px;
  -webkit-text-stroke-color: black;

  text-decoration: none;

}

h1{
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

p {
  font-family: 'Bahnschrift';
  text-transform: uppercase;
}

/* nav styling */

.nav-mobile {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  padding: 25px 21px 0;
  left: 50%;
  transform: translate(-50%, -50%);

}

.current {
  background-color: #fa770c !important;
}

/*  menu  dropdown for mobile, navbar for desktop */

.dropdown-menu {
    /* when toggling visibility display value has to change
    between flex and none */
  display: none;
  flex-direction: column;
  width: 100%;
  height: 20rem;
  align-items: center;
}


.dropdown-menu-item{
  margin-top: 2.5rem;
  height: fit-content;
}

/* grid styling */

section {
  margin-top: 70px;
  row-gap: 10px;

  display: grid;
  grid-auto-rows: minmax(min-content, max-content);
  flex-flow: row;

  align-items: center;
  justify-items: center;

  text-transform: justify;

}

/* contact section styling */

.p {
  text-align: justify;
  margin: 0 auto;
  width: 30;
}

.contact-item{
  text-align: justify;
  text-align-last: center;
  line-height: 1.2;
}

.space {
  margin: 17px 0;
}

.logo {
  max-width: 182px;
  max-height: auto;
  margin: 0 auto 32px;

  grid-row: 1 / 2;
  grid-column: 1 / 2;
}

.blob {
  visibility: hidden;
}

img {
  width: 100%;
  height: auto;
}

/* projects styling */

.projects-container {
  height: 18vw;
  width: 18vw;
  
  border-radius: 15px;
  overflow: hidden;
}

.project {
  height: inherit;
  width: inherit;

}

.one {
  background-color: blue;
}

.two {
  background-color: tomato;
}

.three {
  background-color: orange;
}

/* footer: github & bubble page indicators */
.github-logo {
  width: 80px;

  position: fixed;
  bottom: 21px;
  left: 21px;
}

.nav-bubbles-container-mobile, .nav-bubbles-container-desktop {
  width: 70px;
  height: 10px;

  display: flex;
  justify-content: space-between;

  position: fixed;
  bottom: 31px;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-bubbles {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #C4C4C4;
  
}

/* colors styling */
#burger-nav-button, hr {
  color: #7879f1;
  fill: #7879f1;
}

a:hover {
  color: #fa770c;
  -webkit-text-stroke-color: #7879f1;
}

/* hide in mobile */
#double-arrow, .purple-container,
.nav-desktop, .logo {
  display: none;
}








@media screen and (min-width: 800px) {

  #double-arrow,
  .logo {
    display: block;
  }

  h1 {
    -webkit-text-stroke-width: 0px;
  }

  body {
    overflow: hidden;
  }

  main {
    width: 100%;
    height: fit-content; 
  
    margin-top: 140px;

    display: flex;
    gap: 10vw;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  section {
    height: 100%;
    min-width:100%;
  
    display: grid;
    grid-template-rows: 25% 10% 25% 25% 15%;
    grid-template-columns: minmax(auto, 110px) minmax(min-content, 25%) minmax(min-content, auto) minmax(min-content, 300px) minmax(auto, 110px);
    position: relative;

    scroll-snap-align: start;

  }

  #blog {
    min-width: 89%;
  }

  .background-container {

    margin-top: 204px;
    padding-right:12px;
    padding-left: 30px;
    height: fit-content;

    position: absolute;
    z-index: -1;

    top: 30px;
    right: 10px;
  }


  .nav-desktop {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    top: 0;
    left: 0;
    position: absolute;

    font-family: 'Alliance-no-1';
    letter-spacing: 0.1rem;
    font-size: 1.15rem;
  }

  .logo {
    grid-row: 2 / 4;
    grid-column: 2 / 4;
  
    max-width: 20%;
    margin: 10px;
    z-index: 5;
  }

  .blob {
    visibility: visible;
    position: absolute;

    grid-row: 3 / 5;
    grid-column: 3 / 4;
    justify-self: stretch;
  }

  .nav-bubbles-container-mobile {
    display: none;
  }

  .nav-bubbles-container-desktop {
    grid-row: 2 / 3;
    grid-column: 2 / 3;

    position: relative;
    bottom: -35px;
    left: 0;
    transform: translate(0, 0);
  }

  #double-arrow {
    width: 80px;
    position: absolute;
    bottom: 400px;
    right: 400px;

    transition: 0.2s linear 0.1s;
  }
  .grid-area-one {
    grid-row: 2 / 3;
    grid-column: 4 / 5;

    align-self: end;
  }

  .grid-area-two {
    grid-row: 3 / 4;
    grid-column: 4 / 5;

    align-self: flex-start;
  }

  .grid-area-three {
    grid-row: 2 / 3;
    grid-column: 2 / 3;

  }

  .grid-area-four {
    grid-row: 3 / 4;
    grid-column: 2 / 3;

    margin: 51px 0 39px;

    align-self: start;
   
  }

  .purple-container {
    display: inline-block;
    background-color: #7879f1;
    width: 100px;
    height: 140px;

  }



  .purple-container-image {
    display: block;
    width: 78px;
    height: 78px;

    margin: 15px auto 47px;
  }

  #burger-nav-button, .github-logo, .nav-mobile {
    display: none;

  }

  .bottom {
    position: absolute;
    bottom: 0;
    right: 0;
  }
}

@media screen and (max-width: 1382px) and (min-width: 800px) {
  .logo, .blob {
    grid-row: 1 / 2;
    grid-column: 2 / 5;
  }
}

@media screen and (min-height: 800px) and (max-height: 1079px) {
  #blog {
    min-width: 95%;
  }
  
  #double-arrow {
    bottom: 150px;
  }
}

