.root {
  margin: 0 calc(var(--page-margin) * -0.5);

  @media (width > 900px) {
    margin: 0;
  }
}

.container {
  margin: 0 5px;

  @media (width > 900px) {
    margin: 0 rfs(40px);
  }
}

.window {
  box-shadow: var(--box-shadow);
  background: #e2e3e5;
  border-radius: 3px 3px 0 0;
}

.windowBar {
  position: relative;
  height: 2vw;
  max-height: 30px;
  padding: 0.2vw 0.5vw;
  display: flex;
  align-items: center;

  &:before,
  &:after,
  div {
    content: '';
    width: 0.7vw;
    height: 0.7vw;
    max-width: 12px;
    max-height: 12px;
    border-radius: 50%;
    margin-right: 0.3vw;
  }

  &:before {
    background: #f6615a;
  }

  div {
    background: #f9bf2f;
  }

  &:after {
    background: #3bce41;
  }
}

.progress {
  height: 4px;
  width: 0;
}

.browserBar {
  height: 1.8vw;
  background: #f0f1f2;
  border-bottom: 1px solid var(--border-color);
  padding: 0.2vw;
  display: flex;
  align-items: center;

  &:before,
  &:after {
    content: '';
    background: #dedede;
    width: 1vw;
    height: 1vw;
    border-radius: 3px;
    margin: 0 0.3vw;
  }
}

.addressBar {
  background: white;
  border-radius: 3px;
  flex: 1;
  height: 1vw;
}

.page {
  min-height: 450px;
  height: 35vh;
  position: relative;
  overflow: hidden;
  display: block;
  background: white;
  padding: rfs(30px);
}

.pageTitle {
  font-weight: bold;
  text-align: center;
  font-size: 23px;
  margin-bottom: 5px;
}

.pageSubtitle {
  margin-bottom: 20px;
  font-size: rfs(15px);
  text-align: center;
  color: var(--light-body-color);
}

.post {
  position: relative;
  overflow: hidden;
  transition: opacity 300ms 300ms ease-in-out;

  &:before {
    content: '';
    display: block;
    padding-top: 53%;
    transition: padding-top 300ms ease-in-out;
  }
}

.postEnter {
  opacity: 0;

  img {
    opacity: 0;
  }

  &:before {
    padding-top: 0;
  }
}

.postEnterActive {
  opacity: 1;

  img {
    opacity: 1;
  }

  &:before {
    padding-top: 53%;
  }
}

.postLeave {
  opacity: 1;
  &:before {
    padding-top: 50%;
  }
}

.postLeaveActive {
  opacity: 0;
  &:before {
    padding-top: 0%;
  }
}

.postInner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.ping {
  position: relative;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  display: inline-block;
  margin-right: 0.1em;

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: var(--accent-color);
    opacity: 0.3;
    border-radius: 50%;
    height: 10px;
    width: 10px;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  }
}

@keyframes ping {
  75%,
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.copy {
  height: 0.4vw;
  min-height: 5px;
  background: #ddd;
  margin-bottom: 0.2vw;
}

.image {
  transition: all 0.01s linear;
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  background-size: cover;
  margin-bottom: 10px;
  border-radius: 5px;

  &:before {
    content: '';
    display: block;
    padding-top: 40%;
  }

  img {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    object-fit: cover;
    width: 100%;
    transition: opacity 200ms 600ms ease-in-out;
  }
}
