:root {
  --primary-color: #a8a8a8;
  --secondary-color: #ff3c64;
  --primary-dark: #6a6969;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  /* Supports weights from 100 to 900 */
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
}


/* ==========================================================================
   GENERAL
   ========================================================================== */



body {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  background-color: rgb(0, 0, 0);
  color: var(--primary-color);
  line-height: 1.6rem;
  text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 1rem;
  font-weight: 300;
  color: var(--secondary-color);
}

#terms h1,h2,h3,h4,h5,h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color  );
}

.margin-bottom2 {
  margin-bottom: 2rem;
}


h1 {
  font-size: 1.75rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 0.5rem;
}

h5 {
  font-size: .25rem;
}

h6 {
  font-size: .1rem;
}


ul {

}

img {
  max-width: 100%;
  margin-bottom: 1rem;
}

.section-spacer {
  border-top: solid;
  border-width: 1px;
  border-color: var(--primary-color);
  width: 100%;
}

#hero {
  margin-top: 3rem;
}

#logo {
  max-width: 400px;
  margin-bottom: 1rem;
}

#tutorial {
  background: #121212;
  padding: 40px;
  margin-top: 50px;
}

.expanded {
  display: block;
  transition: display 2.5s ease-in-out;
}

.collapsed {
  display: none;
  transition: display 2.5s ease-in-out;
}

.design-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 50px;
  max-width: 700px;
}


#cover_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  font-size: 16px;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 50;
  overflow: scroll;
}

#cover_text {
  font-size: 3rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.slogan {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 2.5rem;
  color: var(--primary-color);
}

input {
  color: var(--primary-color);
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
  border: var(--primary-color);
  border-width: 1px;
  border-style: solid;
  margin-top: 2rem;
}

.cover-button {
  color: var(--primary-color);
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: transparent;
  border: var(--primary-color);
  border-width: 1px;
  cursor: pointer;
  border-style: solid;
  transition: background-color 0.2s ease;
  margin-top: 2rem;
  width: 170px;
}



.cover-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.timeline {
  margin-top: 3rem;
  width: 100%;
}

.timeline h3 {
  font-weight: 600;
}


/* Responsive tweaks */
@media (max-width: 600px) {
  #cover_text {
    font-size: 2rem;
  }

  #slogan {
    font-size: 1.2rem;
  }


}


@media (max-width: 768px) {
  #logo {
    max-width: 250px;
  }
  .slogan {
    font-size: 1.2rem;
  }
}


#logo_wrapper {
  position: absolute;
  z-index:1 ;
  right: 5px;
  bottom: 5px;
}

.color-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 5px;
  cursor: pointer;
}



/* Timeline Container */
.timeline {
  margin: 20px auto;
  padding: 20px;
}

/* Card container */
.card {
  position: relative;
  max-width: 700px;
}

/* setting padding based on even or odd */
.card:nth-child(odd) {
  padding: 30px 0 30px 30px;
  margin-top: 4px;
}
.card:nth-child(even) {
  padding: 30px 30px 30px 0;
  margin-top: 3px;
}
/* Global ::before */
.card::before {
  content: "";
  position: absolute;
  width: 50%;
  border: solid var(--primary-color);
}

/* Setting the border of top, bottom, left */
.card:nth-child(odd)::before {
  left: 0px;
  top: -4.5px;
  bottom: -4.5px;
  border-width: 0px 0 0px 3px;
  border-radius: 50px 0 0 50px;
}

/* Setting the border of top, bottom, right */
.card:nth-child(even)::before {
  right: 0;
  top: 0;
  bottom: 0;
  border-width: 0px 3px 0px 0;
  border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.card:first-child::before {
  border-top: 0;
  border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.card:last-child:nth-child(odd)::before {
  border-bottom: 0;
  border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.card:last-child:nth-child(even)::before {
  border-bottom: 0;
  border-bottom-right-radius: 0;
}

/* Information about the timeline */
.info {
  display: flex;
  flex-direction: column;
  padding: 10px;

}

/* Title of the card */
.title {
  color: var(--primary-dark);
  position: relative;
}

/* Timeline dot  */
.title::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 999px;
  border: 3px solid var(--primary-color);
}

/* setting dot to the left if the card is odd */
.card:nth-child(odd) > .info > .title::before {
  left: -45px;

}

/* setting dot to the right if the card is odd */
.card:nth-child(even) > .info > .title::before {
  right: -45px;

}







/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: var(--primary-color);
  padding: 1rem;
  border-radius: 10px;
  max-width: 90%;
  width: 800px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.modal-content video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 16px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

