/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
  background: linear-gradient(135deg, #e0f7fa, #e8eaf6);
  color: #222;
    font-family: "Montserrat", sans-serif;
}

header{
  background-color: lightblue;
  padding: 10px;
  margin-bottom: 20px;
  height: 100px;
  font-size: 3rem;
  border-radius: 0 0 10px 10px;
}
header::after{
  content: "";
  position: absolute;
  top: 5px;
  left: 0px;
  width: 100%;
  background-color: violet;
  height: 100px;
  z-index: -1;
  border-radius: 0 0 10px 10px;

}

div#burger{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  margin-right: 20px;
  margin-top: -10px;
  position: absolute;
  top: 35px;
  left: 20px;

}

div#burger div{
  height: 4px;
  width: 25px;
  background: #333;
  border-radius: 5px;
  transition: all 0.3s ease;
}

section#burger_menu{
  position: absolute;
  top: 0px;
  left: 0;
  height: 100%;
  z-index: 1000;
  transition: 0.2s;
  background-color: #bee2ff;
  box-shadow: 4px 0 10px rgb(0,0,0,0.2), -4px 0 10px rgb(0,0,0,0.2) inset;
  z-index: 1000;
  width: 0;
  overflow: hidden;
  position: fixed;
}

section#burger_menu.active{
  width: 30%;
  padding: 20px;
}

section#burger_menu button#close{
  background-color: transparent;
  font-size: 2rem;
  position: absolute;
  top: 0;
  right: 0;
}
section#burger_menu ul{
  list-style-type: none;
  margin-top: 50px;
}
section#burger_menu a{
  display: flex;
  align-items: center;
  text-decoration: none;
  color: black;
  font-size: 1.5em;
  margin: 10px 0;
  transition: 0.2s;

  &:hover{
    text-decoration: underline greenyellow;
  }
}

section#burger_menu img{
  height: 40px;
  filter: drop-shadow(2px 2px 0px black);
  margin-right: 10px;
}


h1 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #37474f;
  letter-spacing: 1px;
  text-align: center;
}

h6{
  color: #555;
  font-size: 1.2rem;
  text-align: center;
}

section#main{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

form:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#main_group {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
textarea {
  width: 100%;
  height: 300px;
  padding: 1rem;
  font-size: 1rem;
  border: 1.5px solid #cfd8dc;
  resize: vertical;
  outline: none;
  background: #fafafa;
}

textarea:focus {
  border-color: #2196f3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

textarea::-webkit-scrollbar {
  width: 5px;
}

textarea::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#chartContainer {
  min-width: 300px;
  min-height: 300px;
  max-width: 300px;
  max-height: 300px;
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.btn-group {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 50vw;
}

button {
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: 1s
    linear(
      0,
      0.041 1%,
      0.178 2.2%,
      0.912 6.2%,
      1.152 7.8%,
      1.297 9.3%,
      1.339 10.1%,
      1.358 10.9%,
      1.35 12%,
      1.301 13.3%,
      1.026 17.5%,
      0.941 19.1%,
      0.891 20.6%,
      0.871 22.1%,
      0.874 23.2%,
      0.891 24.5%,
      1.021 30.3%,
      1.046 33.2%,
      1.042 35.3%,
      0.995 41.1%,
      0.983 44.4%,
      1.006 55.5%,
      0.998 66.6%,
      1
    );

  &:hover {
    scale: 0.95;
  }
}

button#sentimentBtn {
  border: 1px solid black;
}

#copy {
  background: #03a9f4;
  color: #fff;
}
#copy:hover {
  background: #0288d1;
}

#reset {
  background: #e53935;
  color: #fff;
}
#reset:hover {
  background: #c62828;
}

#download {
  background: #4caf50;
  color: #fff;
}
#download:hover {
  background: #388e3c;
}

div#loader {
  display: none;
}

div#loader img {
  height: 40px;
}
.stats {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.stat-box {
  background: #ffffffb3;
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.stat-box:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.stat-box span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e88e5;
}

#topWordsSelect {
  background-color: wheat;
  padding: 10px;
  font-weight: 600;
  border-radius: 5px;
  margin: 10px 0 10px 0;
}

footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 600px) {
  form {
    padding: 1rem;
  }
  textarea {
    font-size: 0.9rem;
  }
}

#tone {
  font-weight: 600;
}

div#chartsContainer {
}
canvas#uniqueWords {
  max-width: 600px;
  border: 2px solid black;
  border-radius: 10px;
  padding: 10px;
}
