@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: #4a4a4a;
}

.unicontainer {
  background-image: url("uniimg.jpeg");
  height: 100vh;
  /* max-height: 100%; */
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* this is the container for entering the words section */
.enterwords {
  background-color: rgba(255, 255, 255, 0.8);
  /* min-height: 800px; */
  /* height: 100%; */
  max-width: 900px;
  min-width: 300px;
  width: 80%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.storypara {
  background-color: rgba(255, 255, 255);
  height: 80%;
  width: 70%;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 50px;
  gap: 20px;
}

.storypara {
  font-size: 26px;
}

/* this css is for the each word you enter */
.eachword {
  display: inline;
  background-color: rgb(165, 96, 77, 0.8);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 10px 15px;
  justify-content: center;
}

.wordtype {
  /* background-color: rgba(255, 255, 255); */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 10px;
}

.uni-words {
  display: flex;
  flex-direction: column;
  width: 60%;
}
h2 {
  padding-top: 30px;
}
h4 {
  text-align: center;
}

.btns {
  padding-bottom: 60px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 25px;
  border: none;
  font-size: inherit;
  color: white;
  transition: all 0.2s;
}
.btn:hover {
  font-size: calc(100% + 4px);
  transition: all 0.2s;
}

.clear {
  background-color: #4a4a4a;
}
.rand {
  background-color: rgb(39, 78, 184);
}
.story {
  background-color: green;
}
.back {
  background-color: #27a79f;
}
input {
  border: none;
  height: 25px;
  font-family: inherit;
  font-size: inherit;
  color: #4a4a4a;
  padding: 10px 15px;
}

span {
  color: violet;
  font-size: calc(100% + 4px);
}

/* this css is for the messsage about required fields */
.error-close {
  border: none;
  background-color: transparent;
  font-size: 24px;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  backdrop-filter: blur(2px);
  z-index: 5;
}

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.error {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  border: 1px black solid;
  padding: 20px;
  border-radius: 5px;
  background-color: white;
  z-index: 10;
  position: absolute;
  top: 40%;
  left: 40%;
  right: 40%;
}

/* this is a hidden class which will be used by everyone to display none */
.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .wordtype {
    flex-direction: column;
    align-items: center;
  }
  .storypara {
    font-size: 20px;
  }
  .error {
    left: 35%;
    right: 35%;
  }
}

@media (max-width: 510px) {
  body {
    font-size: 16px;
  }
  .storypara {
    font-size: 14px;
  }
  h2 {
    padding-top: 100px;
  }
  .error {
    left: 20%;
    right: 20%;
  }
  .btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
} ;
