:root {
  --progress: 0%;
  --progress-text: "0%";
  --background-color: #111111;
  --color: #FFFFFF;
  --secondary-color: #000000;
}

*,
    *::before,
    *::after {
      box-sizing: border-box;
    }

@font-face {
  font-family: iconsfont;
  src: url(https://fonts.googleapis.com/icon?family=Material+Icons);
}

body {
  background-color: var(--background-color);
  color: var(--color);
  font-weight: bold;
}

html, body {
  overscroll-behavior-y: none;
  overflow: hidden;
  justify-content: center;
  text-align: center;
  font-family: sans-serif;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 30px;
  pointer-events: none;
}

h2 {
  font-size: 25px;
  pointer-events: none;
}

p {
  font-size: 20px;
}

a {
  background-color: var(--background-color);
  color: var(--color);
  font-size: 30px;
  font-weight: bold;
  padding: 10px;
  border-radius: 20px;
  text-decoration: none;
  margin: 10px;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

button {
  background-color: var(--background-color);
  color: var(--color);
  font-size: 30px;
  font-weight: bold;
  padding: 10px;
  border-radius: 20px;
  text-decoration: none;
  margin: 10px;
  cursor: pointer;
  background-color: transparent;
  border: none;
}

input {
  width: 80%;
  height: 40px;

  padding-left: 10px;
  margin-bottom: 20px;

  background: var(--secondary-color);
  font-family: sans-serif;
  font-weight: 500;
  color: #ffffff;
  font-size: 12px;
  border: 0;

  border-bottom: 2px solid var(--color);
  border-radius: 10px;
}


#chat { 
  resize: none;
  background-color: var(--secondary-color);
  color: var(--color);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: bold;
  font-family: sans-serif;
  padding: 5px;
  border: none;
  border-radius: 15px 0px 0px 15px;
  font-weight: bold;
  text-decoration: none;
  margin: 0;
  width: 80%;
  min-height: 100%; 
  max-height: 100%;
}

.homebuttons {
  padding: 0;
  margin: 0;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.chatElement {
  list-style: inside;
  font-size: 30px;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  padding: 5px 20px;
  align-items: center;
  width:100%;
}

.chatList {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  height: 80%;
  overflow-y: scroll;
  margin: 0 auto;
}

#list {
  margin: 0px;
  width: 100%;
}

.navbar {
  height: 10%;
  width: 35%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  box-shadow: 0px -2px 15px var(--secondary-color);
  position: absolute;
  bottom: 0;
}

.listElement {
  list-style: inside;
  font-size: 30px;
  border-bottom: 2px solid #222222;
  text-decoration: none;
  cursor: pointer;
  padding: 10px; 
  height: 120px;
}

.addlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.message {
  background-color: var(--background-color);
  color: var(--color);
  border: 1px solid #444444;
  border-radius: 20px 20px 20px 0px;
  padding: 2px 10px;
  text-align: left;
  align-items: center;
  display: inline-block;
  box-shadow: 0px 0px 5px var(--secondary-color);
}

.darker {
  background-color: var(--secondary-color);
  color: var(--color);
  border: 1px solid #222222;
  border-radius: 20px 20px 0px 20px;
  text-align: right;
}

.messageright {
  display: flex;
  flex-direction: row;
  justify-content: right;
  padding: 5px 5px;
}

.messageleft {
  display: flex;
  flex-direction: row;
  justify-content: left;
  padding: 5px 5px;
}

.imagediv {
  display: flex;
}

.message::after {
  content: "";
  clear: both;
  display: table;
}

.messageleft img, video {
  border-radius: 10px;
  border-radius: 10px;
  margin-top: 8px;
  height: 50px;
  width: 50px; 
  object-fit: cover;
  align-self: flex-end;
}

.messageright img, video {
  border-radius: 10px;
  margin-top: 8px;
  height: 50px;
  width: 50px; 
  object-fit: cover;
  align-self: flex-end;
}

.message p {
  font-size: 15px;
  margin: 2px;
  padding: 2px;
}

.time-right {
  float: right;
  color: #aaaaaa;
  font-size: 12px;
}

.time-left {
  float: left;
  color: #999999;
  font-size: 12px;
}

.input {
  
  padding: 10px;
  margin: 0px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  bottom: 0;
  min-height: 10%;
}

.bottombar {
  padding: 0px;
  margin: 0px;
  display: flex;
  background-color: var(--secondary-color);
  color: var(--color);
  justify-content: center;
}

.topbar {
  padding: 0px;
  margin: 0px;
  height: 10%;
  display: flex;
  align-items: center;
  width: 100%;
  box-shadow: 0px 2px 15px var(--secondary-color);
}

.material-symbols-outlined {
  font-size: 35px;
  }

.material-icons {
    font-size: 35px;
  }

.tabbutton {
  color: #FFFFFF;
  font-size: 20px;
  font-weight: bold;
  padding: 20px;
  border-radius: 0px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 10px;
}

.profileicon {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 25px;
  margin-right: 20px;
  min-width: 150px;
  max-width: 150px;
  transition: .5s ease;
  backface-visibility: hidden;
}

.profilebanner {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 25px;
  min-width: 100%;
  max-width: 100%;
  margin: 0; 
  padding: 0;
  transition: .5s ease;
  backface-visibility: hidden;
  }

.profiledisplayname {
  font-size: 50px;
}

.profileusername {
  font-size: 30px;
  color: #888888;
}

.settings {
  height: 100vh;
  width: 70%;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
}

.categories {
  height: 100vh;
  width: 30%;
}

.categories button {
  background-color: var(--secondary-color);
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  margin: 0;
}

.settings button {
  font-size: 20px;
}

#chatdiv {
  min-height: 100vh;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111111;
  overflow-x: hidden;
  transition: 0.1s;
  padding-top: 60px;
  overflow: hidden;
  margin-top: 0px;
}

