@import url('https://fonts.googleapis.com/css2?family=Andika:wght@700&family=Chivo+Mono:wght@700&family=Lora&family=Poppins&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

:root {
  --font-family: 'Poppins', sans-serif;
  --main-color: #F1F6F9;
  --body-color: #394867;
  --text-color: #212A3E;
  --font-size: 1.2rem;
  --font-weight: 900;
}


.navbar {
  position: sticky;
  top: 0;
  overflow-y: hidden;
  width: 100vw;
  height: 64px;


  background: white;
  display: flex;

  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px var(--main-color);
}

.navbar>a {
  margin-left: 68px;
}

.navbar img {
  width: 10rem;
  height: 10rem;
}

.navbar ul {
  margin-right: 2rem;

  width: 50%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: visible !important;
}

.navbar ul>li {
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  list-style: none;
  overflow: visible !important;
}

.navbar ul a {
  font-family: var(--font-family);
  text-decoration: none;
  color: var(--text-color);
}

.navbar ul a:hover {
  border-bottom: .2rem solid var(--text-color);
}

#dash-id {
  cursor: pointer;
}

#modal {
    background-color: var(--main-color);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    position: fixed;
    z-index: 9999;
    top: 10%;
    left: 70%;
    width: 25vw;
    height: 10vh;
    display: none;
    text-align: center;
}
#logout{
    margin-top: 3%;
    background-color: red;
    border-color: transparent;
    width: 150px;
    height: 50%;
    border:transparent;
    border-radius: 2rem;
    color: var(--main-color);
    font-family: var(--font-family);
}

.hamburger{
    margin-right: 5%;
    display: none;
    cursor: pointer;
}
.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    margin-right: 20%;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3 s ease-in-out;
    background-color: var(--text-color);
}




 
#chart{
    background: rgba(183, 237, 183, 0.2);
    width: 100vw;
    height:70vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#chart>.bitcoin {
  width: 40%;
  height: 100%;
  padding-top: 10rem;
  text-align: center;
}

#chart>.bitcoin>a {
  text-decoration: none;
  color: transparent;
  margin-top: 5%;
}

#chart>.bitcoin>a>img {
  margin-right: 20%;
  width: 20%;
  height: 30%;
}


#chart>.bitcoin>h1 {
  font-family: var(--font-family);
  color: var(--text-color);
  font-weight: var(--font-weight);
}

#chart>div {
  height: 100%;
  width: 60%;

}

#chart>div>#myChart {
  height: 100%;
  width: 100%;
  margin: auto;
}
#current{
  font-size: var(--font-size);
  color: var(--text-color);
  font-family: var(--font-family);
}
#current>span{
  
  font-family: var(--font-family);
}
/* code for chat box */
.chat-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 300px;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}

.message-box {
  height: 100%;
  overflow-y: scroll;
  padding: 10px;
}

.input-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #ccc;
}

.input-box input {
  flex: 1;
  margin-right: 10px;
  padding: 5px;
  border-radius: 5px;
  border: none;
  outline: none;
}

.input-box button {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.input-box button:hover {
  background-color: #0069d9;
}

#chat h2 {
  margin: 0;
  padding: 10px;
  background-color: #007bff;
  color: #fff;
  text-align: center;
}

/* for chat box css */

.message-box p {
  margin: 0;
}

.message-box p span.name {
  color: red;
  font-family: 'Poppins', sans-serif;
}


.message-box p span.msg {
  color: teal;
  font-family: 'Poppins', sans-serif;
}

  @media(max-width:768px){
    .hamburger{
        display: block;
    }
   
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
        transform: translateY(2px) rotate(45deg);
       
    }
    .hamburger.active .bar:nth-child(3){
        transform: translateY(2px) rotate(-45deg);
       
    }
    .nav-menu{
        position: fixed;
        right: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--main-color);
        width: 300px;
        text-align: center;
        transition: 0.3s;
    }
    .nav-item{
        margin: 16px 0;
    }
    .nav-menu.active{
        right: 0;
    }

   #chart{
    flex-direction: column;
    height: 100vh;
   }
   #chart>.bitcoin>a>img{
    width: 50%;
    height: 40%;
   }
    #modal {
        background-color: var(--main-color);
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        position: fixed;
       
        z-index: 9999;
        top: 35%;
        left: 70%;
        width: 25vw;
        height: 10vh;
        display: none;
        text-align: center;
    }
    
}
@media(max-width:600px){
    .hamburger{
        display: block;
    }
   
    .hamburger.active .bar:nth-child(2){
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1){
        transform: translateY(2px) rotate(45deg);
       
    }
    .hamburger.active .bar:nth-child(3){
        transform: translateY(2px) rotate(-45deg);
       
    }
    #chart{
      flex-direction: column;
      height: 120vh;
     }
     #chart>.bitcoin>a>img{
      margin-left: 10px;
      width: 80px;
      height: 80px;
     }
    .nav-menu{
        position: fixed;
        right: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--main-color);
        width: 100vw;
        text-align: center;
        transition: 0.3s;
    }
    .nav-item{
        margin: 16px 0;
    }
    .nav-menu.active{
        right: 0;
    }
    
    #logout{
        margin-top: 3%;
        background-color: red;
        border-color: transparent;
        width:80px;
        height: 50%;
    }
    #modal {
        background-color: var(--main-color);
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        position: fixed;
       
        z-index: 9999;
        top: 35%;
        left: 70%;
        width: 25vw;
        height: 10vh;
        display: none;
        text-align: center;
    }
    
}