@charset "utf-8";
/* CSS - Health App - Improved Design */

/* Global Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f7fa;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

/* Application Container */
#application {
  max-width: 460px;
  margin: 0 auto;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
}

/* Header Styles */
#app-title {
  float: left;
  width: 80%;
  text-align: center;
  padding: 15px 0;
}

#app-title h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2C3E50;
  margin: 0;
}

#nav-toggle {
  float: right;
  width: 40px;
  height: 40px;
  text-align: center;
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
  border-radius: 50%;
  background-color: #f0f5ff;
  transform: rotate(90deg);
}

#nav-toggle:hover {
  background-color: #e0ebff;
}

/* Controls Section */
#controls {
  width: 100%;
  display: none;
  padding: 10px 0;
  clear: both;
}

#controls button {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  text-align: center;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#controls button:hover {
  background-color: #2980b9;
}

/* Display Area */
#display-area {
  float: left;
  width: 100%;
  min-height: 60vh;
  margin: 15px 0;
  padding: 15px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Section Styles */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #2C3E50;
  border-radius: 8px;
}
/* Food Cards */
.Cards {
  display: inline-block;
  text-align: center;
  background-color: #00bcd4;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
/* Section 6 */
#section-6 {
  color: black;
}
#section-7 {
  text-align: center;
}

/* Section 6 */
#score-display {display: none;}

.Cards:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.Cards img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.Cards .Card-Title {
  font-size: 20px;
  font-weight: 700;
  padding: 12px 5px;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.full-width .Cards {
  width: 100%;
}

/* Content Areas */
.content-area {
  float: left;
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border-radius: 10px;
  background-color: #34495e;
  color: white;
  margin-bottom: 15px;
  display: none;
}

/* Navigation */
.back-button {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.back-button:hover {
  background-color: #c0392b;
}

/* Student Info */
#student-info {
  float: left;
  width: 100%;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 15px;
}

#student-name, 
#student-school, 
#student-year {
  display: inline-block;
  border-left: solid 1px #bbb;
  padding: 0 10px;
  font-size: 14px;
  color: #666;
}

#student-name:first-child {
  border-left: none;
  padding-left: 0;
}

/* Info Section */
#Info {
  background-color: white;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section Display Properties */
#section-start {
  display: block;
}

#section-1, 
#section-2, 
#section-3, 
#section-4, 
#section-5 {
  display: none;
}

/* Layout Grid Classes */
.full-width {
  float: left;
  width: 100%;
  padding: 10px;
}

.left {
  float: left;
  width: 48%;
  margin: 1%;
  padding: 10px;
}

.right {
  float: right;
  width: 48%;
  margin: 1%;
  padding: 10px;
}

.thirds {
  float: left;
  width: 31.33%;
  margin: 1%;
  padding: 10px;
}

.quarter {
  float: left;
  width: 23%;
  margin: 1%;
  padding: 10px;
}

/* Health App Specific */
#section-two {
  background-color: #2C3E50;
  padding: 20px;
  border-radius: 12px;
}

#section-two .Cards {
  width: 48%;
  margin: 1%;
  margin-bottom: 20px;
}

#section-two .Cards img {
  height: 120px;
  width: 100%;
}

/* Broccoli card fix */
#section-two .Cards:nth-child(6) img {
  object-position: center 20%;
}

/* Specific Food Card Colors */
.Cards:nth-child(1) {
  background-color: #00C853; /* Spinach - green */
}

.Cards:nth-child(2) {
  background-color: #5677FC; /* Blueberries - blue */
}

.Cards:nth-child(3) {
  background-color: #FF9800; /* Almonds - orange */
}

.Cards:nth-child(4) {
  background-color: #E91E63; /* Sweet Potatoes - pink/red */
}

.Cards:nth-child(5) {
  background-color: #FF5722; /* Salmon - deep orange */
}

.Cards:nth-child(6) {
  background-color: #4CAF50; /* Broccoli - green */
}

/* Responsive Breakpoints */
@media only screen and (max-width: 1200px) {
  /* x-large screens */
}

@media only screen and (max-width: 1080px) {
  /* large screens */
  .quarter {
    width: 48%;
  }
  
  .thirds {
    width: 98%;
  }
  
  nav li {
    float: left;
    display: block;
    width: 100%;
  }
}

@media only screen and (max-width: 576px) {
  /* x-small screens */
  #application {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    padding: 10px;
  }
  
  .quarter {
    width: 98%;
  }
  
  .left, .right {
    width: 98%;
  }
  
  #controls, .content-area {
    width: 100%;
  }
  
  #section-two .Cards {
    width: 98%;
    margin: 1% 1% 15px 1%;
  }
}