.parent {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#content {
  font-size: 1.2em;
}

@media only screen and (max-width: 1200px) {
  #image {
    display: none;
  }
}

/* Mobile */

@media only screen and (max-width: 767px) {
  .ui.container {
    width: auto !important;
    margin-left: 1em !important;
    margin-right: 1em !important;
  }

  .ui.grid.container {
    width: auto !important;
  }

  .ui.relaxed.grid.container {
    width: auto !important;
  }

  .ui.very.relaxed.grid.container {
    width: auto !important;
  }
}

/* Tablet */

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .ui.container {
    width: 723px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ui.grid.container {
    width: calc(723px + 2rem) !important;
  }

  .ui.relaxed.grid.container {
    width: calc(723px + 3rem) !important;
  }

  .ui.very.relaxed.grid.container {
    width: calc(723px + 5rem) !important;
  }
}

/* Small Monitor */

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .ui.container {
    width: 933px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ui.grid.container {
    width: calc(933px + 2rem) !important;
  }

  .ui.relaxed.grid.container {
    width: calc(933px + 3rem) !important;
  }

  .ui.very.relaxed.grid.container {
    width: calc(933px + 5rem) !important;
  }
}

/* Large Monitor */

@media only screen and (min-width: 1200px) {
  .ui.container {
    width: 1127px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ui.grid.container {
    width: calc(1127px + 2rem) !important;
  }

  .ui.relaxed.grid.container {
    width: calc(1127px + 3rem) !important;
  }

  .ui.very.relaxed.grid.container {
    width: calc(1127px + 5rem) !important;
  }
}

@media only screen and (min-width: 991px) {
  .parent {
    height: 100%;
  }

  .container.segment {
    height: 100%;
    max-height: 700px;
  }

  #navigation {
    height: 100%;
    width: 60px;
    border-radius: 3px;
  }
  #navigation .menu {
    writing-mode: tb;
    writing-mode: tb-rl;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: right;
    flex-direction: row-reverse;
    border: 0 !important;
    margin: 2em 0;
  }

  .ui.attached.menu {
    width: 100% !important;
    max-width: 100% !important;
  }

  #image {
    height: 100%;
    width: 435px;
    background-color: #ccc;
  }

  #content {
    height: 100%;
    overflow-y: auto;
    flex: 1;
    padding: 2rem;
    border-radius: 3px;
  }
}

@media only screen and (max-width: 991px) {
  .container {
    padding: 70px 0px 0px 0px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-direction: column;
    border: 0;
  }
  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    background: white;
    width: 100%;
  }
  .navigation .item:first-child {
    margin-top: 0px;
  }
  #content {
    padding: 1em;
  }
}

@media only screen and (max-width: 767px) {
  .ui.stackable.menu {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .ui.stackable.menu .item {
    width: 100% !important;
  }

  .ui.stackable.menu .item:before {
    position: absolute;
    content: '';
    top: auto;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 1px;
    background: rgba(34, 36, 38, 0.1);
  }

  .ui.stackable.menu .left.menu,
  .ui.stackable.menu .left.item {
    margin-right: 0 !important;
  }

  .ui.stackable.menu .right.menu,
  .ui.stackable.menu .right.item {
    margin-left: 0 !important;
  }

  .ui.stackable.menu .right.menu,
  .ui.stackable.menu .left.menu {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }
}

.ui.borderless.menu .item:before,
.ui.borderless.menu .item .menu .item:before,
.ui.menu .borderless.item:before {
  background: none !important;
}
