@font-face {
  font-family: 'BlueVinyl';
  src: url('/assets/BlueVinyl.woff2') format('woff2'), 
       url('/assets/BlueVinyl.woff') format('woff'), 
       url('/assets/BlueVinyl.ttf')  format('truetype')
}

* { box-sizing: border-box; }

body{ padding-top: 56px;}

#header{
  display: flex;
  align-items: bottom;
  justify-content: center;
  padding: env(safe-area-inset-top) 0 56px;
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
  font-size: 30px;
  font-family: "BlueVinyl", serif;
  height: 56px;
  position: fixed;
  top:0;
  right: 0;
  left: 0;
  margin: 0;
  z-index: 100;
}

.postsWrapper{
  margin: 0 auto;
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);  
  max-width: 540px;
}
.post{
  max-width: 540px;
}

.post-image, .post-timestamp, .post-title, .post-description{
  width: 100%;
}

.post-title{
  display: flex;
  align-items: center;
  padding: 12px 16px;
}
.post-description{
  padding: 20px 16px;
}

.post-author-thumbnail{
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-right: 12px;
}
.post-author{
  font-weight: 600;
}

.post-timestamp{
  padding: 0 16px 20px;
  margin-top: -8px;
  opacity: 0.5;
  border-bottom: 1px solid #ddd;  
}

.storiesWrapper{
  padding: 12px;
  margin-top: 44px;
}

#zuck-modal .head{
  margin-top:44px;
}
#zuck-modal .slides-pointers{
  margin-top:44px;
}

/* ################################# */

.stories.snapgram .story > .item-link {
  text-decoration: none;
  color: #333;
}
.stories.snapgram .story > .item-link > .item-preview {
  border-radius: 50%;
  padding: 2px;
  background: radial-gradient(ellipse at 70% 70%, #ee583f 8%, #d92d77 42%, #bd3381 58%);
}
.stories.snapgram .story > .item-link > .item-preview img {
  border-radius: 50%;
  border: 3px solid #fff;
}

.stories.snapgram .story.seen {
  opacity: 0.75;
}
.stories.snapgram .story.seen > a > .item-preview {
  background: #999;
}
.stories.snapgram .story.seen > a {
  color: #999 !important;
}


/* Dark mode styles trigger by OS preferences */
@media (prefers-color-scheme: dark) {
  body{
    color: #f6f6f6;
    background-color: 0B0B0F;
  }
  #header{
    background-color: #16161d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);  
  }
  .postsWrapper{
    border-top: 1px solid rgba(255, 255, 255, 0.1);  
  }

  .post-timestamp{
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);   
  }
  .stories.snapgram .story > .item-link {
    text-decoration: none;
    color: #ccc;
  }
  .stories.snapgram .story.seen > a {
    color: #999 !important;
  }
  .stories.snapgram .story > .item-link > .item-preview img {
    border-radius: 50%;
    border: 3px solid #000;
  }
  
}