body, * {
    margin: 0;
    padding: 0;
}

body {
    background-color: #D9F0FF;
    font-family: 'Roboto';
}

.top_bar_container {
    width: 100%;
    height: 35vw;
    top: 0;
    background-image: radial-gradient(ellipse at bottom, transparent 0%, transparent 29.5%, #3498DB 30%, #9BCDED 100%);
    background-size: 1000% 500%;
    background-position: center;
    overflow: hidden;
    display: grid;
    grid-template-columns: 30% 1fr;
    z-index: 8000;
}

.pp {
    width: 22vw;
    margin-left: 5vw;
    margin-top: 5vw;
    border-radius: 50%;
}

.top_bar_right {
    margin: 10vw 5vw 0 0;
}

.netzme_logo {
    width: 28vw;
    float: right;
}

.pp_name {
    color: white;
    margin-top: 1vw;
    float: right;
    clear: both;
}

body > .story_container {
    margin-bottom: 4vw;
    margin-top: 4vw;
}

body > div:last-of-type {
    margin-bottom: 80px;
}

body > .story_container ~ .story_container {
    margin-top: 0;
}

.story_img {
    display: block;
    margin: 0 auto;
    width: 344px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.story_detail_container, .story_detail_container_no_desc {
    width: 344px;
    margin: 0 auto;
    background: linear-gradient(#E7F8FF, white, white, white, white, white, white);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    color: #212121;
    overflow-wrap: break-word;
}

.story_detail_container_no_desc {
    background: white;
}

.story_description {
    padding: 8px 16px;
    text-align: center;
    color: #3498DB;
    display: block;
}

.story_description_null {
    display: none;
}

.story_timeline {
    padding: 8px 16px;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
}

.story_owner_pp {
    width: 40px;
    border-radius: 50%;
}

.story_owner_name {
    color: #3498DB;
    margin-left: 12px;
}

.story_time {
    text-align: right;
    color: #8F8F8F;
    font-size: 80%;
}

.story_comments_count {
    padding: 8px 12px;
    text-align: center;
    color: #3498DB;
    font-size: 80%;
    font-weight: bold;
    cursor: hand;
}

.story_comments {
    padding: 0px 16px;
    font-size: 80%;
    display: block;
}

.story_comments_null {
    display: none;
}

.comment_container {
    margin-top: 8px;
    display: block;
}

.comment_container_null {
    display: none;
}

.commentator_name {
    font-weight: bold;
}

.trulike {
    text-align: right;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 8px 16px;
}

.like_count {
    margin-right: 4px;
    color: #FF7575;
    font-size: 80%;
}

.like_icon {
    padding: 8px 0 8px 8px;
    cursor: hand;
}

.follow_button {
    width: 350px;
    line-height: 60px;
    display: table;
    background-color: #00D3FF;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    cursor: hand;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    box-shadow: 0 -2px 10px 0 grey;
}

.text_bittersweet {
    color: #FF7575;
}

/*---- Heart icon -----*/

.heart {
  background-color: #FF7575;
  display: inline-block;
  height: 8px;
  margin: 0 6px;
  position: relative;
  top: 0;
  transform: rotate(-45deg);
  width: 8px;
  border-bottom-left-radius: 2px;
}

.heart:before,
.heart:after {
  content: "";
  background-color: #FF7575;
  border-radius: 50%;
  height: 8px;
  position: absolute;
  width: 8px;
}

.heart:before {
  top: -5px;
  left: 0;
}

.heart:after {
  left: 5px;
  top: 0;
}

@media screen and (min-width: 768px) {
    .top_bar_container {
        height: 12vw;
        background-size: 600% 400%;
        grid-template-columns: 16% 1fr;
    }

    .pp {
        width: 8vw;
        margin-top: 1.5vw;
    }

    .pp_name {
        float: none;
        clear: none;
    }

    .top_bar_right {
        margin: 3vw 5vw 0 0;
    }

    .netzme_logo {
        width: 14vw;
    }

    body > .story_container {
        margin-top: 2vw;
        margin-bottom: 2vw;
    }

    .popup_content {
        width: 350px;
    }
}

@media screen and (min-width: 1024px) {
    .pp_name {
        font-size: 1.5em;
    }
}

@media screen and (max-device-width: 640px) {
    .follow_button {
        width: 100%;
    }
}

@media screen and (max-width: 399px) {
    .story_img {
        width: 95vw;
    }

    .story_detail_container, .story_detail_container_no_desc {
        width: 95vw;
    }
}
