html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}


nav {
  background-color: #c5c4c4;          
  padding:1px;              
  font-family: Arial, sans-serif;  
  margin-top: 20px;
  display:flex;
  
  align-items: center;
  background-color: #c5c4c4;
  padding: 10px;
}
nav ul li a {
  color: grey;        
  text-decoration: none;
  margin: 15px;
}
nav ul li a.active {
  color: #3d3d3d;  
 
}
nav ul {
  list-style:none;
  display: flex;
  justify-content: flex-start;
  margin-left: auto;
}

.footer {
  background-color: #acacac;
   padding: 1rem;
  text-align: center;
  display:flex;
   justify-content: space-between; 
   align-items: flex-start;
 margin-top: 10px;
 margin-right:15px;
 margin-left:15px;
 border-radius:10px;
 margin-bottom:15px
}
.link{
  background-color:rgb(34, 34, 39);
  width: 400px;
  height:50px;
  border-radius: 5px;
  margin-left: 100px;
  display:flex;
  text-align: center;
  justify-content:center;
 margin-bottom:10px;
   margin-left: auto; 
}
#footer_anchor {
  font-size: 25px;
 
  margin-top: 10px;
  text-decoration: none;
  color: rgb(255, 255, 255);
}
.wrapper{
  height:100vh;
display: flex;
flex-direction: column;
  margin:0;

}
main{
  flex:1;

}
.right-side {
  display:flex;
  flex-direction: column;
  align-items: flex-end;
   margin-right: 40px;
}
.quote{
  font-size: 20px;
  margin-bottom:4px;
}
#logo{
  font-size:18px;
 font-weight: bold;
  margin-left: 20px;
}
.left-side{
    display:flex;
  flex-direction: column;
  align-items: flex-start;
   margin-left: 40px;
}
#nick{
 margin-top:5px;
  color:#3f3f3f;
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
@media (max-width: 768px) {

  nav {
    position: relative;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-top: 5px;
    padding: 5px 10px; 
  }
 

  .nav-toggle {
    
    display: block;
     padding: 0.3rem 0.5rem;
    margin-left: auto;
     font-size: 20px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 1100;
  }


  nav ul {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;     
    right: 0;         
    width: 100vw;  
    background-color: rgb(56, 55, 55);
    padding: 0;        
    margin: 0;      
    z-index: 1000;
  }

 
  .nav-links.active a {
    color: white;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    margin: 0;
  }
  nav ul li{
    margin-top: 10px;
    margin-bottom:10px;
  }
 #logo {
    font-size: 14px;      
    margin-left: 10px;    
  }
  .nav-links.active a:hover {
    background-color: #333;
  }
    .footer {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 5px 15px 10px 15px; 
  padding: 0.5rem 0;       
}

.left-side,
.right-side {
  margin: 5px 0;            
  align-items: center;
}

.right-side {
  margin-right: 0;       
}

.link {
  width: 100%;          
  max-width: 300px;         
  height: 40px;             
  margin: 5px auto 0 auto;    
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#footer_anchor {
  font-size: 16px;           
  line-height: 1;             
  margin-bottom:10px;
}

.quote {
  font-size: 14px;          
  margin-bottom: 2px;       
}
nav ul li:first-child {
  margin-top: 100px; 
}
}

.link {
 
  width: 90%;
}
.footer{
  margin-left:10px;
  margin-right:10px;
}





.box-container {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  gap: 10px;           
  justify-content: end; 
  margin-right:60px;
  padding: 20px;
}

.box:nth-child(1) {
  width: 280px;
  height: 180px;
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size:15px;
}



.box:nth-child(2) {
  width: 220px;
  height: 190px;
  background-color: white;
}

.box:nth-child(3) {
  width: 280px;
  height: 180px;
  background-color: white;
}

.box:nth-child(4) {
  width: 220px;
  height: 230px;
  background-color: white;
}

.box {
  border: 2px solid #aaa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #333;
  margin-top: 30px;
  margin-right:40px;
    font-family: 'Source Sans Pro', sans-serif;
}
.stats-wrapper {
  display: flex;             
  align-items: flex-start;   
  justify-content: space-between;
  gap: 40px;                
}

.container_stats {
  width: 400px;             
  margin-left:200px;
  margin-top:40px;
  display:flex;
  flex-direction: column;
  text-align: center; 
}

.image {
  width: 100%;
  height: auto;
  display: block;
}
.container_stats header{
  font-size: 20px;
  font-weight:bold;

}
 .container_stats header{
  font-family: 'Oxygen', sans-serif;
 }
 #piechart {
    width: 80% !important;
    height: auto;
  }

@media (max-width: 768px) {
   .container_stats {
    width: 90%;
    margin: 0 auto;
        margin-top:30px;
      
  }
   .container_stats header {
    margin-top:30px;
    font-size:30px;
  
      font-family: 'Oxygen', sans-serif;
  }
  .container_stats p {
    font-size:10px;
    font-family: 'Source Sans Pro', sans-serif;

  }
  .image{
    width: 60%;
    margin-left:80px;
  }
  .stats-wrapper{
    display:flex;
    flex-direction: column;
    align-items:center;
    gap:20px;
  }
  
  .box-container {
    grid-template-columns: 1fr; 
    grid-template-rows: auto;
    margin: 0;
    padding: 0;
    margin-bottom: 50px;
    gap:10px;
  }
   .box {
    width: 60% !important; 
    height: auto;
    margin: 10px auto;
    align-items: center;
  }
   #piechart {
    width: 60% !important;
    height: auto;
  }

}
.box {
  display: block; 
}

.box p {
  display: block; 
  margin: 6px 0;   
  font-size: 12px; 
  margin-left:5px;
  font-family: 'Source Sans Pro', sans-serif;
}

.box .big-number {
  font-size: 30px; 
  font-weight: bold;
  color: #222;
  margin-bottom: 5px;
}
.box .title {
  width: 100%;
  text-align: center;
  font-size: 12px;
  margin-bottom: 40px;
  margin-top:15px;
}

.box h3 {
  margin: 6px 0 0;
  font-size: 13px;
}

.p{
   font-family: 'Source Sans Pro', sans-serif;
   margin-bottom:2px;
}
.image_2{
  height:60vh;
  width:80%;
  margin-left:40px;
}