.tabbar {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.tab {
  width: 100vw;
}

#addfriend button {
  margin: 0;
  padding: 0;
}

.postsContent {
  min-height: 100vh;
  max-height: 100vh;
  width: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-direction: column;
  scroll-snap-type: y mandatory;
}

.postsContent::-webkit-scrollbar {
  display: none;
}

.post {
  display: flex;
  min-height: 100vh;
  max-height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  gap: 10px;
  padding: 10px;
  background-repeat: no-repeat;
  flex-direction: column;
  background-size: contain;
  background-position: center;
}

.postImage {
  height: 100vh;
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover; 
  flex-direction: column;
}

.backButton {
  display: none;
}

.hiddennav {
  display: none;
}

.postOpts {
  width: 15%; 
  height: 100%;  
  align-self: flex-end;
  display: flex; 
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 15%;
}

#appearancetab {
  border-radius: 20px 20px 0 0;
  background-color: var(--background-color);
}

#notificationstab {
  border-radius: 0 0 20px 20px;
}

#status {
    font-size: 15px;
  }

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  .postOpts {
    height: 15%; 
    width: 100%; 
    align-self: flex-end; 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 0;
  }
  
  .profileicon {
  width: 100px;
  height: 100px;
  min-width: 100px;
  max-width: 100px;
  margin-right: 0px;
}

.profilebanner {
  width: 100%;
  height: 100px;
  }
  
  .settings {
    width: 60%;
}
  .settings button, .categories button {
  font-size: 20px;
}

.categories {
  width: 40%;
}
  
  .backButton {
    display: flex;
  }
  
  .hiddennav {
    display: flex;
  }
  
  .navbar {
  height: 10%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
  
  .navbar2 {
  height: 10%;
  width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
  #chat {
    font-size: 15px;
  }  
  
  .input {
    padding-bottom: 25px;
  }
  
  button, a {
  font-weight: bold;
  padding: 10px;
  border-radius: 20px;
  text-decoration: none;
  margin: 10px;
  cursor: pointer;
}
  .material-icons {
    font-size: 35px;
  }
  
  .material-symbols-outlined {
    font-size: 35px;
  }
  
  #friendname {
    width: 65%;
  }
  
  .profiledisplayname {
    font-size: 35px;
  }
  
  .profileusername {
    font-size: 20px;
    color: #888888;
  }
  
  .postsContent {
  min-height: 90vh;
  max-height: 90vh;
  width: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-direction: column;
  scroll-snap-type: y mandatory;
}

.postsContent::-webkit-scrollbar {
  display: none;
}

.post {
  display: flex;
  min-height: 90vh;
  max-height: 90vh;
  width: 100%;
  scroll-snap-align: start;
  overflow: hidden;
  gap: 10px;
  padding: 10px;
  background-repeat: no-repeat;
  flex-direction: column;
  background-size: contain;
  background-position: center;
}

.postImage {
  height: 90vh;
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover; 
  flex-direction: column;
}
  
  h1 {
  font-size: 30px;
  pointer-events: none;
}

h2 {
  font-size: 25px;
  pointer-events: none;
}

p {
  font-size: 20px; 
}
}

.progress-bar {
  -webkit-transition: opacity 500ms;
  transition: opacity 500ms;
        display: flex;
        justify-content: center;
        align-items: center;

        width: 30px;
        height: 30px;
        border-radius: 50%;
        background:
          radial-gradient(closest-side, #222222 79%, transparent 80% 100%),
          conic-gradient(white var(--progress), grey 0);
      }

      .progress-bar::before {
        content: var(--progress-text);
      }

.postsContainer {
  display: flex;
  justify-content: center;
}

.background {
      display: none;
      position: absolute;
      margin: 0px;
      padding: 0px;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      background-color: rgba(0,0,0,0.7)
    }

@keyframes spinner {
        0% {
          transform: translate3d(-50%, -50%, 0) rotate(0deg);
        }
        100% {
          transform: translate3d(-50%, -50%, 0) rotate(360deg);
        }
      }

.spin::before {
  animation: 1s linear infinite spinner;
  animation-play-state: inherit;
  border: solid 5px #cfd0d1;
  border-bottom-color: #1c87c9;
  border-radius: 50%;
  content: "";
  height: 40px;
  position: absolute;
  top: 10%;
  left: 10%;
  transform: translate3d(-50%, -50%, 0);
  width: 40px;
  will-change: transform;
  display: none;
}

.title {
  position: relative;
  font-size: 18px;
}

.leftPane {
  width: 35%;
}

#iFrame {
  float: right;
  height: 100%;
  width: 65%;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  border: none;
  border-left: 2px solid #444444;
}