:root {
  --primary-color: #333;
  --accent-color: #b3300c;
  --background-color: #f5f5f5;
  --text-color: #333;
  --white: #fff;
  --tab-background-color: #eef0f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}

article, ol {
  font-size: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
  text-align: justify;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-top: 1em;
}

h3 {
  margin-top: 1em;
  font-size: 1.2rem;
  font-weight: 700;
}

/* FOOTER contact section with link to policies */
footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

footer p {
  margin: 10px 0;
}

footer a, a.shake {
  text-decoration: none;
  color: var(--text-color);
  margin: 0 8px;
  font-size: 0.9rem;
  transition: color 0.5s;
}

footer a:hover, .icon-shake:hover{
  animation: shake 0.5s;
  color: var(--accent-color);
}

section a {
  /* color: var(--text-color);*/
  color: inherit;
  text-decoration: none;
}

a.shake:hover {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.5s;
}

#mixedNumber{
  display: none; 
  align-items: center; 
  justify-content: center;
  color: var(--accent-color);
}
/* Policies section initially hidden */
#policies {
  opacity: 1; /*0*/
  pointer-events: none;
  overflow: hidden;
  background: #eef0f4;
  padding: 20px;
  margin-top: 40px;
  border-radius: 8px;
  max-height: 2000px; /* large enough height to show content */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

#policies h3 {
  margin-bottom: 10px;
}

  /* Responsive styling */
@media(max-width: 600px) {
  body { padding: 20px; }
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
}

@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 0); }
  40% { transform: translate(2px, 0); }
  60% { transform: translate(-2px, 0); }
  80% { transform: translate(2px, 0); }
  100% { transform: translate(0, 0); }
}

/* Container for two flip cards in a row */
.cards-container {
  display: flex;
  gap: 40px; /* space between cards */
  flex-wrap: wrap; /* wrap on small screens */
  justify-content: center;
  margin-top: 20px;
}

/* Flip card styles */
.flip-card {
  background-color: transparent;
  width: 250px;
  height: 320px;
  perspective: 1000px; /* 3D perspective */
}

/* Front content */
.flip-card-front {
  background: #fff;
  flex-direction: column;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Hover flip: add on hover instead of click for demo */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front and back sides */
.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--white); /* #fff;*/
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Front: Avatar image */
.flip-card-front img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

/* Back: Info text */
.flip-card-back {
  color: var(--text-color);
  text-align: justify;
  transform: rotateY(180deg);
}

.flip-card-back h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
}

.flip-card-back p {
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-color);
}

/* Tabs container */
.tabs-container {
  max-width: 800px;
  padding: 20px;
}

/* Tabs header buttons */
.tabs-header {
  margin: 0;
  border: none; /* if borders are set elsewhere */
  display: flex;
}

.tab-button {
  flex: 1;
  padding-bottom: 16px;
  cursor: pointer;
  background: var(--tab-background-color);
  color: var(--text-color);
  border: none;
  outline: none;
  transition: background 0.3s, color 0.3s;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: -2px 0px 0px rgba(0,0,0,0.1);
}

.tab-button:hover {
  background:var(--background-color);
  color: var(--accent-color);
  animation: shake 0.5s;
}

button:hover {
  animation: shake 0.5s;
  opacity: 80%;
}

.tab-button.active {
  background-color: var(--white); /* #fff;*/
  cursor: default;
  text-decoration: none;
  color: var(--text-color);
  animation: none;
}

section {
  margin: 0; /* ensure no margin */
  box-shadow: none; /* remove box-shadow that could appear as a line */
  border: none; /* remove borders if any */
  border-top: none; /* explicitly remove any top border that may be showing */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: none;
  max-width: 900px;
  width: 100%;
  background: #fff;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  box-shadow: -4px 4px 15px rgba(0,0,0,0.1);
}

.tab-content {
  margin: 0; /* ensure no margin */
  box-shadow: none; /* remove box-shadow that could appear as a line */
  border: none; /* remove borders if any */
  border-top: none; /* explicitly remove any top border that may be showing */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  display: none;
  max-width: 900px;
  width: 100%;
  background: #fff;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
  box-shadow: -4px 4px 15px rgba(0,0,0,0.1);
}

.tab-content.active {
  display: block;
}

#bdiw:hover, #bdin:hover, #bdid:hover, #bdim:hover {
  cursor: help;
}

.dot-container {
  width: 100%; /* full window width */
  display: flex;
  align-items: center;
}

.left-text {
  margin-right: 10px;
}

.dots {
  flex-grow: 1;
  border-bottom: 1px dotted #999;
  margin: 0 10px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.login-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  width: 300px;
}

.centered-container {
  padding-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height:auto; /* full viewport height */
}

ul.custom-symbols {
  list-style: none; /* Remove default bullets */
  padding-left: 0;
}

ul.custom-symbols li {
  position: relative;
  padding-left: 20px;
}

ul.custom-symbols li::before {
  content: "✔"; /* Your symbol, e.g., check mark */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-color);
}

.icon-row {
  display: flex;
  gap: 30px; /* space between icons */
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

a.icon-link svg {
  width: 50px;  /* icon width */
  height: 50px; /* icon height */
  cursor: pointer;
  fill: #333;   /* icon color */
  transition: fill 0.3s;
}
  
.checkbox {
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--text-color);
  border-radius: 4px;
}

input[type="text"], select {
  padding: 0x 0px;
  font-size: 1rem;
  margin: 0 3;
  border-radius: 0px;
  outline-width: thin;
  border: 1px solid var(--text-color);
  width: fit-content;
  text-align: center;
}

select {
  width: fit-content;
  padding: 0px;
  margin: 0px;
}

select option:hover {
  background-color: var(--accent-color); /* limited support, may not work in all browsers */
}

.measurement,
.measurement p {
  width: auto;
  min-width: 22rex;
  padding: 0px;
  margin: 0px;
  vertical-align: bottom;
  display: inline;
}
