/* Variables for colors */
:root {
  --main-bg-color: #d8d8d8;
  --secondary-bg-color: #3b5a70;
  --footer-text-color: white;
  --button-bg-color: #bcbebf;
  --button-hover-bg-color: #e8e8e8;
  --card-border-color: #a9aeb2;
  --container-light-color: #b9b9b9;
  --container-dark-color: #2a5e71;
}

/* General body styling */
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: linear-gradient(65deg, var(--main-bg-color), var(--secondary-bg-color));
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  line-height: 1.6;
}

.proof {
  margin: 5px;
  color: rgb(255, 255, 229);
  padding: 5px;
  text-decoration: underline;
}

.title-box {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 40vh;
  padding: 20px;
  margin: 10vh auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 80px;
  transition: all 4.5s ease;
  border: 1px solid #b6b6b6;
}

.title-box:hover {
  border: 10px solid #ececec;
  filter: drop-shadow(0 0 20px #d6d6d6);
  border-radius: 110px;
}

.title-box:hover .title {
  color: #ececec;
}

/* Section styling */
.section-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  margin: 20px auto;
  width: 90%;
  max-width: 800px;
  border: 4px solid var(--container-light-color);
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section-box p {
  color: #c6e0ff;
}

.title {
  font-size: 5em;
  transition: all 4.5s ease;
}

/* Headings for topics */
.section-box h2 {
  text-align: center;
  font-size: 2rem;
  color: #f1f1f1;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--card-border-color);
  padding-bottom: 5px;
}

/* Paragraph and definition styling */
.section-box p {
  margin: 5px;
  padding: 10px;
  color: #f1f1f1;
}

.definition {
  background-color: #595757;
  padding: 10px;
  border-left: 8px solid #e7e7e7;
  border-radius: 10px;
  font-style: italic;
  margin: 10px;
  filter: drop-shadow(0 0 2px #f4f4f4);
}

/* Math content styling */
.math-content {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 10px 0;
  padding: 10px;
  background: #c0bfbf;
  border-radius: 10px;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  word-wrap: break-word;
}

/* Footer styling */
footer {
  color: var(--footer-text-color);
  text-align: center;
  padding: 10px;
  width: 100%;
  background: var(--secondary-bg-color);
}

h3 {
  text-align: left;
  text-decoration: underline;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: small;
  font-style: italic;
}

/* Button for navigation */
.button {
  display: inline-block;
  padding: 10px 15px;
  font-size: 1rem;
  color: #fff;
  background-color: var(--button-bg-color);
  text-decoration: none;
  border-radius: 5px;
  border: solid 1px #e3e1e1;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: var(--button-hover-bg-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .title-box {
    height: auto;
    padding: 15px;
    margin: 5vh auto;
  }
  .title {
    font-size: 3em;
  }
  .section-box {
    padding: 15px;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .title-box {
    height: auto;
    margin: 10vh auto;
    padding: 10px;
  }
  .title {
    font-size: 2.5em;
  }
  .section-box {
    padding: 10px;
    width: 95%;
  }
  .section-box h2 {
    font-size: 1.5rem;
  }
  .section-box p {
    font-size: 1rem;
  }
}
