/**
 * Global CSS, including the bundled Infima framework. Infima is designed for 
 * content-centric websites. You can override its default variables here.
 */

:root {
  --ifm-code-font-size: 95%;
  /* Button colors */
  --secondary: #52d4e1;
  --secondaryShadow: #319da8;
  --textInSecondary: #ffffff;
  /* Glossy border colors */
  --glossy-border-color: #999;
  --glossy-border-background-color1: #fff;
  --glossy-border-background-color2: #eee;
  --glossy-border-shadow-color: rgba(0, 0, 0, 0.1);
  --glossy-border-inset-shadow-color1: rgba(0, 0, 0, 0.2);
  --glossy-border-inset-shadow-color2: rgba(255, 255, 255, 0.3);
  /* Gradient colors */
  --gradient-color4: #ffea4c;
  --gradient-color2: #ff9d93;
  --gradient-color3: #d893d1;
  --gradient-color1: #a8e279;
  /* Background color */
  --secondary-background: #303846;
}

[data-theme='dark'] {
  /* Button colors for dark mode */
  --secondary: #408b9c;
  --secondaryShadow: #28585c;
  --textInSecondary: #b0dcdc;
  /* Glossy border colors for dark mode */
  --glossy-border-color: #444;
  --glossy-border-background-color1: #222;
  --glossy-border-background-color2: #333;
  --glossy-border-shadow-color: rgba(255, 255, 255, 0.1);
  --glossy-border-inset-shadow-color1: rgba(255, 255, 255, 0.2);
  --glossy-border-inset-shadow-color2: rgba(0, 0, 0, 0.5);
  /* Gradient colors for dark mode */
  --gradient-color4: #b38d3e;
  --gradient-color3: #b35e5b;
  --gradient-color2: #8c5e88;
  --gradient-color1: #6f8f5e;
  /* Background color for dark mode */
  --secondary-background: #1c4f5d;
}

.docusaurus-highlight-code-line {
  background-color: rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 calc(-1 * var(--ifm-pre-padding));
  padding: 0 var(--ifm-pre-padding);
}

[data-theme='dark'] .docusaurus-highlight-code-line {
  background-color: rgba(255, 255, 255, 0.05);
}

.secondaryBackground {
  background-color: var(--secondary-background);
}

/* Footer link styles */
.row.footer__links .col.footer__col {
  text-align: center;
}

@media (min-width: 1000px) {
  .row.footer__links .col.footer__col {
    text-align: left;
  }
  .row.footer__links .col.footer__col:last-of-type {
    text-align: right;
  }
}

/* Glossy border styles */
.glossy-border {
  border: 3px solid var(--glossy-border-color);
  padding: 20px;
  background: linear-gradient(
    to bottom right,
    var(--glossy-border-background-color1),
    var(--glossy-border-background-color2)
  );
  box-shadow:
    0px 10px 15px var(--glossy-border-shadow-color),
    5px 5px 15px var(--glossy-border-shadow-color),
    inset 0px -3px 10px var(--glossy-border-inset-shadow-color1),
    inset 0px 3px 10px var(--glossy-border-inset-shadow-color2);
  border-radius: 15px;
  margin: 50px;
}

.set-width {
  width: 450px;
}

/* Button styles */
.button {
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  margin: 0.25em 0;
  padding: 0.75em 1em;
  position: relative;
  background-color: var(--secondary);
  color: var(--textInSecondary);
  box-shadow: 0 4px var(--secondaryShadow);
}

.button:hover {
  top: 2px;
  box-shadow: 0 2px var(--secondaryShadow);
}

.button:active {
  box-shadow: 0 0 var(--secondary);
  top: 4px;
}

/* Gradient background */
.gradient-bg {
  background: linear-gradient(
    45deg,
    var(--gradient-color1),
    var(--gradient-color2),
    var(--gradient-color3),
    var(--gradient-color4)
  );
  background-size: 200% 200%;
  animation: Gradient 10s ease infinite;
}

@keyframes Gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Miscellaneous styles */
.bottomMargin {
  margin-bottom: 4rem;
}

/* Contribution image styles */
.contribute-img {
  height: 300px;
  width: 300px;
  padding-bottom: 20px;
  float: left;
  padding-right: 3rem;
  padding-top: 2rem;
}

/* Contribution container styles */
.contribute-container {
  margin-left: 100px;
  margin-right: 100px;
}

@media (max-width: 1000px) {
  .contribute-container {
    margin-left: 20px;
    margin-right: 20px;
  }
  .contribute-img {
    float: none;
    padding-right: 0;
  }
}

/* Feature row styles */
.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 2rem 0;
}

.feature-section {
  display: flex;
  align-items: center;
  padding: 2rem 0;
  width: 100%;
}

.text-margin {
  margin-top: 50px;
  margin-bottom: 50px;
  margin-left: 150px;
  margin-right: 150px;
}

@media (max-width: 1000px) {
  .text-margin {
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 50px;
    margin-right: 50px;
  }
}
