.newsreader-type {
  font-family: "Newsreader", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

:root {
  --primary-color: rgb(255, 255, 255);
  --background-color-one: rgb(50, 90, 81);
  --background-color-two:rgb(23, 41, 45);
  --text-color: rgb(34, 58, 70);
  --secondary-text-color:rgb(194, 173, 86);
}
html {
  scroll-behavior: smooth;
}
* {
  font-family: "Newsreader";
  color: var(--text-color);
  margin: 0;
  padding: 0;
  border: none;
  scroll-margin-top: 240px;
}
body {
  background-image: url(./images/background.jpeg);
  background-size:contain;
  width: 100vw;
}
header {
  display: flex;
  position: sticky;
  top: 0;
  height: 170px;
  padding: 20px;
  width: calc(100% - 40px);
  background-color: var(--primary-color);
  box-shadow: 0px 10px 10px 0px var(--text-color);

  align-items: center;
  justify-content: space-between;

  opacity: 97%;
}
#dropdown {
  position: sticky;
  display: grid;
  grid-template-rows:auto;
  width: 150px;
  justify-content: center;
  align-items: center;
}
#dropdown-button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  background-color: var(--primary-color);
}
#dropdown-menu {
  display: none;
  position: absolute;

  background-color: var(--primary-color);
  top: 100%;
  left: auto;
}
#title {
  font-size: 70px;
  font-weight: 800;
  text-align: center;
}
#subtitle {
  font-size: 31px;
  font-weight: 300;
  text-align: center;
  line-height: 0px;
}
.bar {
  width: 35px;
  height: 5px;
  background-color: var(--text-color);
  margin: 6px 0;
  transition: 0.4s;
}
header a {
  text-decoration: none;
  padding: 5px;
  border: 2px solid black;
  background-color: var(--primary-color);
  font-size: 30px;
}
ul {
  padding-left:30px;
}
h1 {
  padding-bottom: 10px;
  font-size: 30px;
  color:var(--secondary-text-color);
}
section {
  width:85%;
  max-width:1200px;
  margin-inline: auto;
  margin-block: 30px;
  padding: 30px;
  box-shadow: 0px 10px 10px 0px var(--text-color);
  border-radius: 2ch;
  background-color: var(--primary-color);
  font-size:20px;
}
input, textarea {
  width:100%;
  font-size:20px;
  padding-left:10px;
  border:1px solid var(--text-color);
}
input {
  height:30px;
}
.radio-button {
  width:20px;
  height:20px;
}
textarea {
  max-width:100%;
  min-width:100%;
}

#dropdown-menu.open {
  display: grid;
}

.bar.open:nth-of-type(1) {
  transform: translate(0, 11px) rotate(45deg);
}
.bar.open:nth-of-type(2) {
  opacity: 0;
}
.bar.open:nth-of-type(3) {
  transform: translate(0, -11px) rotate(-45deg);
}

@media (max-width: 480px) {
  #title {
    display:none;
  }
  #subtitle {
    display:none;
  }
  header {
    height:100px;
  }
  section {
    width:300px;
  }
  img {
    transform:scale(80%);
  }
  #dropdown {
    width:100px;
  }
}