body {
  font-family: sans-serif; }

.wrapper {
  max-width: 1200px;
  margin: auto;
  background-color: lightgrey; }

.header {
  border: 1px solid lightgrey;
  background-color: #fff;
  margin-bottom: 30px;
  padding: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
      -ms-flex-align: center;
          align-items: center; }

#search {
  margin-bottom: 10px; }
  #search:focus {
    outline: 1px solid #47ADE8; }

.tags {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-align-content: center;
      -ms-flex-line-pack: center;
          align-content: center;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  width: 100%; }
  .tags-item {
    background-color: lightgray;
    border-radius: 5px;
    padding: 3px 5px;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    font-size: 12px;
    margin: 0 10px 10px 10px; }
    .tags-item:hover {
      cursor: pointer; }

input[type="checkbox"] {
  display: none; }

.radio:checked + .tags-item {
  background-color: #47ADE8; }

.checkbox:checked + .tags-item {
  background-color: #F15536; }

.sort {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex; }
  .sort-name {
    margin: 0; }

#post-container {
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px; }

.post {
  min-width: 200px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid white;
  -webkit-box-shadow: 2px 2px 2px #e6e5e5;
          box-shadow: 2px 2px 2px #e6e5e5;
  position: relative; }
  .post-name {
    font-size: 20px;
    text-align: center;
    height: 60px;
    word-spacing: none;
    overflow: hidden; }
  .post-date {
    text-align: right;
    margin-bottom: 10px; }
  .post-body {
    text-align: justify; }

.btn-delete {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #F15536;
  font-size: 30px;
  cursor: pointer; }

#btn-up {
  width: 50px;
  height: 50px;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
  color: #47ADE8;
  background-color: white;
  position: fixed;
  right: 25px;
  bottom: 10px;
  border: 1px solid #47ADE8;
  border-radius: 50%;
  display: none;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s; }
  #btn-up:hover {
    font-size: 36px; }
  #btn-up:visited {
    color: #47ADE8; }

@media screen and (max-width: 780px) {
  #post-container {
    grid-template-columns: repeat(1, 1fr); } }
