/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Semi-bold: 600
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing
-0.5px
0.75px

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

/* COLORS */

:root {
  --color-black: #111;
  --color-white: #fff;
  --color-accent: #eea;

  --color-dotexe: rgb(84, 95, 252);
  --color-artsyaffairs: rgb(82, 228, 147);
  --color-bachelor: rgb(228, 51, 75);
  --color-spaceracer: rgb(255, 208, 121);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

*:focus {
  outline: none;
  box-shadow: 0 0 0 0.3rem var(--color-black);
}

html {
  /* font-size: 10px; */

  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
}

body {
  /* font-family: "Inter", sans-serif; */
  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-black);
  /* Only works if there is nothing absolutely positioned in relation to body */
  overflow-x: hidden;
  overflow-y: scroll;
}

p {
  color: var(--color-black);
}

.website-content-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  justify-self: center;

  width: 100vw;
}

main {
  width: 80%;
  height: auto;
  padding: 2.4rem 2.4rem 0rem 4.8rem;
  padding: 4.8rem 4.8rem 2.4rem 4.8rem;
  display: inline-block;

  border-left: 1px solid var(--color-black);
}

/**************************/
/* GENRAL REUSABLE COMPONENTS */
/**************************/
.section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-header {
  display: flex;
  text-align: end;
  /* align-items: center; */
  justify-content: space-between;
  height: 12rem;
  border-bottom: 1px solid var(--color-black);

  padding-bottom: 2.4rem;
}

.section-header h1 {
  align-self: end;
}
.section-header h3 {
  align-self: end;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  vertical-align: top;
}

.heading-primary {
  text-transform: uppercase;
  font-size: 10.4rem;
  line-height: 1;
}

.heading-secondary {
  font-size: 4.8rem;
  line-height: 1.2;
}

.heading-tertiary {
  font-size: 2.8rem;
  line-height: 1.2;
}

.border-bottom-black {
  border-bottom: 1px solid var(--color-black);
}
.border-bottom-white {
  border-bottom: 1px solid var(--color-white);
}

.hide {
  display: none !important;
}

/**************************/
/* BUTTONS */
/**************************/

.btn {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 3rem;
  width: 3rem;

  border: none;
  border-radius: 0.5%;
  background-color: var(--color-black);
  box-shadow: inset 0 0 0 3px var(--color-black);

  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover,
.btn:active,
.btn:focus {
  box-shadow: inset 0 0 0 3px var(--color-black);
  background-color: var(--color-white);
}

.btn--big {
  height: 6.4rem;
  width: 6.4rem;
  margin: 0.2rem;
}

.btn.transparent-bg:hover,
.btn.transparent-bg:focus {
  background-color: transparent;
}

.btn:hover ion-icon,
.btn:focus ion-icon {
  color: var(--color-black);
}

.btn--learn-more:link,
.btn--learn-more:visited {
  height: 6rem;
  width: fit-content;

  font-size: 2.4rem;
  font-weight: 700;
  padding: 1.6rem;

  background-color: var(--color-black);
  color: var(--color-white);
  box-shadow: inset 0 0 0 3px var(--color-white);
}

.btn--learn-more:hover,
.btn--learn-more:active,
.btn--learn-more:focus {
  background-color: var(--color-white);
  color: var(--color-black);
}

.btn--color-reverse {
  background-color: var(--color-black);
  box-shadow: inset 0 0 0 3px var(--color-white);
}

.btn--color-reverse:hover,
.btn--color-reverse:focus {
  box-shadow: inset 0 0 0 3px var(--color-white);
  background-color: var(--color-white);
}

.btn--color-reverse:hover ion-icon,
.btn--color-reverse:focus ion-icon {
  color: var(--color-black);
}

.btn--icon {
  width: 90%;
  height: 90%;

  color: var(--color-white);
}

/**************************/
/* GRID */
/**************************/

.grid {
  display: grid;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--cell-spread-1to2 {
  grid-column: 1/3;
}
.grid--cell-spread-2to3 {
  grid-column: 2/4;
}
.grid--cell-spread-3to4 {
  grid-column: 3/5;
}
.grid--cell-spread-full {
  grid-column: 1/-1;
}

@keyframes appearFromBottom {
  from {
    opacity: 0;
    transform: translateY(50%);
  }
  to {
    opacity: 1;
  }
}

.grid--cell {
  display: grid;
  flex-direction: column;
  gap: 0.4rem;
  height: fit-content;
  padding: 4.8rem 2.4rem 4.8rem 2.4rem;
}

.grid--cell-image:link,
.grid--cell-image:visited {
  display: flex;
  align-content: center;
  justify-content: center;
  overflow: hidden;

  background-color: var(--color-black);
  border: 1px solid var(--color-black);
  border-radius: 5px;
}

a.grid--cell-image:focus,
a.grid--cell-image:hover {
  box-shadow: 0px 0px 0px 3px var(--color-white);
}

.grid--cell-image img {
  width: 100%;
}

.grid--cell-infotext {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  font-size: 2rem;
  font-weight: 500;
  padding: 0 0.4rem;
}

.project-features {
  gap: 2.4rem;
  padding-bottom: 2.4rem;
}

.grid--cell-description {
  display: grid;
  padding: 4.8rem 2.4rem 4.8rem 2.4rem;

  gap: 2.4rem;
}
.grid--cell-description h2 {
  padding-bottom: 0.6rem;
}

.grid--cell-description .grid--cell-description-text {
  text-align: justify;
  padding-bottom: 2.4rem;
}

.grid--cell-description-spacer {
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--color-white);
}

.grid--project-description-cols {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4.8rem;
}

.grid--project {
  grid-template-columns: repeat(4, 1fr);

  border-bottom: 1px solid var(--color-black);
  padding-bottom: 4.8rem;
}

.grid--project .grid--cell {
  border-bottom: 0px solid;
  padding: 4.8rem 2.4rem 0rem 2.4rem;
  /* grid-column: 2; */
}

/**************************/
/* ICONS */
/**************************/

ion-icon {
  width: 100%;
  height: 100%;
}
