/* ======================================
   Building Change Presentation Styles
   ====================================== */

/* Base Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

.slide-container {
  width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Slide Structure */
.slide {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
  height: 506px; /* 16:9 aspect ratio */
  width: 100%;
}

.slide-content {
  padding: 40px;
  height: calc(100% - 80px); /* Account for padding */
  box-sizing: border-box;
  position: relative;
  overflow: auto; /* Allow scrolling for overflow content */
}

/* Typography */
.slide-title {
  font-size: 28px; /* Reduced from 32px */
  margin-bottom: 15px; /* Reduced from 20px */
  color: #2e7d32; /* Dark green */
  font-weight: bold;
}

.slide-subtitle {
  font-size: 22px; /* Reduced from 24px */
  margin-bottom: 15px; /* Reduced from 20px */
  color: #43a047; /* Medium green */
}

.slide-text {
  font-size: 18px; /* Reduced from 20px */
  line-height: 1.4; /* Reduced from 1.5 */
}

.slide-text li {
  margin-bottom: 5px; /* Reduced from 10px */
}

.small-text {
  font-size: 14px; /* Reduced from 16px */
}

/* Navigation Elements */
.slide-number {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: #66bb6a; /* Light green */
}

.footer {
  position: absolute;
  bottom: 10px;
  left: 40px;
  font-size: 14px;
  color: #66bb6a; /* Light green */
}

/* Layout Components */
.two-column {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Add spacing between columns */
}

.column {
  width: 48%;
}

/* Visual Elements */
.highlight {
  color: #2e7d32; /* Dark green */
  font-weight: bold;
}

.diagram {
  width: 90%; /* Increased from 80% */
  margin: 0 auto;
  display: block;
  background-color: #e8f5e9; /* Very light green */
  padding: 15px; /* Reduced from 20px */
  border-radius: 8px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.quote {
  font-style: italic;
  color: #555;
  border-left: 4px solid #43a047; /* Medium green */
  padding-left: 15px; /* Reduced from 20px */
  margin: 15px 0; /* Reduced from 20px */
}

.key-concept {
  background-color: #e8f5e9; /* Very light green */
  border-left: 4px solid #43a047; /* Medium green */
  padding: 8px 15px; /* Reduced from 10px 20px */
  margin: 10px 0;
}

/* Header Section */
.header {
  background-color: #2e7d32; /* Dark green */
  color: white;
  text-align: center;
  padding: 15px 40px; /* Reduced from 20px 40px */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Scientist Profiles */
.scientist-profile {
  display: flex;
  align-items: center;
  margin-bottom: 15px; /* Reduced from 20px */
}

.scientist-photo {
  width: 100px; /* Reduced from 120px */
  height: 100px; /* Reduced from 120px */
  border-radius: 50px;
  margin-right: 15px; /* Reduced from 20px */
  object-fit: cover;
  border: 3px solid #43a047; /* Medium green */
}

.scientist-info {
  flex: 1;
}

.scientist-name {
  font-size: 22px; /* Reduced from 24px */
  font-weight: bold;
  color: #2e7d32; /* Dark green */
  margin-bottom: 3px; /* Reduced from 5px */
}

.scientist-title {
  font-size: 16px; /* Reduced from 18px */
  color: #66bb6a; /* Light green */
  margin-bottom: 8px; /* Reduced from 10px */
}

/* Image Elements */
.slide-image {
  max-width: 80%;
  max-height: 180px; /* Set a fixed height to prevent overflow */
  display: block;
  margin: 0 auto 10px auto;
  object-fit: contain; /* Ensure image maintains aspect ratio */
}

.photo-credit {
  font-size: 12px;
  color: #66bb6a; /* Light green */
  text-align: right;
  margin-top: 3px; /* Reduced from 5px */
}

/* Green Background Elements */
.green-bg {
  background-color: #e8f5e9; /* Very light green */
}

/* Print styles */
@media print {
  .slide {
    page-break-after: always;
    box-shadow: none;
  }
  
  .slide-content {
    overflow: visible;
  }
  
  body {
    background-color: white;
  }
}

/* Responsive adjustments */
@media (max-width: 940px) {
  .slide-container {
    width: 100%;
    padding: 10px;
  }
  
  .slide {
    height: auto;
    min-height: 506px;
  }
  
  .slide-content {
    padding: 30px;
  }
  
  .two-column {
    flex-direction: column;
  }
  
  .column {
    width: 100%;
  }
  
  .slide-title {
    font-size: 24px;
  }
  
  .slide-subtitle {
    font-size: 20px;
  }
}
