:root {
  --dark: #14142b;
  --lightdark: #232639;
  --lightblue: #9ac1f0;
  --lightgreen: #72fa93;
  --green: #81b29a;
  --orange: #e07a5f;
  --yellow: #f2cc8f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  font-family: system-ui;
  background: var(--dark);
  color: white;
  text-align: center;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Sans-Serif;
  margin: 0;
  background-image: linear-gradient(
    285deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.5) 21%,
    rgba(255, 255, 255, 0) 100%
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg-img {
  position: absolute;
  bottom: 0;
  right: 20%;
  max-height: 75vh;
}

.page-container {
  padding-bottom: 2.5rem;
}

button {
  outline: none;
  border: none;
}

.no_image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(to top left, #3d405b 25%, #ff9966 100%);
}

.no_image_text {
  text-align: center;
}

.project_card {
  margin: 3em auto;
  display: flex;
  max-width: 80em;
  height: 25em;
  background: rgba(0, 0, 0, 0.21);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(11.6px);
  -webkit-backdrop-filter: blur(11.6px);
  border: 1px solid rgba(0, 0, 0, 0.26);
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 2px, rgba(0, 0, 0, 0.07) 0px 2px 4px,
    rgba(0, 0, 0, 0.07) 0px 4px 8px, rgba(0, 0, 0, 0.07) 0px 8px 16px,
    rgba(0, 0, 0, 0.07) 0px 16px 32px, rgba(0, 0, 0, 0.07) 0px 32px 64px;
}

.project_head {
  margin: auto !important;
  padding: 1em;
  display: block;
  max-width: 32em;
  max-height: 10em;
  text-align: center;
}

.project_box {
  overflow: hidden;
  text-align: left;
}

.project_box h2 {
  font-weight: 800;
  font-size: 180%;
  letter-spacing: 0.1em;
  margin-bottom: 0.5em;
}

.project_box h3 {
  font-weight: 600;
  font-size: 120%;
  margin-top: 0.5em;
}

.project_image {
  width: 40%;
}

.img_in_box {
  width: 100%;
  height: 100%;
  border-radius: 10px 0 0 10px;
  max-height: 25em;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  object-position: 50% 0;
}

.project_description {
  text-overflow: ellipsis;
  overflow: hidden;
}

.description_text {
  line-height: 1.2;
}

.project_info {
  position: relative;
  width: 60%;
  padding: 1em;
  margin-left: 1em;
  margin-right: 1em;
  line-height: 1.8;
}

.tools-btn {
  background-color: var(--green);
  width: 10em;
  height: 1.2em;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: 5px;
}

.tools-btn:hover {
  filter: brightness(1.1);
  font-weight: 700;
}

.visit_page-btn {
  background-color: var(--yellow);
  border-radius: 10px;
  width: 6em;
  height: 3em;
  font-size: 120%;
  font-weight: 600;
  cursor: pointer;
  margin-right: 1em;
}
.visit_page-btn:hover {
  filter: brightness(1.1);
  font-weight: 700;
}
.github-btn {
  background-color: black;
  border: var(--yellow) solid 1px;
  color: var(--yellow);
  border-radius: 10px;
  width: 6em;
  height: 3em;
  font-size: 120%;
  font-weight: 600;
  cursor: pointer;
}
.github-btn:hover {
  color: #f4debb;
  border: #f4debb solid 1px;
  font-weight: 700;
}

.card_buttons-div {
  position: absolute;
  top: 80%;
  align-items: center;
  justify-content: center;
}

h1 {
  font-family: "Bodoni Moda", serif;
  font-size: 8em;
  font-style: italic;
  font-weight: 400;
  margin: -0.5em 0;
  padding: 0.1em;
}
h1:first-child {
  text-indent: 0.8em;
}
h1:nth-child(2) {
  text-indent: 0.4em;
}

h3 {
  font-family: Roboto;
  font-weight: 100;
  font-size: 1em;
}

.frontpage-logo-container {
  z-index: 1;
  position: absolute;
  top: 91%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25em;
  height: 60px;
}

.frontpage-logo-container img {
  height: 50px;
}

.frontpage-logo-container a:hover {
  border-bottom: 2px var(--orange) solid;
}

.logos {
  margin-top: 0.2em;
  display: flex;
  justify-content: space-between;
}

.frontpage-names {
  margin-bottom: 2em;
}

.hidden {
  display: none;
}

.frontpage-info-container {
  z-index: 1;
  width: 38em;
  position: relative;
  padding-top: 20vh;
  margin-left: 15%;
  text-align: left;
}

.frontpage-location {
  margin-bottom: 0.5em;
  margin-left: 0.5em;
  text-align: center;
  letter-spacing: 0.5em;
  padding-top: 0.8em;
}

.boxes {
  display: flex;
  justify-content: space-between;
  height: 3.8em;
  width: 38em;
}

.box {
  color: white;
  font-size: medium;
  height: 4em;
  width: 30em;
  text-align: center;
  cursor: pointer;
}

.box:hover {
  filter: brightness(1.1);
  letter-spacing: 0.1em;
  font-weight: 800;
}

.box:first-child {
  border-radius: 10px 0 0 30px;
  background-color: #81b29a;
}
.box:nth-child(2) {
  background-color: #f2cc8f;
}
.box:nth-child(3) {
  background-color: #e07a5f;
}
.box:nth-child(4) {
  border-radius: 0 10px 30px 0;
  background-color: #3d405b;
}

.box-text {
  position: relative;
  top: 15%;
  margin: 0;
  -ms-transform: translateY(55%);
  transform: translateY(55%);
}

.footer {
  background: black;
  width: 100%;
  height: 2rem;
}

/* --- NAVBAR */
.menu-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  color: #ffffff;
  padding: 20px;
  z-index: 10;
  -webkit-user-select: none;
  user-select: none;
  box-sizing: border-box;
}

