:root{
  --text-color: #0096cc;
  --text-secondery: #0096cc6c;
  --bg: #fff;
  --shadow-primary: rgba(0,0,0,0.3);
  --shadow-secondery: rgba(0,0,0,0.1);
  --l: #666;
  --d: #000;
  --y: #f1f1f1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.dark{
  --bg: #212121;
  --l: #f1f1f1;
  --d: var(--l);
  --y: #121212;
}
body {
  font-family: 'Arial', sans-serif;
  background-color: var(--bg);
  display: flex;
  user-select: none;
  justify-content: center;
  align-items: center;
  position: relative;
  color: var(--text-color);
}
#header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  font-weight: bolder;
  color: var(--text-color);
  border-bottom: 1px solid var(--shadow-secondery);
  height: 50px;
  background-color: var(--bg);
  align-items: center;
  z-index: 999;
}
#header img{
  width: 35px;
  object-fit: cover;
  height: 35px;
  border-radius: 50%;
}
#header .logo{
  width: 150px;
  height: 45px;
  border-radius: 0;
}
#footer{
  width: 100%;
  box-shadow: 0 0 0 2px var(--shadow-secondery);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 1000;
  overflow: hidden;
  padding: 10px;
  background-color: var(--bg);
  justify-content: space-around;
}
.icon{
  position: absolute;
  bottom: 0;
  right: 2px;
  font-size: 25px;
  text-decoration: none;
  color: var(--text-color);
}
.bx-star{
  font-size: 25px;
  color: var(--bg);
}
.post-content svg{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  border: 1px solid var(--text-color);
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.2);
  padding: 5px;
}
.btns{
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 15px;
  background-color: transparent;
  font-size: 25px;
}
#footer button i{
  font-size: 30px;
}
.login-btn, .interests{ 
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  background: #0096cc;
  color: #fff;
  border-radius: 5px;
}
.interests{
  border-radius: 50%;
  aspect-ratio: 1;
}
.btns{
  aspect-ratio: 1;
}
#main{
  position: relative;
  width: 100%;
  margin-top: 50px;
  padding: 5px;
}
#posts {
  padding: 0;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  width: 100%;
}

.post {
  border-bottom: 1px solid var(--l);
  padding-bottom: 10px;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.user-info{
  display: flex;
  align-items: center;
  gap: 5px;
}

.time{
  margin-right: 5px;
}

.user-picture {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
}

.post-header img{
  aspect-ratio: 1;
}

.post-header h3 {
  font-size: 16px;
  color: var(--d);
}

.post-content h2 {
  font-size: 20px;
  color: var(--l);
  margin-bottom: 10px;
}

.post-content p, .og p {
  font-size: 14px;
  color: var(--l);
  margin-bottom: 15px;
}

/* Fix the container positioning */
.post-content a {
  position: relative;
  display: block;
}

.preview {
  position: absolute;
}
.original {
  opacity: 0;
}

.thumbnail, .og img {
  width: 100%;
  border-radius: 2.5px;
  height: 400px;
  object-fit: cover;
}

.options-container{
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: end;
  z-index: 1000;
  background-color: var(--shadow-primary);
}

#c{
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: none;
  color: transparent;
  z-index: 10;
  background-color: transparent;
}

.option {
  padding: 10px;
  background-color: var(--bg);
  z-index: 11;
  width: 100%;
  border-radius: 5px 5px 0 0;
  text-align: center;
}
.option div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  padding: 0 10px;
  justify-content: space-between;
}
.bx-play{
  border: 2px solid var(--text-color);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 20px !important;
}
.option button{
  background: linear-gradient(145deg, var(--text-color), #d600bf);
  color: #fff;
  border: none;
  border-radius: 90px;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  width: 70%;
}

.option .close{
  margin-top: 5px;
  width: 100%;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  background: transparent !important;
}
.option button:active{
  transform: scale(0.95);
}
.option button i{
  font-size: 20px;
}
@media (max-width: 768px) {
  .btns {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  #posts {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .thumbnail, .og img {
    height: 300px;
  }
}
@media (max-width: 640px) {
  #posts {
    margin-bottom: 60px;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  #header img {
    width: 35px;
    height: 35px;
  }

  .btns {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  #posts {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .thumbnail, .og img{
    height: 250px;
  }

  .post-content h2 {
    font-size: 18px;
  }

  .post-content p, .og p {
    font-size: 12px;
  }
}
.unread{
  position: absolute;
  top: 0;
  right: 0px;
  background-color: red;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 7px;
  font-size: 12px;
  display: flex;
  font-weight: bold;
  justify-content: center;
  align-items: center;
}
#notification-btn, .chats{
  position: relative;
}

