@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;500;600;800&family=VT323&display=swap');

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #222;
  background-color: #f0f2f5;
}

.grid {
  display: grid;
  grid-template-columns: 3fr 9fr;
}

.sidebar {
  background-color: #F5F5F5;
  box-shadow: 5px 0px 20px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.sidebar h1 {
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 15px;
  background-color: #1431b3; 
  color: #fff;
  margin-bottom: 20px;
}

.sidebar .instruction h3{
  margin-top: 30px;
  font-size: 20px;
  color: #1431b3; 
  padding: 0 10px;
  text-align: center;
}

.sidebar .instruction ul {
  list-style: none;     
  padding: 0;           
  margin: 0 20px;          
  text-align: center;   
}

.sidebar .instruction p,
.sidebar .instruction li {
  font-size: 15px;
  text-decoration: none;
  list-style: none;
  margin: 3px 0; 
}

.map {
  height: 100vh;
  z-index: 2;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  width: 350px;
  height: 350px;
  font-weight: bolder;
  margin: 0 10px;
}

.footer {
  display: flex;
  margin-top: 64px;
  padding: 10px 0;
  background-color: #1431b3; 
  color: white;
  justify-content: center;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
}

.footer img{
  max-width: 50px;
  max-height: 50px;
  margin: 0;
}

.footer a{
  text-decoration: none;
  color: white;
  transition: font-size 0.3s ease;
}

.footer a:hover{
  font-size: 20px
}

@media only screen and (max-width: 600px) {
  .grid {
    display: block;
  }

  .sidebar {
    margin: 0;
    position: fixed;       
    z-index: 100;
    bottom: 10px;          
    right: 10px;            
    width: 250px;          
    max-height: 200px;     
    background-color: #F5F5F5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border-radius: 5px;    /* rounded corners */
    overflow-y: auto;       
    text-align: center;
  }

  .sidebar h1 {
    padding: 8px;
    font-size: 20px;
  }

  .sidebar .instruction h3 {
    margin: 0 20px;
    display: block;
    font-size: 14px;  
    padding: 0;
  }

  .sidebar .instruction ul {
    margin: 0px;
  }

  .sidebar .instruction li {
    margin: 0 0px;
    display: block;
    font-size: 10px;  
    padding: 0;
  }

  .chart-container {
    width: 200px;  
    height: 200px; 
  }

  .footer {
    margin-top: 5px;
    font-size: 12px;
  }

  .footer img {
    max-width: 30px;
  }

  .map {
    height: 100vh;          /* map fills viewport */
  }
}
