@media (min-width: 426px) {
  .container {
    display: grid;
    grid-template-areas:
      "itm1 itm2"
      "itm3 itm4"
      "itm5 itm5"
      "itm6 itm6"
      "itm7 itm7";
  }
}

@media (max-width: 426px) {
  .container {
    display: flex;
    flex-direction: column;
  }
}

@font-face {
  font-family: "ProggySquareTT";
  src: url("https://db.onlinewebfonts.com/t/5423e3f6b569eee8bb7179f1319240ea.eot");
  src: url("https://db.onlinewebfonts.com/t/5423e3f6b569eee8bb7179f1319240ea.eot?#iefix")
      format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/5423e3f6b569eee8bb7179f1319240ea.woff2")
      format("woff2"),
    url("https://db.onlinewebfonts.com/t/5423e3f6b569eee8bb7179f1319240ea.woff")
      format("woff"),
    url("https://db.onlinewebfonts.com/t/5423e3f6b569eee8bb7179f1319240ea.ttf")
      format("truetype"),
    url("https://db.onlinewebfonts.com/t/5423e3f6b569eee8bb7179f1319240ea.svg#ProggySquareTT")
      format("svg");
}

* {
  font-family: "ProggySquareTT";
  font-weight: 400;
  font-style: normal;
  color: #eeeeee;
}

.excercise-8 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

form {
  border: 1px solid #00adb5;
  width: 75%;
}

.item-1 {
  grid-area: itm1;
}

.item-2 {
  grid-area: itm2;
}

.item-3 {
  grid-area: itm3;
}

.item-4 {
  grid-area: itm4;
}

.item-5 {
  grid-area: itm5;
}

.item-6 {
  grid-area: itm6;
  padding: 3px;
}

.item-6 > textarea {
  width: 99%;
  height: 20em;
}

.item-7 {
  grid-area: itm7;
  width: 100%;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-7 > button {
  color: black;
}

.item-1,
.item-2,
.item-3,
.item-4 {
  padding: 20px;
  border: 1px solid #00adb5;
  display: flex;
  justify-content: center;
}

body {
  background-color: #222831;
}

img {
  width: 200px;
  height: 160px;
  opacity: 0.5;
  object-fit: contain;
  max-width: 100%;
  border-radius: 8px;
}

img:hover {
  opacity: 1;
}

.excercise-7 > div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: auto;
  padding: 10px;
  border-radius: 25px;
}

h2 {
  color: #00adb5;
  text-align: center;
  text-decoration-line: underline;
}

input,
textarea {
  color: #000000;
}

.name {
  background-image: url("media/image_7.jpg");
  text-align: center;
  line-height: 90px;
  background-size: cover;
  display: flex;
  justify-content: center;
  width: 90%;
  border-radius: 25px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
}

.works {
  background-color: #393e46;
  border: 2px solid #00adb5;
  width: 250px;
}

.excercise-7 .gallery {
  display: grid;
  background-color: #393e46;
  border: 2px solid #00adb5;
  margin-bottom: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  justify-items: center;
}

.ul-class {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #393e46;
}

.li-class {
  float: left;
}

.li-class a,
.drop-btn {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.li-class a:hover,
.dropdown:hover .drop-btn {
  background-color: #00adb5;
}

li.dropdown {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #eeeeee;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 0px;
}

.dropdown-content a {
  color: #00adb5;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #393e46;
  border-radius: 25px;
}

.dropdown:hover .dropdown-content {
  display: block;
}