.load {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  overflow: hidden;
  border-radius: 90px;
  z-index: 1000;
  background-color: var(--shadow-primary);
}
.loader{
  height: 5px;
  width: 0;
  background-color: var(--text-color);
  animation: move 1s linear infinite;
}
#verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
}
@keyframes move {
  to{
    width: 100%;
    aspect-ratio: 1;
  }
}

.btns, #header img, .thumbnail {
  transition: all 0.2s ease;
}

.btns:active {
  transform: scale(0.95);
}

.views{
  font-size: 16px;
}

.post-content {
  width: 100%;
  padding: 0;
  position: relative;
}
.post-content h4{
  padding: 10px;
}
.post-content a{
  text-decoration: none;
  color: var(--text-color);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.post-content a{
  position: relative;
}
.text{
  color: white;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #6a11cb 0%, #333 100%);
  position: relative;
  text-align: center;
  padding: 5px;
  border-radius: 2.5px;
}
.text h4, .text h2{
  color: white;
}
.text .views{
  background-color: #333;
  border-radius: 2.5px;
  padding: 2px 4px;
}
.og{
  border: 1px solid var(--l);
  overflow: hidden;
  border-radius: 8px;
  padding: 2px;
}
.og-footer h2, .og-footer p{
  color: var(--d);
}
.og-footer{
  border-top: 1px solid var(--l);
  background-color: var(--y);
  cursor: pointer;
}

.post-actions{
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.post-actions button{
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

.post-actions button i{
  font-size: 20px;
}

@media (max-width: 500px) {
  #posts {
    width: 100%;
    margin-bottom: 60px;
    grid-template-columns: 1fr;
  }

  .post {
    margin-bottom: 15px;
    width: 100%;
  }

  .thumbnail, .og img {
    height: 300px;
    border-radius: 3px;
  }

  .btns {
    width: 40px;
    height: 40px;
    font-size: 20px;
    background-color: transparent;
  }

  .unread {
    width: 8px;
    height: 8px;
    font-size: 6px;
    top: 10px;
    right: 7px;
    padding: 5px;
  }
  #header{
    height: 30px;
    padding: 5px;
  }
  #header button{
    padding: 3px 6px;
    font-size: 10px;
  }
  #header img{
    width: 10px;
    height: 10px;
  }
  .post-header img, #header img{
    width: 18px;
    height: 18px;
  }
  
  #header .logo{
    width: 100px;
    height: 25px;
  }
  
  .post-content .views, .video-time{
    font-size: 12px;
  }
  
  .video-time{
    bottom: 8px !important;
  }

  .btns {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .thumbnail, .og img {
    height: 180px;
  }

  .post-header h3, .post-header .time{
    font-size: 10px !important;
  }

  .post-header .user-info{
    gap: 0;
  }

  .post-content h2, .video, .post-content svg{
    font-size: 16px;
  }
  .post-actions button{
    font-size: 12px;
  }
  .post-actions button i{
    font-size: 16px;
  }
  .option button{
    padding: 10px;
  }
  .option button i{
    font-size: 16px;
  }
  .bx-star{
    font-size: 10px;
  }
  .interests{
    padding: 0;
  }
  #verified{
    font-size: 12px !important;
    width: 10px;
    height: 10px;
  }
  
  #footer button i{
    font-size: 15px !important;
  }
}

@media (max-width: 600px) {
  .option{
    max-width: 90% !important;
  }
  .option div{
    padding: 5px;
  }
  .option button{
    font-weight: normal;
    gap: 0;
  }
}