/* *
-- 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



- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128


--- 06 BORDER-RADIUS
 Default: 9px

--- 07 WHITESPACE
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
          */

:root {
  /* --nav-color: rgba(255, 255, 255, 0.97); */
  --background-color-: #f8f9fa;
  --link-color: #212529;
  --text-color: #2a2a2a;
  --secondary-text: #a4a5b8;
  --primary-color: #3a435d;
  --accent-color: #0071ff;
  --section-grey: #f0f0f0;
  --modal-window: #f0f0f0;
}

.darkmode {
  --background-color: #1a1a1a;
  --base-variant: #121212;
  --link-color: #e7f5ff;
  --text-color: #e0e0e0;
  --heading-color: #77b2e6;
  --hover-color: #74c0fc;
  --section-grey: #2a2a2a;
  --modal-window: #1a1a1a;
}

html {
  /* font-size: 10px; */
  /* default font size - 16px */
  /* 10px / 16px = 0.625 = 62.5% */
  /* Percentage of user's browser font-size setting */
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

body {
  font-family: "Lato", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  position: relative;
}

/* ****************************************************************/
/* GENERAL REUSABLE COMPONENTS */
/* **************************************************************** */

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.nav-container {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.grid {
  display: grid;
  gap: 9.6rem;
}

.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);
}

.column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
}

.heading-secondary {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--heading-color);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 7rem;
  /* margin-top: 9.6rem; */
}

.img {
  border-radius: 9%;
  width: 4rem;
  height: 4rem;
}

.link:link,
.link:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 2rem;
  color: var(--link-color);
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: var(--hover-color);
}

.strong {
  font-weight: 700;
}

.section--grey {
  background-color: var(--section-grey);
  padding: 6.8rem;
  margin-top: 7rem;
  /* box-shadow: 0 0px 10px 10px rgba(0, 0, 0, 0.1); */
}

.section--no-color {
  padding: 6.8rem;
  margin-top: 7rem;
  /* box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); */
}

.main {
  position: relative;
}

/* .hover {
  position: fixed;
  top: 44rem;
  left: 10rem;
} */

/* Modal window */

.info-btn {
  border: none;
  color: none;
  cursor: pointer;
  background-color: transparent;
}

.info-btn:hover {
  transform: scale(1.1);
}

.info-window {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 65rem;
  height: 40rem;
  border: black 1px solid;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--modal-window);
  border: none;
  border-radius: 1rem;
  z-index: 99999;
  animation: fadeIn 0.4s ease forwards;
  /* position: relative; */
  /* box-shadow: 20px 20px 90px #000; */
}

/* Keyframes for overlay */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.info-content {
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* backdrop-filter: blur(0.1px); */
  z-index: 99999;
}

.info-title {
  font-size: 3.2rem;
  position: absolute;
  top: 12%;
}

.info-text {
  padding: 0 2.4rem;
  font-size: 2rem;
  letter-spacing: normal;
  line-height: 1.5;
  width: 50rem;
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hidden {
  display: none;
}
