
h1 {
    color: rgb(235, 181, 111);
    font-weight: bold;
    font-size: 52px;
    -webkit-text-stroke: 1px black;
}

body {
  font-family: "VT323", monospace;
  font-size: 30px;
  overflow: hidden;
  background-color: gainsboro;

}

.hidden{
  display: none;
}

.search-bar
{
  visibility: visible;
}

#gameplay-section {
  display: row;
  flex-direction: column;
  background-color: gainsboro;
  gap: 0px;
  height: 1000px;
}

.unstyled-button {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;

}

.submit {
  color: rgb(235, 181, 111);
  background-color: #353e6e;
  padding: 8px 32px;
  font-size: 16x;
  font-family: "VT323", monospace;
  border-radius: 8px;
}

.resetButton {
  color: rgb(235, 181, 111);
  background-color: #353e6e;
  padding: 8px 32px;
  font-size: 16x;
  font-family: "VT323", monospace;
  border-radius: 8px;
}
  
  .siteheader {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: gainsboro;
  }
  
  #headercontainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1000px;
    border-bottom: 4px solid gray;
    margin-bottom: 40px;
    width: 100%;
  }


  #footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
    display: flex;

  }

  .center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

  #site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0px;
    border-top: 2px solid gray;
    background-color: gainsboro;
    width: 99%;
  }

  .darker {
    background-color: lab(24.87% 0 0);
  }

  .darkerborder {
    border-bottom: 4px solid black; 
  }

  h2{
    color: rgb(235, 181, 111);
  }


  .closeinfo {
  position: sticky;
  top: 10px;
  float: right;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 100;
}

.closeinfo:hover {
  color: #e74c3c; 
}

  .closestats {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 100;
}

.closestats:hover {
  color: #e74c3c; 
}

  .closeopening {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 100;
}

.closeopening:hover {
  color: #e74c3c; 
}

 .opening {
  width: 900px;
  height: 400px;
  background: #aba9a9;
  border-radius: 25px;
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, 40%) scale(0.95);
  text-align: center;
  padding: 0 30px 30px;
  opacity: 0;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  border: 8px solid black;
}


.opening-main{
  text-align: center;
  margin-bottom: 5px;
}

.opening-header{
  display: flex;
  justify-content: space-evenly;
  width: 100%;

}

.opening.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 15%) scale(1);
}

.opening h2{
  color: 333;
  font-weight: bold;
  -webkit-text-stroke: 2px black;
  font-size: 64px;
}


 .info {
  width: 900px;
  height: 800px;
  background: #aba9a9;
  border-radius: 25px;
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%, 20%) scale(0.95);
  text-align: center;
  padding: 0 30px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  overflow-y: scroll;
    border: 8px solid black;

}

.info-main{
  text-align: left;
   border-bottom: 2px solid black;
  margin-bottom: 5px;
}

.info-header {
  border-bottom: 2px solid black;
  margin: -15px;
  margin-bottom: -5px;
}

.info.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 15%) scale(1);
}

.info h2{
  color: 333;
  font-weight: bold;
  -webkit-text-stroke: 2px black;
  font-size: 64px;
}


.burger-yellow {
    color: rgb(92, 72, 46);

}
.info h3{
  color: 333;
  font-weight: normal;
  font-size: 32px;
}

 .stats {
  width: 600px;
  height: 800px;
  background: #aba9a9;
  border-radius: 25px;
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%, 40%) scale(0.95);
  text-align: center;
  padding: 0 30px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  border: 8px solid black;
}


.stats-main{
  text-align: left;
   border-bottom: 2px solid black;
  margin-bottom: 5px;
}

.stats-header{
  display: flex;
  justify-content: space-evenly;
  border-bottom: 2px solid black;
  width: 100%;
  margin-bottom: 32px;

}

.stats.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 15%) scale(1);
}

.stats h2{
  color: 333;
  font-weight: bold;
  -webkit-text-stroke: 2px black;
  font-size: 64px;
}





/* search bar CSS */
.topnav {
  display: flex;
  justify-content: center;
  background-color: gainsboro;
  align-content: center;
  gap: 6px;
  position: relative;
}


.topnav a {
  float: left;
  display: block;
  color: black;
  text-align: center;
  padding: 16px 16px;
  text-decoration: none;
  font-size: 17px;
  
}


.topnav a:hover {
  background-color: #ddd;
  color: black;
}


.topnav a.active {
  background-color: #2196F3;
  color: white;
}

.topnav input[type=text] {
  padding: 6px;
  border: none;
  font-size: 17px;
  font-family: "VT323", monospace;
  border-radius: 8px;
}


