:root {
  font-size: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  line-height: 20px;
  font-family: 'Courier New', monospace;
  color: #000;
  font-weight: 400;
}

#wrapper {
  position: relative;
  max-width: 625px;
  margin: 16px auto;
  border: 2px solid #000;
  padding: 16px;
  overflow: hidden;
  background-color: #F2F2F2;
  hyphens: auto;
  text-align: justify;
}

h1 {
  margin: 16px 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
}

h2 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 400;
  text-decoration: underline;

}

h3 {
  margin: 0 0 6px 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: #35A241;
  text-align: left;
}

h4 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  padding-left: 25px;
  background: url('../images/icon.jpg') no-repeat 0 7px;
}

p:not(:last-of-type) {
  margin-bottom: 16px;
}

header {
  display: flex;
  gap: 9px;
}

article {
  margin: 0;
  padding: 0;
}

.flex {
  flex: 1 1 0;
}

footer {
  margin: 16px 0 0;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

ul {
  margin: 0 0 16px;
  list-style: none;
}

ul li {
  padding-left: 24px;
}

ul li:before {
  content: "\2022";
  color: #000;
  float: left;
  margin-top: 1px;
  font-size: 16px;
  line-height: 1em;
  text-indent: -24px;
}

:is(a:link, a:visited, a:hover, a:active) {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

span {
  white-space: nowrap;
}

@media all and (max-width:625px) {
  #wrapper {
    margin: 0;
    border: none;
    text-align: left;
  }

  :is(p, ul) {
    hyphens: auto;
    text-wrap: pretty;
  }

  br:not(footer br) {
    display: none;
  }
}

@media all and (max-width:478px) {
  #wrapper {
    font-size: 14px;
  }

  header {
    flex-direction: column;
    align-items: center;
  }

}