/*---------------------------------*/
/*-----------BASE STYLES-----------*/
/*---------------------------------*/
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

html {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.bold-label {
  font-weight: 500;
}

/*---------------------------------*/
/*------------iFRAMES--------------*/
/*---------------------------------*/

.flexbox-container {
  display: flex;
  justify-content: center;
}

.box-maps {
  order: 2;
  width: 65%;
}

.hidden {
  display: none;
}

/*---------------------------------*/
/*-------BUTTONS & LINKS-----------*/
/*---------------------------------*/

.filter-button-container {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

.button {
  font-size: 14px;
  padding: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  background-color: #ffff;
  color: #b0b0b0;
  border: none;
}

.last-update {
  font-size: 14px;
  margin-left: .6rem;
}

#last-update-data-fetch {
  font-size: 14px;
}

.button:hover {
  background-color: #f5f5f5;
  color: #0a2458;
}

.button.active {
  background-color: #ffff;
  color: #0a2458;
  font-weight: bold;
  border-bottom: 0.3rem solid #0a2458;
}

a:link {
  text-decoration: none;
  color: black;
}

a:visited {
  text-decoration: none;
  color: #7a7a7a;
}

a:hover {
  text-decoration: none;
  color: #0054a4;
}

a:active {
  text-decoration: underline;
}

.download-wrapper {
  margin-top: 2rem;
  text-align: center;
}

/*---------------------------------*/
/*-------SMALL SCREENS VIEW--------*/
/*---------------------------------*/

@media screen and (max-width: 1600px) {
  html {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

@media screen and (max-width: 1100px) {
  html {
    margin-left: 0.4rem;
    margin-right: 0.4rem;
  }

  .flexbox-container {
    flex-direction: column;
  }

  .box-text {
    order: 2;
    width: 95%;
    margin: auto;
  }

  .box-maps {
    order: 1;
    width: 100%;
  }
}


/* ------------------------------------------------------ */
/*                         Legend                         */
/* ------------------------------------------------------ */
.nuclear-legend {
  font-family: "Work Sans", sans-serif;
  text-align: center;
  margin-top: 2rem;
  display: none;
}

#tot-capacity {
  font-size: 16.8px;
  font-weight: 300;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.legend-grid-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.legend-grid.labels {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.legend-grid.values {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 1rem;
}

.legend-grid.labels div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-bottom: 6px;
}

.label {
  font-weight: 500;
  font-size: 1rem;
}

.value {
  margin-top: 0.75rem;
  font-weight: 400;
  color: #333;
}

.consideration {
  background-color: #ffcf85;
}
.development {
  background-color: #ff9a54;
}
.construction {
  background-color: #cf5b17;
}
.operating {
  background-color: #44c07b;
}
.on-hold {
  background-color: #808080;
}
.large-scale {
  background-color: #cf5b17;
}

.smr {
  background-color: #0054a4;
}

.uprate {
  background-color: #dc96cb;
}

.microreactor {
  background-color: #9bc196;
}

.demonstration {
  background-color: #ffcd00;
}

.legend-grid.mobile {
  display: none;
}

@media (max-width: 620px) {
  .legend-grid.labels,
  .legend-grid.values {
    display: none;
  }

  .legend-grid.mobile,
  .download-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    margin: 0 10%;
  }

  .legend-grid.mobile .legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    font-size: 1rem;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: -0.5rem;
  }

  .legend-grid.mobile .label-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
  }

  .legend-grid.mobile .value {
    font-weight: 400;
  }
}