:root {
  --primary-color: hsl(0, 0%, 10%);
  --secondary-color: hsl(0, 0%, 20%);
  --text-color-white: hsl(0, 0%, 95%);
  --text-color-black: hsl(0, 0%, 10%);
  --hover: hsl(0, 0%, 15%);
  --box-shadow: 0px 4px 4px #00000015;
}
:root .light {
  --primary-color: hsl(0, 0%, 95%);
  --secondary-color: hsl(0, 0%, 85%);
  --text-color-white: hsl(0, 0%, 5%);
  --text-color-black: hsl(0, 0%, 10%);
  --hover: hsl(0, 0%, 90%);
  --box-shadow: 0px 4px 4px #00000015;
}

header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
body {
  background-color: var(--primary-color);
  color: var(--text-color-white);
  font-family: "Raleway", sans-serif;
  margin: 0px 10px;
}
/* hamburger button */
.shivayya {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 24px;
  gap: 4px;
  cursor: pointer;
}
.shivayya span {
  width: 24px;
  height: 3px;
  background-color: var(--text-color-white);
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
#menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  background-color: var(--secondary-color);
  padding: 20px 20px;
  position: absolute;
  right: 10px;
  top: 60px;
  border-radius: 12px;
  z-index: 100;
}
#menu span a {
  text-decoration: none;
  color: var(--text-color-white);
}

#menu span {
  cursor: pointer;
}

.show-menu #menu {
  display: flex;
}
/* main content  */
.container {
  gap: 24px;
  width: 100%;
}

.hero {
  padding: 50px 0 0 0;
}
input {
  height: 50px;
  border-radius: 8px;
  padding: 0px 10px;
  outline: none;
  margin: 8px 0;
  border: none;
}
p {
  text-align: center;
}
.input-container {
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background-color: var(--secondary-color);
  margin: auto;
  width: 450px;
  margin-top: 24px;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}
label {
  font-size: 18px;
  word-wrap: nowrap;
  text-align: center;
}
#submit {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: var(--text-color-white);
  border: none;
  cursor: pointer;
}
#submit:hover {
  transform: scale(0.95);
  background-color: var(--hover);
}

.inputTags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

dialog {
  &form {
    margin: 0;
    padding: 0;
  }
  width: 30%;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background-color: var(--secondary-color);
  color: var(--text-color-white);
  border: none;
  padding: 20px;
  z-index: 1000;
  margin: auto;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}
dialog:not([open]) {
  display: none;
}
#close {
  padding: 10px 20px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: var(--text-color-white);
  border: none;
  cursor: pointer;
}
#close:hover {
  transform: scale(0.95);
  background-color: var(--hover);
}
#result {
  font-size: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
@media (max-width: 576px) {
  .input-container {
    width: 90%;
    max-width: 400px;
    margin: 24px auto;
  }
  dialog {
    width: 90%;
    max-width: 400px;
  }
}
@media (min-width: 577px) and (max-width: 768px) {
  .input-container {
    width: 90%;
    max-width: 700px;
  }
  dialog {
    width: 90%;
    max-width: 700px;
  }
}
