@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  color: #002147;
  font-family: "Nata Sans";
}


.background {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: white;
}

.header {
  position: fixed;
  width: 100vw;
  height: 55px;
  background: white;
  border-bottom: 1px solid lightgrey;
  display: flex;
  justify-content: space-between;
  padding: 10px 5px;
  align-items: center;
  z-index: 100;
}

.logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(to right, #3c99ff, #0061dc);
}

.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: white;
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0px 5px 5px rgba(0,0,0,0.1);
  height: 30px;
}

.header-left:active {
  transition: 0.1 ease-in-out;
  border: 1px solid lightgrey;
  transform: scale(1.05);
}

.header-title {
  color: #002147;
  font-weight: bold;
  margin-left: 5px;
}

.header-right button {
  height: 30px;
  width: 100px;
  color: #002147;
  font-weight: bold;
  background: white;
  border: 1px solid white;
  border-radius: 5px;
  box-shadow: 0 5px 5px rgba(0,0,0,0.1);
}

.header-right button:active {
  transition: 0.1 ease-in-out;
  border-color: lightgrey;
  transform: scale(1.1);
}

.main-wrapper {
  position: relative;
  top: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrapper {
  display: flex;
  flex-direction: column;
}

.posting {
  background: white;
  border-top: 15px solid #3c99ff;
  width: 90vw;
  padding: 15px 10px;
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 0px 15px rgba(0,0,0,0.15);
}



.post-list {
  margin-top: 25px;
  margin-bottom: 50px;
  border-top: 15px solid #3c99ff;
  background: white;
  width: 90vw;
  padding: 15px 10px;
  border-radius: 5px;
  box-shadow: 0 0px 15px rgba(0,0,0,0.15);
}


.post-main-title {
  margin-bottom: 25px;
}

.post-main-title p {
  font-size: 13px;
  opacity: 0.4;
}

#postForm input {
  width: 100%;
  height: 35px;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid lightgrey;
  margin-bottom: 15px;
  transition: 0.2s ease-out;
}

#postForm textarea {
  resize: none;
  overflow: hidden;
  width: 100%;
  padding: 10px;
  min-height: 75px;
  border-radius: 5px;
  border: 1px solid lightgrey;
  transition: 0.2s ease-out;
}

#postForm input:focus {
  outline: none;
  height: 45px;
  transition: 0.2s ease-out;
  border: 1px solid rgba(60,153,255,0.8);
  border-left: 5px solid rgba(60,153,255,0.8);
}

#postForm textarea:focus {
  outline: none;
  transition: 0.2s ease-out;
  border: 1px solid rgba(60,153,255,0.8);
  border-left: 5px solid rgba(60,153,255,0.8);
}

#postForm button {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid white;
  background: white;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.1s ease-in-out;
}

#postForm button:hover {
  background: linear-gradient(to right, #3c99ff, #0061dc);
  color: white;
  transform: scale(1.05);
}

.post {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-left: 2px solid rgba(60,153,255,0.5);
  background: white;
  z-index: 10;
  transition: 0.3s ease-in-out;
}

.post:hover {
  transform: scale(1.025);
  border: 2px solid rgba(60,153,255,0.7);
}

.post-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.post p {
  margin-top: 15px;
  padding-left: 5px;
  font-size: 13px;
  margin-bottom: 20px;
  white-space: pre-wrap;
  font-family: "Comfortaa";
  line-height: 1.5;
  color: rgba(0,33,71,0.7);
}

.post b {
  background: linear-gradient(to right, #3c99ff, #0061dc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post small {
  opacity: 0.4;
  font-size: 10px;
}

.centerhr {
  margin-top: 25px;
  opacity: 0.3;
  color: #002147;
}

.footer {
  position: relative;
  width: 100vw;
  height: 50px;
  background: white;
  border-top: 1px solid lightgrey;
  bottom: -50px;
  text-align: center;
  align-content: center;
  font-size: 10px;
  color: rgba(0,33,71,0.5);
}

.class-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-logo {
  width: 200px;
  height: 200px;
  border: 5px solid white;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #6db3ff, #0061dc);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}


.class-title {
  margin-top: 20px;
}

.class-small {
  font-size: 11px;
  opacity: 0.5;
}

.class-para {
  font-size: 14px;
  margin: 15px 0px 25px 0px;
  opacity: 0.7;
  width: 90vw;
}

.class-hr {
  margin-bottom: 25px;
  opacity: 0.3;
  color: #002147;
  width: 90%;
}

#posts hr {
  width: 75%;
  margin-bottom: 40px;
  opacity: 0.3;
  color: #002147
}

#posts {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll1 {
  display: none;
  position: absolute;
  right : 20px;
  top: 20px;
  animation: scroll-text 2s ease-out infinite;
}

.scroll1:hover, .scroll2:hover {
  filter: brightness(3);
}
#successtext {
  color: #0061dc!important;
  font-size: 12px;
  text-align: center;
  font-family: "Comfortaa";
}
#imglink {
  margin-top: 10px;
  opacity: 0.5;
}

@keyframes scroll-text {
  0% {
    transform: translateY(0px);
    filter: brightness(0);
  }
  50% {
    transform: translateY(-5px);
    filter: brightness(2);
  }
  100% {
    transform: translateY(0px);
    filter: brightness(0);
  }
}




@media (min-width: 768px) {
  .main-wrapper {
    margin-bottom: 100px;
  }
  .wrapper {
    display: flex;
    flex-direction: row;
    max-width: 90vw;
    gap: 10px
  }
  
  .posting {
    flex-basis: 30%;
  }
  
  .post-list {
    flex-basis: 70%;
    max-height: 60vh;
    min-height: 600px;
    overflow-y: auto;
  }
  
  .post-list, .posting {
    margin: 0;
  }
  
  .centerhr {
    opacity: 0;
  }
  
  .post {
    width: 90%;
  }
  .info-logo {
    width: 0px;
    height: 0px;
    border: 0;
    opacity: 0;
  }
  .scroll1 {
    display: flex;
    align-items: center;
  }
  .scroll2 {
    display: none;
  }
  .post img {
    width: 250px;
  }
}