@media screen and (max-width: 600px) {
  .topnav a, .topnav input[type=text] {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  .topnav input[type=text] {
    border: 1px solid #ccc;
  }
}

.search-wrapper {
  position: relative;
  width: 200px; 
}

.dropdown-content {
  display: flex;
  position: absolute;
  top: auto; 
  width: auto;
  background-color: #c9c9c9;
  font-size: 16px;
  flex-direction: column;
  direction: ltr;
  height: 250px;
  overflow: auto;
  z-index: 5;
}


.dropdown-content div:hover {
  background-color: #f0f0f0;
}

.dropdown-item {
  display: flex;
  align-items: flex;
  justify-content: flex-start;
  padding: 4px 4px;
  cursor: pointer;
  border-bottom: 1px solid gray;
}
.dropdown-item span {
  font-family: monospace;
  line-height: 1.4;
}
.dropdown-item:last-child {
  border: none;
}

.dropdown-icon {
  width: 25px;
  height: 25px;
  margin-left: 8px;
  flex-shrink: 0;
}

.comparison-container {
  display: flex;
  gap: 20px;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 20px;
}

.comparison-card {
  display: grid;
  grid-template-columns: 12px 1fr 338px 1fr 100px 1fr 100px 1fr 100px 1fr 100px 1fr;
  column-gap: 0; 
  width: 100%;
  position: relative;
  padding: 0 0;
  margin-bottom: 80px;
  align-items: start;
}


.comparison-header {
  display: grid;
  grid-template-columns: 350px 340px 235px 150px 150px 150px 150px;
  column-gap: 50px;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  padding-left: 50px;
}



#top-label {
  display: flex;
  flex-direction: column;
  position: relative;
}

#comparison-1 {
  display: flex;
  position: relative;
  flex-direction: column;
}

.bubble {
  position: absolute;
  top: 0;
  padding: 10px 16px;
  background-color: #fff;
  border-radius: 25px;
  font-size: 20px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  max-width: 400px;
  min-width: 60px;
  box-sizing: border-box;
}


.bubble.match {
  background-color: #d4edda; 
  color: #155724;
  border: 3px solid #155724;
}

.bubble.no-match {
  background-color: #f8d7da; 
  color: #721c24;
  border: 3px solid #721c24;
}

.match {
  color: green;

}

.no-match {
  color: red;

}

.bubble.calorie-lower {
  background-color: #f8d7da;
  color: #721c24;
  border: 3px solid #721c24;
}

.bubble.calorie-lower::after {
  content: " ↑";
}

.bubble.calorie-higher {
  background-color: #f8d7da;
  color: #721c24;
  border: 3px solid #721c24;
}

.bubble.calorie-higher::after {
  content: " ↓";
}

.bubble.calorie-same {
  background-color: #d4edda; 
  color: #155724;
  border: 3px solid #155724;

}

.bubble.decade-lower {
  background-color: #f8d7da;
  color: #721c24;
  border: 3px solid #721c24;
}

.bubble.decade-lower::after {
  content: "↑";
}

.bubble.decade-higher {
  background-color: #f8d7da;
  color: #721c24;
  border: 3px solid #721c24;
}

.bubble.decade-higher::after {
  content: "↓";
}

.bubble.decade-same {
  background-color: #d4edda; 
  color: #155724;
  border: 3px solid #155724;
}

.bubble.ingredients-none {
  background-color: #f8d7da; /* red */
  color: #721c24;
  border: 3px solid #721c24;
}

.bubble.ingredients-some {
  background-color: #fff3cd; /* yellow */
  color: #856404;
  border: 3px solid rgb(61, 52, 0); 
}

.bubble.ingredients-all {
  background-color: #d4edda; /* green */
  color: #155724;
  border: 3px solid #155724;

}

.burger img {
  padding-top: 50px;
}

 .popup {
  width: 900px;
  height: 800px;
  background: #aba9a9;
  border-radius: 25px;
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translate(-50%, 40%) scale(0.95);
  text-align: center;
  padding: 0 30px 30px;
  opacity: 0;
  gap: 500px;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  column-gap: 1000px;
  z-index: 5;
  border: 8px solid black;
  margin-top: 0px;
}

.victoryscreen {
  column-gap: 500px;
}
.victoryheader{ 
  border-bottom: 2px solid black;
}

.popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 15%) scale(1);
}

.resetButton.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 15%) scale(1);
  display: inline-block;
}

.visible{
  visibility: visible;
    display: inline-block;
}

.popup-footer {

  display: flex;
  justify-content: center;
}
#share-button {
  width: 100px;
  font-size: 24x;

  font-family: "VT323", monospace;

  display: flex;
  align-items: center;
  justify-content: space-evenly;


  color: rgb(235, 181, 111);
  border: none;
  border-radius: 8px;
  background-color: #353e6e;

}

#share-button:hover {
  background-color: #212850;
}

#practiceButton:hover {
  background-color: #212850;
}

#dailyButton:hover {
  background-color: #212850;
}

.popup h2{
  color: 333;
  font-weight: bold;
  -webkit-text-stroke: 2px black;
  font-size: 64px;
}

#stat-body {
  position: relative;

  display: flex;
  align-items: center;
  flex-direction: column;
  background: #aba9a9;
}

#statistics-title {
  margin-bottom: 24px;
}

#statistics {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-bottom: 32px;
}

.statistic {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.stat {
  font-size: 66px;
}

.descriptor {
  font-size: 22px;
}

.graph {
  display: flex;
  flex-direction: column;

  width: 100%;
  margin-top: 16px;
  margin-bottom: 16px;
}

.graph-label {
  margin-right: 6px;
}

.graphElem {
  font-size: 24px;

  display: flex;
  align-items: center;
  -webkit-justify-content: flex-end;
  justify-content: end;

  padding-right: 4px;

  color: white;
  background-color: #353e6e;
}

.graph-row {
  display: flex;
  align-items: center;

  height: 26px;
  margin-bottom: 15px;
}