
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}

header {
  background: linear-gradient(135deg, #821010, #D11B1B, #D11B1B);
  background-size: 300% 300%;   /* needed for shimmer */
  
  padding: 20px;
  text-align: center;
  color: white;                 /* ensures text stays readable */
}


nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-right: 10px;
}

footer {
  text-align: center;
  margin-top: 20px;
}

#language-selector {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
}

.language-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

/* Optional: Styling for ellipse shape */
#language-selector {
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
  padding: 5px;
  display: flex; /* Use flexbox for better control */
  justify-content: space-around; /* Distribute elements evenly */
}

.separator {
  height: 20px;
  width: 1px;
  background-color: #ccc;
  margin: 0 0px; /* Adjust margin for precise positioning */
}

nav ul li a {
  text-decoration: none;
  color: #333; /* Adjust color as needed */
}

nav ul li a i {
  font-size: 24px; /* Adjust size as needed */
  margin-right: 5px; /* Add spacing between icon and text */
}

.content-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: center;
  flex-direction: column; /* Ensure divs stack vertically */
}

.image-table-container {
  display: flex;
  flex-wrap: wrap; /* Allow elements to wrap to the next line */
  align-items: center;
}

.image-container {
  flex: 1 1 10%; /* Adjust width as needed */
  position: relative;
}

.image-container, .table-container {
  flex: 1 1 10%; /* Adjust width as needed */
  margin: 5px; /* Add margin between elements */
}

.bottom-tables {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.table-container {
  flex: 1 0 10%; /* Adjust the width as needed */
  align-items: center;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .image-table-container, .table-container {
    width: 100%;
	margin: 0; /* Remove margins on smaller screens */
  }
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
  .image-table-container, .bottom-tables {
    flex-direction: column;
	margin: 0; /* Remove margins on smaller screens */
  }

  .image-table-container > div {
    width: 100%;
	margin: 0; /* Remove margins on smaller screens */
  }
}

.title-container {
  text-align: center;
}

.result-container {
  text-align: center;
}

.table-container {
  width: 45%; /* Adjust width as needed for larger screens */
}

.table3, .table4 {
  width: 100%;
}

.table3 td, .table4 td {
  width: 12.5%; /* Assuming 8 columns */
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bottom-tables .table-container tr td:nth-child(2n+1) {
  background: linear-gradient(135deg, #821010, #D11B1B, #FF4C4C);
  color: white;              /* match text color */
  font-weight: bold;         /* optional: match button text weight */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); /* optional: consistent shadow */
}


.bottom-tables .table-container td {
  border: 1px solid black; /* Adjust border style, color, and width as needed */
}

.invalid {
  border: 2px solid red;
}

.index-circle {
  border-radius: 50%;
  width: 30px;
  height: 30px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white; /* match button text color */
  font-weight: bold; /* optional, to match button style */

  background: linear-gradient(135deg, #821010, #D11B1B, #FF4C4C);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); /* optional: match button shadow */
}

.index-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.image-text {
  position: absolute; /* Make the text element absolutely positioned */
  top: 50%; /* Position the text vertically at the center */
  left: 50%; /* Position the text horizontally at the center */
  transform: translate(-50%, -50%); /* Center the text within the image container */
  color: white; /* Adjust text color as needed */
  font-size: 20px; /* Adjust font size as needed */
  text-align: center; /* Center align the text */
}

.page-link {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: underline; /* makes it look like a link */ 
  color: #0066cc; /* optional: a link-like color */ 
  margin: 0 10px;
}

.nav-box {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #821010, #D11B1B);
  margin: 10px; /* instead of margin: 0 10px */

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#calculate {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  /* Match input height */
  padding: 0 16px; /* horizontal padding only */
  height: 35px;

  background: linear-gradient(135deg, #821010, #D11B1B, #FF4C4C);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.input-container {
  display: flex;
  align-items: center; /* ensures equal height */
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.input-container input {
  height: 30px; /* Adjust the value as needed */
  box-sizing: border-box; /* ensures padding doesn't break the height */
}

.year-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

/* Each row */
.year-input-wrapper .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Center the button row */
.year-input-wrapper .row.center {
  justify-content: center;
}

/* Inputs same height as before */
.year-input-wrapper input[type="number"] {
  height: 30px;
  padding: 0 10px;
}

/* Button with same style as #calculate */
#calculateYearMatrix {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  padding: 0 16px;
  height: 30px;

  background: linear-gradient(135deg, #821010, #D11B1B, #FF4C4C);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#calculateYearMatrix:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rhombus-container {
  position: relative;

  /* Responsive sizing */
  width: min(400px, 90vw);
  height: min(400px, 90vw);
  aspect-ratio: 1 / 1;

  margin: 30px auto;

  transform: rotate(45deg);
  border: 2px solid #821010;
}


.diag {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;                /* line thickness */
  height: 140%;              /* long enough to go corner to corner */
  background-color: #821010;
  transform-origin: center;
}

/* Diagonal from top-left to bottom-right */
.diag-1 {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* Diagonal from top-right to bottom-left */
.diag-2 {
  transform: translate(-50%, -50%) rotate(-45deg);
}


/* Circles */
.circle {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border: 3px solid #821010;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 2.5rem;

  /* counter-rotate so text looks straight */
  transform: rotate(-45deg);
}

/* Top apex (tip of rhombus) */
.circle.top {
  top: 0;
  left: 0%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Right apex */
.circle.right {
  top: 0;
  right: 0;
  transform: translate(50%, -50%) rotate(-45deg);
}

/* Bottom apex */
.circle.bottom {
  bottom: 0;
  left: 100%;
  transform: translate(-50%, 50%) rotate(-45deg);
}

/* Left apex */
.circle.left {
  top: 100%;
  left: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Center circle (intersection of diagonals) */
.circle.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.rhombus-wrapper {
  padding: 80px 0;
}

.circle.top,
.circle.left {
  background-color: #9b59b6; /* purple */
}

.circle.center {
  background-color: #f1c40f; /* yellow */
}

.circle.right,
.circle.bottom {
  background-color: #e74c3c; /* red */
}

/* Button with same style as #calculate */
#calculateCompatibilityMatrix {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  padding: 0 16px;
  height: 30px;

  background: linear-gradient(135deg, #821010, #D11B1B, #FF4C4C);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#calculateCompatibilityMatrix:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Center the button row */
.compatibility.row.center {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 30px 0;
}

.index-oval {
  border-radius: 50%;
  width: 40px;
  height: 30px;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white; /* match button text color */
  font-weight: bold; /* optional, to match button style */

  background: linear-gradient(135deg, #821010, #D11B1B, #FF4C4C);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); /* optional: match button shadow */
}

.index-oval:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.result-names {
  text-align: center;
  font-size: 1.6rem;   /* adjust size as you prefer */
  font-weight: bold;
}

