* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inconsolata', monospace;
  background: url("./assets/bg.jpg");
  background-size: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-weight: bold;
  font-size: 44px;
  line-height: 34px;
  color: #fff;
  text-align: center;
}

h2 {
  font-weight: bold;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
  text-align: center;
  margin-bottom: 36px;
}

p {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  margin: 0;
}

input {
  box-sizing: border-box;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #ececec;
  padding: 16px;
  font-size: 16px;
  font-family: 'Inconsolata';
  font-weight: 600;
  line-height: 26px;
  flex: 1;
}

main {
  margin: 40px auto;
  width: 100%;
  max-width: 700px;
  height: 600px;
  border-radius: 10px;
  background: #fff;
  padding: 20px 24px;
  padding-top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 50px solid rgb(70, 68, 68);
  color: rgb(70, 68, 68);
  position: relative;
}

/* 3D-effect on tv. Adds a border  */
main::after {
  content: " ";
  position: absolute;  
  height: 60px;
  top: -12%;  
  right: -8.5%;   
  width: 118%;
  max-width: 700px;
  border-top: 20px solid rgb(80, 76, 76);
  border-radius: 13%;
}

/* Green light on tv  */
.chat::after {
  content: " ";
  position: absolute;
  background-color: rgb(11, 224, 47); 
  border: 1px solid black; 
  box-shadow: 0 0 15px green;
  top: 104%;
  right: 100%;  
  height: 10px;
  width: 10px;  
  border-radius: 50%;
}

.chat {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow: scroll;
  flex-direction: column;
  padding-bottom: 16px;
  
}

.bot-msg {
  display: flex;
  margin: 16px 8px 0 0;
  flex-shrink: 0;
}

.user-msg {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0 8px;
  flex-shrink: 0;
}

.bot-msg img,
.user-msg img {
  width: 60px;
  height: 60px;
}

.bubble {
  background: #ececec;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 24px;
  max-width: 40%;
}

.bot-bubble {
  border-radius: 0px 26px 26px 26px;
  margin-left: 8px;
}

.user-bubble {
  border-radius: 26px 0 26px 26px;
  margin-right: 8px;
}

.input-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 20px 0 20px;
}

form {
  width: 100%;
  display: flex;
}

button {
  background-color: rgb(110, 109, 109);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0;
  margin-right: 4px;
  font-size: 20px;
  line-height: 26px;
  font-family: 'Inconsolata';
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
  width: 25%;
  height: 60px;
  box-shadow: 0 0 10px grey;
}

button:hover {
  opacity: 0.9;
  transition: all 0.2s ease;
}

.genre-options,
.button-options {
  display: none;
  width: 100%;
  justify-content: center;
}

.active {
  display: flex;
}
.hide {
  display: none;
}
.comedy-btn {
  font-family: 'Grandstander', cursive;
  color: #CC533C;
  background-color: #f1f130;
  
}
.comedy {
  font-family: 'Grandstander', cursive;
  color: #CC533C;
}
.action-btn {
  font-family: 'Bangers', cursive;
  color: #1F25DE;
  background-color: #adb2dd;
  
}
.action {
  font-family: 'Bangers', cursive;
  color: #1F25DE;
}
.horror-btn {
  font-family: 'Creepster', cursive;
  color: #8A0707;
  background-color: #f5ecec;
  
}
.horror {
  font-family: 'Creepster', cursive;
  color: #8A0707;
}
.romantic-btn {
  font-family: 'Princess Sofia', cursive;
  background-color: #f3bac8;
  color: #62196b;
  
}
.romantic {
  font-family: 'Princess Sofia', cursive;
  color: #62196b;
}

@media (min-width: 768px) {
  #main {
    -webkit-animation: tvflicker .2s infinite alternate;
    animation: tvflicker 7.5s infinite alternate;
  }
  @-webkit-keyframes tvflicker {
    0% {box-shadow: 0 0 100px 0 rgba(200,235,255,0.4);}     
    100% {box-shadow: 0 0 60px 0 rgba(200,230,255,0.45);}   
  }
  @keyframes tvflicker {
    0% {box-shadow: 0 0 100px 0 rgba(200,235,255,0.4);}  
    100% {box-shadow: 0 0 50px 0 rgba(200,220,255,0.6);}
  } 
  
  }

@media (max-width: 767px) {
  .active {
    flex-wrap: wrap;
    justify-content: center;
  }
  main {
    padding: 10px;
    border-width: 30px;
  }
  main::after {
    display: none;
  }
  .chat::after {
    display: none;
  }
  .input-wrapper {
    padding: 20px 0;
  }
  .bubble {
    max-width: 70%;
  }
  button {
    width: 40%;
  }
}