*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
:root{
    --dark-grey: #0a0a23;
    --white: #ffffff;
    --green: #008000;
    --blue: #0000ff;
    --fuchsia:#ff00ff;
}
body{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
main{
  background-color:var(--dark-grey);
  width:100%;
  height:100vh;
}
.logo {
  width:200px;
  padding: 20px;
}
#header{
  text-align: center;
  font-size:1rem;
  font-weight:bold;
  background-color:var(--dark-grey);
  color:var(--white);
  margin: 20px auto;
}
#palindrome-container{
  width:400px;
  height:150px;
  border-radius:1em;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  position:relative;
  text-align:center;
  margin:20px auto;
  background-color:var(--white);
  border-bottom:5px solid var(--blue);
}
.buttons{
  width:55%;
  height:80px;
  border-radius:1em;
  text-align:center;
}
#palindrome-info{
  text-align: center;
  font-weight:bold;
  background-color:var(--dark-grey);
  color:var(--white);
  margin: 20px auto;
  width:400px;
}
#idea{
  background-color:var(--green);
  color:var(--white);
  border-radius:1em;
  height:80px;
  font-size:1rem;
}
#check-btn{
  background-color:var(--fuchsia);
  border-radius:20%;
  position:absolute;
  top:3em;
  right:2px;
  width:20%;
  height:2em;
  font-weight:bold;
}
.input{
  position:absolute;
  left:3px;
  top:3em;
  width:70%;
  height:2em;
  border-radius:0.3em;
  padding-left:0.5em;
  font-weight:bold;
}
.label{
  position:absolute;
  top:0.5em;
  left:auto;
  width:17rem;
  font-weight:bold;
  padding-bottom:0.5em;
}
#result{
  display: none;
  position:absolute;
  top:6em;
  left:auto;
  width:17rem;
  font-weight:bold;
  background-color: #0a0a23;
  color: var(--white);
  padding:0.5em;
  border-radius:0.5em;
  height: 2.5em;
  width:90%;

}
#result.correct{
  background-color: var(--green);
}
@media (max-width: 450px) {
  #palindrome-container, #header, #palindrome-info {
    width: 90%;
  }
  .buttons {
    width: 80%;
  }
  #check-btn, .input, .label, #result {
    width: 90%;
  }
}
