@charset "utf-8";
:root {
    font-size: 16px;
}
* {
    box-sizing: border-box;
    margin: 0;
}
html {
    min-height: 100%;
}
body {
    color: #000;
    font: 1em/1.3em 'Calibri', Arial, sans-serif;
}
#wrapper {
    position: relative;
    max-width: 820px;
    margin: 1rem auto;
    border: solid 1px #000;
    background: url('../images/bg.jpg') no-repeat bottom left;
    overflow: hidden;
    padding: 0;
}
p {
    padding-bottom: 1rem;
}
h1 {
    margin: 0 0 2rem;
    font-size: 2em;
    line-height: 1.1;
    color: #0588C5;
}
h2 {
    font-size: 1.8em;
    line-height: 1.3;
}
:is(a:link, a:visited, a:hover, a:active) {
    color: #000;
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
.logo {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem 0;
    flex-direction: row-reverse;
}
main {
    padding: 1rem;
}
.flex{
  display: flex;
  justify-content: space-between;
}
.width{
  width: 45%;
}
.bg{
  background: #EDF1F2;
  padding: 0.5rem 1rem 0;
  position: relative;
  margin-right: -1rem;
  width: 53%;
}
.bg figure{
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}
.flex-s{
  display: flex;
  justify-content: start;
  gap: 0 1rem;
}
.flex-s p{
  padding: 0.5rem 0 0;
}
@media only screen and (max-width:819px) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }
    p :is(a, span) {
        display: inline-block;
    }
    .flex{
      flex-direction: column;
    }
    .flex :is(.bg, .width){
      width: 100%;
    }
    .flex-s{
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
    }
    h1{
      text-align: center;
      font-size: 1.7em;
      margin-bottom: 1rem;
    }
}
@media only screen and (max-width:630px){
  .bg figure{
    position: static;
    display: flex;
    justify-content: center;
  }
  .bg br{
      display: none;
    }
}