@import './variables.css';

body {
  background-color: var(--primary-background-color);
  color: var(--primary-color);
  font-family: var(--font-face);
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a{
  color: var(--ahref-color);
  text-decoration: none;
}

a:hover{
  color: var(--ahref-hover-color);
  text-decoration: underline;
}


h1 {
  font-size: var(--font-size-h1);
  color: var(--secondary-color);
}

h2 {
  font-size: var(--font-size-h2);
  color: var(--primary-color);
}

strong{
  font-size: var(--font-size-h3);
}

#header-container {
  position: relative;
  text-align: center;
  margin: 0 auto;
  height: 100px; 
  overflow: hidden;
}

#theme-toggle-container {
  display: flex;
  justify-content: flex-end; /* Align the button to the right */
  width: 100%; /* Make sure the div takes the full width */
}

#themeToggle {
  background-color: var(--primary-transparent-background-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  font-family: var(--font-face);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}


#themeToggle:hover {
  background-color: var(--primary-transparent-background-color);
  color: var(--secondary-color);
}

.dark-theme #themeToggle {
  background-color: var(--primary-transparent-background-color);
  color: var(--dark-primary-color);
}

.dark-theme #themeToggle:hover {
  background-color: var(--primary-transparent-background-color);
  color: var(--dark-secondary-color);
}

.close-headers {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  white-space: nowrap;
}

.date{
  display: flex;
  justify-content: space-between;
}

.footer-content{
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
}

.footer-content a {
  color: var(--ahref-footer-color);
  text-decoration: none;
  margin: 0 10px;
}

.main-content {
  padding: 20px;
  width: 60%;
  height: 80%;
  margin: 5% auto;
  color: var(--primary-color);
  font-size: var(--font-size-base);
  font-family: var(--font-face);
}

.points{
  list-style-type: none;
}

.reference-links {
  display: block;
  /* color: var(--ahref-color); */
  text-decoration: none;
  font-size: var(--font-size-h4);
  margin-top: 0.2em;
  margin-left: 0;
  
}
ul {
  margin-bottom: 0;
}

.show-header {
  opacity: 1;
}


/* Styles for tablets */
@media screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .main-content {
    width: 80%;
    margin: 3% auto;
  }
}

/* Styles for desktop */
@media screen and (min-width: 1024px) {
  body {
    font-size: 20px;
  }

  .main-content {
    width: 60%;
    margin: 5% auto;
  }
}

/* === 404 PAGE === */
/* === 404 PAGE (FINAL MATCHED VERSION) === */

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  color: var(--primary-color);
  background-color: var(--primary-transparent-background-color);
  margin: 8% auto;
  width: 70%;
  max-width: 700px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.7s ease-in-out;
}

.error-icon {
  font-size: 64px;
  color: var(--secondary-color);
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

.error-subtitle {
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 10px;
}

.error-message {
  font-size: var(--font-size-base);
  margin: 16px 0 28px;
  opacity: 0.85;
  max-width: 480px;
  line-height: 1.6;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.error-home-btn,
.error-alt-btn {
  text-decoration: none;
  color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  padding: 10px 22px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: var(--font-face);
  font-size: var(--font-size-base);
  background-color: var(--primary-transparent-background-color);
}

.error-home-btn:hover,
.error-alt-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-background-color);
  box-shadow: 0 0 10px var(--secondary-color);
}

/* Ensure theme button alignment same as homepage */
#theme-toggle-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 20px;
}

#themeToggle {
  background-color: var(--primary-transparent-background-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#themeToggle:hover {
  color: var(--secondary-color);
}

/* Subtle animation for entry */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