.menu-logo {
  line-height: 0;
  margin: 0 0px;
}

.menu-logo:hover {
  line-height: 0;
  margin: 0 0px;
  border-bottom: none !important;
}

.menu-logo-mobile {
  display: none;
}

.menu-icons:hover {
  border-bottom: 2px var(--orange) solid;
}

.menu-logo img {
  top: -15px;
  height: 100px;
  width: 200px;
  flex-shrink: 0;
}

.menu-container a {
  text-decoration: none;
  font-weight: 100;
  color: white;
  transition: color 0.3s ease;
  letter-spacing: -0.1em;
}

.menu-container a:hover {
  border-bottom: 2px var(--orange) solid;
}

.menu-container input {
  display: block;
  width: 35px;
  height: 25px;
  margin: 0;
  position: absolute;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
}

/* Burger menu */
.menu-container span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #cdcdcd;
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

.menu-container span:first-child {
  transform-origin: 0% 0%;
}

.menu-container span:nth-child(3) {
  transform-origin: 0% 100%;
}

.menu-container input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(3px, -1px);
  background: #232323;
}

.menu-container input:checked ~ span:nth-child(4) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

.menu-container input:checked ~ span:nth-child(3) {
  transform: rotate(-45deg) translate(-5px, 11px);
}

.menu ul {
  list-style: none;
}

.menu li {
  padding: 10px 0;
  font-size: 22px;
}

/*////////////////*
/* mobile styles */
/*///////////////*/
@media only screen and (max-width: 900px) {
  h1 {
    font-size: 3.5em;
    text-align: center;
  }

  h1:first-child {
    text-indent: 0;
  }
  h1:nth-child(2) {
    text-indent: 0;
  }

  .bg-img {
    display: none;
  }

  .frontpage-names {
    margin-bottom: 1em;
  }

  .project_box h3 {
    font-size: 1em;
    margin-top: 0;
  }

  .project_box h2 {
    font-size: 100%;
  }

  .project_card {
    display: block;
    margin: 3em 1em;
    padding-bottom: 1em;
    height: auto;
  }

  .project_info {
    width: 100%;
    margin-left: 0;
  }

  .project_image {
    width: 100%;
    max-height: 20em;
  }

  .img_in_box {
    border-radius: 10px 10px 0 0;
  }

  .description_text {
    line-height: 1.4;
  }

  .card_buttons-div {
    position: relative;
    margin-top: 1em;
  }

  .tools-btn {
    width: 8em;
  }

  .visit_page-btn {
    height: 1.3em;
  }

  .github-btn {
    height: 1.3em;
  }

  .frontpage-info-container {
    width: 20em;
  }

  .frontpage-info-container h3 {
    font-size: 0.8em;
  }

  .frontpage-logo-container {
    width: 17em;
  }

  .boxes {
    width: 20em;
  }

  .menu-container {
    flex-direction: column;
    align-items: flex-end;
  }

  .menu-logo {
    display: none;
  }

  .menu-logo-mobile {
    display: block;
    position: absolute;
    top: -28%;
    left: -50px;
  }

  .menu {
    display: none;
    position: absolute;
    box-sizing: border-box;
    border-radius: 0 0 0 30px;
    width: 300px;
    right: 0;
    top: 0;
    margin: -20px;
    padding: 75px 50px 50px;
    background: #3d405b;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
  }

  .menu-container input:checked ~ .menu {
    display: block;
  }

  .frontpage-info-container {
    margin: auto;
  }
}

.tsparticles {
  z-index: -1;
}

/*////////////////*
  /* desktop styles */
/*///////////////*/
@media only screen and (min-width: 900px) {
  .menu-container {
    width: 100%;
  }

  .menu-container a {
    color: #ffffff;
  }

  .menu-container input {
    display: none;
  }

  /* Burger menu */
  .menu-container span {
    display: none;
  }

  .menu {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
  }

  .menu ul {
    display: inline-table;
    padding: 0;
  }

  .menu li {
    display: table-cell;
    vertical-align: middle;
    padding: 0 20px;
  }
}
