@import url("https://fonts.googleapis.com/css?family=Raleway:200,100,400");

/* ========================= /
		 GENERAL CSS
/======================== */

html,
body {
  --navbar-width: 20vw;
  --magic-number: 0.09719; /* tan(11°)/2 ????????????????????? */
  --content-width: 100vw;
  --skew-padding: calc(var(--content-width) * var(--magic-number));

  font-family: "Raleway", sans-serif;
  width: 100%;
  height: 100vh;

  position: absolute;
  font-size: 100%;
  background-color: rgb(22, 22, 22);
}

#page {
  width: 100%;
  height: 100vh;
}

#blurPicture {
  height: 100%;
  width: 100vw;
  position: fixed;
  background-image: url(../media/bg3.jpg);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
  filter: blur(7px) opacity(0.8);
}

#blurVideo {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  filter: blur(5px);
}

#innerpage {
  width: calc(100% - var(--navbar-width) - 5vw);
  left: calc(var(--navbar-width) + 5vw);
  position: relative;
  height: 100%;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

.blueheading {
  color: #0488ac;
}

/* ========================= /
		 INTRO
/======================== */

#intro {
  width: 100%;
  height: 100vh;
  left: 0;
  top: 0;
  background-color: rgb(22, 22, 22);
  z-index: 20;
  position: absolute;
  transition: opacity 0.3s ease-out;

  /*display: none;  CHANGE!!! */
}

#intro .data {
  z-index: 20;
  letter-spacing: 9px;
  font-weight: 600;
  position: absolute;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  z-index: 50;
  color: white;
  font-size: 2rem;
  white-space: nowrap;
}

/* ========================= /
		 NAVIGATION
/======================== */

#navbar {
  width: var(--navbar-width);
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  left: 5vw;
  position: fixed;
  height: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
}

#personalicon {
  margin: 10% 0;
}

#navbar::before {
  background-color: #02172a;
  position: absolute;
  content: " ";
  display: block;
  width: 100%;
  transform: skew(-7deg) rotate(-7deg);
  top: 8vw;
  height: calc(100% - 8vw);
  z-index: 0;
  border-radius: 20px;
}

.active::before {
  background-color: #0488ac;
  position: absolute;
  content: " ";
  display: block;
  width: 75%;
  transform: translateX(-50%);
  height: 100%;
  z-index: -1;
  left: 50%;
  margin-top: -1rem;
}

#circle {
  background-color: white;
  height: 11vw;
  width: 11vw;
  border-radius: 50%;
  display: inline-block;
  background-image: url(../media/IMG_3170.png);
  background-size: 135%;
  background-repeat: no-repeat;
  margin-left: 50%;
  background-position-y: 40%;
  background-position-x: 35%;
  transform: skew(-7deg) rotate(-7deg) translateX(-50%);
}

#navbar a {
  display: block;
  text-align: center;
  padding: 16px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  color: white;
  font-size: 3vh;
  z-index: 1;
  transform: skew(-7deg) rotate(-7deg) translateX(0%);
}

#navbar span {
  transform: translateY(calc(var(--skew-padding) / 2));
}

#navbar a:hover {
  background-color: #000;
}

/* ========================= /
			HEADER
/======================== */

#header {
  position: relative;
  height: 100%;
  width: 100%;
}

#headerVideo {
  position: relative;
}

#headertext {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  position: relative;
  width: 55%;
  padding: 45px;
  background-color: #00000052;
  border-radius: 20px;
}

#headercontent {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
}

.txt-type {
  border-right: 2px;
  border-style: solid;
  animation: blink 1.2s step-end infinite;
  height: 2.5rem;
}

@keyframes blink {
  from,
  to {
    border-style: solid;
  }
  50% {
    border-style: none;
  }
}

/* ========================= /
			CONTENT
/======================== */

.personalinfo {
  font-size: 1.5rem;
}

.personalpage {
  top: 0 !important;
  transform: translateX(-50%) !important;
  margin-top: 3%;
}

.personalinfo > table {
  border-collapse: separate;
  border-spacing: 10px;
}

#content {
  background-color: rgb(22, 22, 22);
  padding: 50px;
  color: white;
}

.text-fade {
  width: 30%;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s all ease-in-out;
}

.text-appear {
  opacity: 1;
  transform: translateY(0px);
}

.contactbar {
  display: grid;
}

.contactbar > a {
  color: white;
  padding: 10px;
  float: left;
  text-decoration: none;
}

.contactbar > a > i {
  width: 30px;
}

@media only screen and (max-width: 870px) {
  #headertext {
    width: 80%;
    padding: 20px;
    margin-top: 3%;
  }
}

@media only screen and (max-width: 800px) {
  #navbar {
    left: 2vw;
  }
  .personalinfo {
    font-size: 1rem;
  }
}
