/* General Reset */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* body {
  font-family: "Nunito", sans-serif;
  background: #1d1f27;
  color: #fff;
} */
body {
  font-family: "Nunito", sans-serif;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  /* color: #324FD2; */
}


img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  html {
    font-family: "Nunito", sans-serif;
    font-size: 12px;
  }

/* Header and Mini Timeline Styling */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 20px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }
  
  .header-content {
    display: flex;
    align-items: center;
    gap: 20px; 
  }
  
  .brand {
    width: 200px;
    height: auto;
  }
  
  .mini-timeline {
    display: flex;
    align-items: center;
  }
  
  .mini-line {
    width: 40px;
    height: 4px;
    background-color: #3a3f78;
    margin: 0 10px;
  }
  
  .mini-step {
    font-size: 1rem;
    font-weight: bold;
    color: #5864a2;
    padding: 5px 10px;
    border-radius: 8px;
  }
  
  .mini-step.completed {
    background-color: #3a3f78;
    color: #fff;
  }
  
  .mini-step.active {
    background-color: #5864a2;
    color: #fff;
  }
  


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

.main-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 120px 20px 40px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1a2a6c, #355c7d, #2b5876);
  background-size: 300% 300%;
  animation: moveGradient 10s ease infinite;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}


.left-section, .right-section {
  width: 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: rgba(40, 60, 90, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-section {
  background: rgba(40, 60, 100, 0.8);
}

.right-section {
  background: rgba(50, 70, 120, 0.8);
}


.right-section .button-container {
  display: flex;
  align-items: center;
  gap: 30px; 
}

.news-prompt {
  font-family: "Courier New", monospace;
  color: #00FF00;
  background-color: rgba(255, 255, 255, 0.15); 
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  box-shadow: 0px 0px 10px rgba(0, 255, 0, 0.6); 
  border: 1px solid rgba(0, 255, 0, 0.4);
  text-shadow: 0px 0px 6px rgba(0, 255, 0, 0.8);
}




.left-section:hover, .right-section:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 50, 0.5);
}


.calc-btn {
  padding: 10px 20px;
  background: #4a7cbb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 0px 10px rgba(74, 124, 187, 0.6);
  position: relative;
  overflow: hidden;
}

.calc-btn:hover {
  background: #6b9df5;
  box-shadow: 0px 0px 15px rgba(107, 157, 245, 0.8), 0px 0px 20px rgba(107, 157, 245, 0.4);
}


@keyframes pulseGlow {
  0%, 100% { box-shadow: 0px 0px 10px rgba(74, 124, 187, 0.6); }
  50% { box-shadow: 0px 0px 20px rgba(107, 157, 245, 0.8); }
}

.calc-btn {
  animation: pulseGlow 3s infinite;
}


.news-btn {
  width: 100px; 
  height: 100px;
  background: #b55b5b; 
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%; 
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 0px 20px rgba(181, 91, 91, 0.6), 
              inset 0px 0px 15px rgba(255, 100, 100, 0.5);
  position: relative;
  overflow: hidden;
}



.news-btn::before {
  content: '';
  position: absolute;
  width: 200%; 
  height: 200%;
  background: rgba(231, 6, 6, 0.695);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  z-index: 1;
  filter: blur(15px);
}

.news-btn:hover::before {
  transform: translate(-50%, -50%) scale(1.5);
}



.foodwaste {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
}

/* Form Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #8bc34a;
  font-size: 1.1rem;
  background-color: #f0f8e2;
}

/* Receipt Styling */
.receipt {
  background-color: #ffffff;
  color: #333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
  font-family: "Courier New", monospace;
}

.receipt h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-align: center;
}

#receiptList {
  list-style: none;
  padding: 0;
}

#receiptList li {
  font-size: 1.1rem;
  padding: 5px 0;
  border-bottom: 1px dotted #ddd;
}

.total {
  font-size: 1.1rem;
  margin-top: 10px;
  text-align: center;
}


/* Newspaper Styling */
#generateButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.newspaper {
    background-color: #f9f9f9; 
    border: 1px solid #ccc; 
    padding: 20px;
    margin: 20px 0; 
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 
    font-family: 'Georgia', serif;
}

.headline {
    font-size: 26px; 
    color: #333;
    font-weight: bold;
    margin-bottom: 10px; 
    border-bottom: 2px solid #ccc; 
    padding-bottom: 5px; 
}

.date {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px; 
    font-style: italic; 
}

.story {
    font-size: 16px; 
    line-height: 1.6; 
    color: #444; 
    margin-top: 10px;
    text-align: justify; 
}

.story p {
    margin: 10px 0;
}

.loading-message {
  color: #ffffff; 
  font-weight: bold; 
  font-size: 1.5rem; 
  text-align: center; 
  margin: 20px 0; 
}


.form-group input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #3a3f78;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #f0f8ff;
  color: #333;
  font-size: 1rem;
}

input::placeholder {
  color: #5864a2; 
}

/* Receipt Section Styling */
.receipt {
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f0ff;
  border: 1px solid #3a3f78;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.receipt h2 {
  font-size: 1.4rem;
  color: #1d2a4d;
  text-align: center;
  margin-bottom: 15px;
}

.receipt ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.receipt li {
  padding: 8px 0;
  font-size: 1rem;
  border-bottom: 1px solid #ddd;
  color: #333;
}

.total {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: 15px;
  text-align: center;
  color: #1d2a4d;
}

/* Environmental Impact Results Section */
#impactResults {
  margin-top: 20px;
  padding: 15px;
  background-color: #e6f7ff;
  border: 1px solid #3a3f78;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  font-family: "Courier New", monospace;
  text-align: left;
}

#impactResults h3 {
  font-size: 1.4rem;
  color: #1d2a4d;
  text-align: center;
  margin-bottom: 15px;
}

.impact-content {
  display: flex;
  align-items: center;
  gap: 20px; 
  justify-content: flex-start;
}

#impactResults p {
  font-size: 1.1rem;
  margin: 5px 0;
  color: #333;
  text-align: center;
}

.impact-image {
  width: 170px; 
  height: auto; 
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


#calculateImpactButton {
  padding: 10px 20px;
  background: #4a7cbb;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 0px 10px rgba(74, 124, 187, 0.6);
  position: relative;
  overflow: hidden;
  animation: pulseGlow 3s infinite;
}

#calculateImpactButton:hover {
  background: #6b9df5;
  box-shadow: 0px 0px 15px rgba(107, 157, 245, 0.8), 0px 0px 20px rgba(107, 157, 245, 0.4);
}

/* Receipt Table Styling */
#receiptTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#receiptTable th, #receiptTable td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

#receiptTable th {
  background-color: #f0f8ff;
  color: #333;
  font-weight: bold;
}

#receiptTable td {
  color: #333;
}
