:root {
  --bg-color: white;
  --text-color: black;
}

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

body {
  margin: 0 0 0 0;
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  font: 16px "Poppins", Helvetica, Arial, sans-serif;
  height: 100%; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main{
  flex: 1;
}

p{
  margin-top: 0.4dvh;
}

a{
  color: var(--text-color)
}

.writtenText{
  display: grid;
  padding-left: 2rem;
}

.canvasParent{
  display: flex;
  width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
}

.minmax{
  margin-top: 1.5rem;
}

.canvas {
  display: flex;
  height: 30rem;
  width: 70%;
  justify-content: center;
}

.timeRangeButtons {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}


.timeRangeBtn {
  padding: 0.75rem 2rem;
  border: none;
  background-color: rgba(60, 60, 60, 0.8);
  color: white;
  font-size: 1rem;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.3s;
  border-radius: 0;
}

.timeRangeBtn:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.timeRangeBtn:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.timeRangeBtn:hover {
  background-color: rgba(80, 80, 80, 0.9);
}

.timeRangeBtn.active {
  background-color: rgba(150, 150, 150, 0.7);
  color: white;
  font-weight: 500;
}



.tgSect {
  text-align: center;
  margin: 4rem auto;
}

.tgSect p {
  font-size: 1.1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.tgSect a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #0088cc;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.tgSect a:hover {
  opacity: 0.7;
}

.telegram-icon {
  width: 35px;
  height: 35px;
  vertical-align: middle;
}






.footerEnd{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  padding-bottom: 2rem;
  background: #254441;
  color: #CCC;
}

.logoFooter > a > img {
  margin-top: 1.2rem;
  width: 80px;
  height: 80px;
  border-radius: 40px;
  margin-right: 2rem;
}

.footerTxt{
  padding-top: 1.2rem;
}

.footerTxt > p{
  margin-bottom: 0;
}

@media screen and (max-width: 900px){
  html, body{
    padding: 0;
    position: relative;
    width: 100%;
    overflow-x: hidden;
  }
  
  h1 span {
    display: block;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.6;
    font-weight: bold;
  }

  .writtenText{
    padding-left: 0.5rem;
  }

  .canvasParent {
    display: flex;
    height: 100%;
    width: 98.5dvw;
    justify-content: center;
    align-items: center;
  }
  
  .canvas {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  
  .timeRangeButtons {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .timeRangeBtn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}


@media screen and (orientation: portrait) and (max-width: 475px){
  .canvasParent {
    display: flex;
    height: 100%;
    width: 97%;
    overflow: hidden;
  }

  .canvas{
    padding: 0rem;
    height: 23rem;
  }
  
  .box-station{
    padding-left: 0.4rem;
  }

  .footerEnd{
    font-size: 14px;
    flex-direction: column;
    display: block;
    align-items: center;
    padding-bottom: 0.8rem;
  }

  .footerTxt{
    padding: 0;
  }

  .logoFooter{
    display: flex;
    margin-top: 0;
    justify-content: center;
  }

  .logoFooter > a > img{
    margin-top: 0;
    margin-right: 1.2rem;
    width: 50px;
    height: 50px;

  }

  .footerTxt{
    margin-top: 0.4rem;
  }

}