html { font-size: 150%; }
/* light gray page–wide background */
body {
background-color: #bbbbbb;
margin: 5;
padding: 0;
}

/* HEADER / FAVICON BANNER */
#header {
background: #111;
padding: 0;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
text-align: center;
}
#header h1 {
margin: .5rem;
font-family: cursive;
font-size: 2rem;
color: #fff;
}

/* NAVBAR */
nav {
background: #444;
display: flex;
justify-content: center;
padding: 0.5rem 0;
}
nav a {
font-family: cursive;
color: #fff;
margin: 0 1rem;
text-decoration: none;
font-size: 1.4rem;
transition: transform .2s ease;
}
nav a:hover {
transform: scale(1.2);
}

/* BUTTONS WITH CODE SECTION */
.buttons-with-code {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
margin: 1rem 5%;
}
.buttons-group {
display: flex;
flex-direction: column;
gap: .5rem;
align-items: flex-start;
}
.buttons-group_right {
align-items: flex-end;
}
.buttons-group button {
width: 12rem;
height: 2.5rem;
padding: .5rem 1rem;
font-family: sans-serif;
font-size: 1rem;
color: #fff;
border: none;
border-radius: 999px;
cursor: pointer;
}
.buttons-group button:hover {
transform: scale(1.1);
}
.buttons-group button.warmer {
background-color: #e74c3c;
}
.buttons-group button.colder {
background-color: #3498db;
}

button:disabled {
  background-color: #444 !important;
  color: #ecf0f1 !important;
  cursor: default !important;
  pointer-events: none !important;
  transform: none !important;
}

/* CLIMATE DISPLAY STYLES */
main {
padding: 2rem 1rem;
}
main h1 {
font-family: cursive;
font-size: 2.5rem;
text-align: center;
margin: 0.5rem 0;
}
.climate-code h2 {
font-family: cursive;
font-size: 2rem;
text-align: center;
margin: 0;
}
.climate-code h2 strong {
font-family: sans-serif;
font-weight: bold;
}
main img {
display: block;
margin: 1rem auto;
max-width: 90%;
height: auto;
}
main h3 {
font-family: cursive;
font-size: 1.6rem;
text-align: center;
margin: 1.5rem 0 0.5rem;
}
main h3 strong {
font-family: sans-serif;
font-weight: bold;
}
main p {
font-family: sans-serif;
font-size: 1rem;
text-align: center;
margin: 0;
}

/* ARIDITYBOX */
.box {
/* custom properties must start with -- */
--outer-col-width: 150px;
--center-col-width: 225px;
--btn-height: 75px;
--gap: 15px;
--radius: 30px;
width: fit-content;
margin: 0 auto;   
}
.box .ariditybox-border-outer {
margin: 50px auto;
display: inline-block;
border: 3px solid black;
padding: 8px;
}
.box .ariditybox-border-inner {
display: inline-block;
border: 3px solid black;
padding: var(--gap);
}
.box .ariditybox-grid {
display: grid;
grid-template-columns:
  var(--outer-col-width)
  var(--center-col-width)
  var(--outer-col-width);
grid-template-rows:
  var(--btn-height)
  var(--btn-height)
  var(--btn-height)
  var(--btn-height);
gap: var(--gap);
justify-content: center;
align-content: center;
margin: 0;
}
.box .ariditybox {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
border-radius: var(--radius);
font-family: sans-serif;
font-size: 1.2rem;
color: black;
text-align: center;
text-decoration: none;
transition: transform 0.2s ease;
pointer-events: auto;
}
.box .ariditybox:not(.disabled):hover {
transform: scale(1.05);
}
.box .ariditybox-humid {
grid-row: 1;
grid-column: 2;
background: #007500;
}
.box .ariditybox-humid.disabled {
background: #444444 !important;
pointer-events: none;
cursor: default;
}
.box .ariditybox-semihumid {
grid-row: 2;
grid-column: 2;
background: lightgreen;
}
.box .ariditybox-semihumid.disabled {
background: #444444 !important;
pointer-events: none;
cursor: default;
}
.box .ariditybox-semiarid {
grid-row: 3;
grid-column: 2;
background: orange;
}
.box .ariditybox-semiarid.disabled {
background: #444444 !important;
pointer-events: none;
cursor: default;
}
.box .ariditybox-mediterranean {
grid-row: 1 / span 3;
grid-column: 1;
background: #eeee00;
}
.box .ariditybox-mediterranean.disabled {
background: #444444 !important;
pointer-events: none;
cursor: default;
}
.box .ariditybox-monsoon {
color: white;
grid-row: 1 / span 3;
grid-column: 3;
background: purple;
}
.box .ariditybox-monsoon.disabled {
background: #444444 !important;
pointer-events: none;
cursor: default;
}
.box .ariditybox-arid-desert {
grid-row: 4;
grid-column: 1 / span 3;
background: red;
}
.box .ariditybox-arid-desert.disabled {
background: #444444 !important;
pointer-events: none;
cursor: default;
}
.box .ariditybox.highlight {
box-shadow:
0 0 0 5px #bbbbbb,
0 0 0 10px black;
}

.cities-block ul {
  list-style-type: none;   /* remove bullets */
  padding-left: 0;         /* remove left indent */
  margin: 0 auto;          /* center the block itself */
  text-align: center;      /* center the text */
}
