* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;    
  }
 body {
    background-color: white;
    font-family: sans-serif;
    display: flex;
    justify-content: center;    
  }
  #main {
    width: 900px;
    min-height: 600px;
    height: auto;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;  
    
  }
  .title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;    
    height: auto;
    align-items: center;
  }
  #title{
    text-align: center;
    font-size: 28px;
    margin: 6px 0;
  }
  #subtitle{
    text-align: center;
    font-size: 20px;  
  }
  #graph{
    font-size: 17px;
    background-color: white;
    margin: auto;
    color: black;
    width: 100%;
    min-height: 350px;
    position: relative;
    margin-top: 20px; 
    
  }  
  #y-axis, #x-axis {
    font-size: 13px;
  }
  #tooltip {    
    color: white;
    border: none;  
    pointer-events: none;
    position: absolute;
    visibility: hidden;
    font-size: 14px;
    min-width: 150px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: start;
    padding: 10px;
    border-radius: 10px;
    z-index: 999;      
  }
  .year-time {
    display: flex;  
  }
  .span {
    min-width: 10px;
  }
  .doping {
    background-color: rgba(0, 0, 255, 0.7);
    width: 17px;
    height: 17px;
  }
  .no-doping {
    background-color: rgba(255, 99, 71, 0.9);
    width: 17px;
    height: 17px;
  }
  #legend {
    display: flex;
    width: 100%;    
    justify-content: flex-start;
    flex-direction: column;  
    position: relative;
    left: 50px;
    top: -80px;
  }
  #left-legend, #right-legend {
    display: flex;
    justify-content: flex-start;
  }
  #right-legend {
    margin-top: 8px;
  }
  .legend-text {
    margin-left: 11px;
  }

  @media screen and (max-width: 900px) {
    #title {        
        font-size: 24px;        
    }
    #description {        
        font-size: 15px;        
    }    
    body {
        justify-content: flex-start;
    }
    #title {
        text-align: center;        
    }
  }
  @media screen and (max-width: 500px) {
    #title {        
        font-size: 22px;        
    }
    #subtitle {        
        font-size: 17px;        
    }   
    .legend-text {
      font-size: 15px;
    }
  }
  @media screen and (max-width: 390px) {
    #title {        
        font-size: 17px;        
    }
    #subtitle {        
        font-size: 14px;        
    }   
  }