

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');


* {
  box-sizing: border-box;
}

html,
body {
  height: 100% ;
  padding: 0px;
  margin: 0px;
  background: #f3f2f2;
  font-family:'FontAwesome';
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Text', serif;
  font-weight: 500;
  margin: 5px;
  color: #074966;
  
}

a {
  text-decoration: none;
  color: inherit;
}

.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

.btn {
  padding: .5rem 1rem;
  border-color: #008489 ;
  color: white;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: 1.08em;
}

.btn:hover {
  background: #0773a1;
  color: white ;
}

.btn-big {
  width: 100%;
  padding: .7rem 1.3rem;
  line-height: 1.3rem;
  color: white;
  background: #065a7e;
}

.text-input {
  padding: .7rem 1rem;
  display: block;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  outline: none;
  color: #444;
  line-height: 1.5rem;
  font-size: 1.2em;
  font-family: 'serif';
}

.msg {
  width: 100%;
  margin: 5px auto;
  padding: 8px;
  border-radius: 5px;
  list-style: none;
}

.success {
  color: #055817;
  border: 1px solid #22ad40;
  background: #87f79f;
}

.error {
  color: #970b0b;
  border: 1px solid #c90606;
  background: #f7c4c4;
}

/* NAVBAR */

header {
  background: #065a7e;
  height: 66px;
  font-family:  serif;
  font-weight: 500;
  letter-spacing: 1px;
}

header * {
  color: white;
  z-index: 88888;
}

header .logo {
  float: left;
  height: inherit;
}

header .logo-text {
  margin: 9px;
}

header .logo-text span {
  color: #44eaf0;
}

header ul {
  float: right;
  margin: 0px;
  padding: 0px;
  list-style: none;
  /* border: 1px solid red; */
}

header ul li{
  float: left;
  position: relative;
}

.nav{
 height: 66px;
}

.nav.showing {
  height: auto;
}

header ul li a:hover {
  background: #064966;
  transition: 0.3s;
  height: 66px;
}

header ul li ul {
  position: absolute;
  top: 66px;
  right: 0px;
  width: 100%;
  display: none;
  z-index: 88888;
}

header ul li .fa.fa-chevron-down {
  transform: rotateZ(-180deg);
  transition: .4s;
}
header ul li:hover .fa.fa-chevron-down {
  transform: rotateX(0deg);
  transition: .4s;
}

header ul li:hover ul {
  display: block;
}

header ul li ul li {
  width: 100%;
}

header ul li ul li a {
  padding: 10px;
  height: inherit;
  background: white;
  color: #474646
}

header ul li ul li a.logout {
  color: #e60505;
}

header ul li ul li a:hover {
  background: #d8d6d6;
  width: inherit;
  height: inherit;
}

header ul li a {
  display: block;
  padding: 21px;
  font-size: 1.1em;
  text-decoration: none;
}

header .menu-toggle {
  display: none;
}

.nav.showing li a:hover {
   background: #042838;
}

.page-wrapper {
  min-height: 100%;
}

.page-wrapper a:hover {
  color: #008489;
} 

/* POST SLIDER */
.post-slider {
  position: relative;
}

.post-slider .slider-title {
  text-align: center;
  margin: 30px auto;
}

.post-slider .next{
  position: absolute;
  top: 50%;
  right: 30px;
  font-size: 2em;
  color: gray;
  cursor: pointer;
}

.post-slider .prev{
  position: absolute;
  top: 50%;
  left: 30px;
  font-size: 2em;
  color: gray;
  cursor: pointer;
}

.post-slider .post-wrapper {
  width: 84%;
  height: auto;
  margin: auto;
  overflow: hidden;
  padding: 10px 0px 20px 0px;
}

.post-slider .post-wrapper .post {
  display: inline-block;
  width: 300px;
  height: auto;
  margin: 0px 10px;
  background: white;
  border-radius: 5px;
  padding-bottom: 10px;
  box-shadow: 0px 2px 5px -1px; 
}

.post-slider .post-wrapper .post .post-info {
  height: auto;
  padding: 0px 5px;
}

.post-slider .post-wrapper .post .slider-img {
  width: 100%;
  height: 200px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.post-slider .post-wrapper .post .post-info h4 a {
  font-size: 21px;
}

.post-slider .post-wrapper .post .post-info p {
  font-family: 'Lato', sans-serif;
  padding: 0px 5px 0px 5px;
  font-size: 16px;
}

/* CONTENT */
.content {
  width: 90%;
  margin: 30px auto 30px;
}

.content .main-content {
  width: 70%;
  float: left;
  margin-bottom: 10px;
}

.content .main-content.single {
  background: white;
  height: 1000px;
  padding: 20px 30px;
  font-size: 1.1em;
  border-radius: 5px;
  overflow-y: auto;
}

.content .main-content.single .post-title {
  text-align: center;
  margin-bottom: 40px;
}

.content .main-content.single img {
  width: 100%;
  max-width: auto;
  height: auto;
  padding: 10px 70px 10px 70px;
}

.content .main-content.single p {
  font-family: 'Lato', sans-serif;
  line-height: 27px;
}

 
.content .main-content .post {
  width: 95%;
  height: 270px;
  margin: 20px auto;
  border-radius: 5px;
  background: white;
  position: relative;
}

.content .popular .post {
  border-top: 1px solid #a09e9e;
  margin-top: 10px;
  padding-top: 10px;
}

.content .popular .post img {
  width: 80px;
  height: 60px;
  float: left;
  margin-right: 10px;
}

.content .popular h4:hover {
  color: #008489;
}

.content .main-content .post .read-more {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #07597c ;
  background: transparent;
  border: 1.7px solid #07597c;
  
}

.content .main-content .post .read-more:hover {
  background: #07597c;
  color: white;
  transition: .4ms;
}

.content .main-content .post .post-image {
  width: 40%;
  height: 100%;
  float: left;
}

.content .main-content .post .post-preview {
  width: 60%;
  padding: 10px;
  float: right;
}

.content .main-content .post .post-preview .preview.text {
  font-family: sans-serif;
  font-size: 15px;
}

.content .main-content .recent-post-title {
  margin: 20px;
}

.content .sidebar {
  width: 30%;
  float: left;
}

.content .sidebar.single {
  padding: 0px 10px;

}

.content .sidebar .section {
  background: white;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.content .sidebar .section .section-title {
  margin: 10px 0px 10px 0px;
}

.content .sidebar .section.search {
  margin-top: 80px;
}


.content .sidebar .section.topics ul {
  margin: 0px;
  padding: 0px;
  list-style: none;
  border-top: 1px solid #e0e0e0;
}

.content .sidebar .section.topics ul li a {
  display: block;
  padding: 15px 0px 15px 0px;
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.content .sidebar .section.topics ul li a:hover {
  padding-left: 10px;
  transition: all 0.3s;
}

/* AUTH PAGES */
.auth-content {
  width: 400px;
	min-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  border-radius: 5px;
  box-shadow: 0px 1px 6px -4px;
}
.auth-content.register {
	margin-top: 70px;
}
.auth-content .form-title {
  text-align: center;
}

.auth-content form div {
  margin-bottom: 10px;
}

.auth-content form p {
  text-align: center;
}

.auth-content form a {
  text-decoration: underline;
}



/* FOOTER */
.footer {
  background: #043144;
  color: #e0e0e0;
  height: 400px;
  position: relative;
}

.footer .footer-content {
  height: 350px;
  display: flex;
}

.footer .footer-content .footer-section {
  flex: 1;
  padding: 25px;
}

.footer .footer-content h1,
.footer .footer-content h2 {
  color: white;
}
 
.footer .footer-content .about h1 span {
  color: #44eaf0;
}

.footer .footer-content .about .contact span {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
}

.footer .footer-content .about .socials a {
  border: 1px solid grey;
  width: 45px;
  height: 41px;
  padding-top: 5px;
  margin-right: 5px;
  text-align: center;
  display: inline-block;
  font-size: 1.3em;
  border-radius: 5px;
  transition: all .3s;
}

.footer .footer-content .about .socials a:hover {
  border: 1px solid white;
  color: white;
  transition: all .3s;
}

.footer .footer-content .links ul a {
  display: block;
  margin-bottom:  10px;
  font-size: 1.2em;
  transition: .3s;
}

.footer .footer-content .links ul a:hover {
  color: white;
  margin-left: 15px;
  transition: .3s;
}

.footer .footer-content .contact-form .contact-input {
  background: #022333;
  color: #a09e9e;
  margin-bottom: 10px;
  line-height: 1.5rem;
  padding: .9rem 1.4rem;
  border: none;
}

.footer .footer-content .contact-form .contact-input:focus {
  background: #010f16;
}

.footer .footer-content .contact-form .contact-btn {
  float: right;
  font-size: 1.1em;
  font-family: 'serif';
}

.footer .footer-bottom {
  background: #010f16;
  color: #a09e9e;
  width: 100%;
  height: 50px;
  text-align: center;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding-top: 20px;

}

/* MEDIA QUERIES */



@media only screen and (max-width: 934px) {
  header {
    height: 66px;
  }
  .content {
    width: 100%;
  }

.auth-content {
  width: 400px;
  min-width: 400px;
  }

  .content .main-content .post {
    width: 100%;
  }
  .content .main-content {
    width: 100%;
    padding: 10px;
  }

  .content .sidebar {
    width: 100%;
    padding: 10px;
  }
  .content .sidebar .section.search {
    margin-top: 30px;
  }

  .footer {
    height: auto;
  }
  
  .footer .footer-content {
    height: auto;
    flex-direction: column;
  }

  .footer .footer-content .contact-form {
    padding-bottom: 90px;
  }
  

}

@media only screen and (max-width: 770px){
  

  .main-content-wrapper {
    padding: 10px;
  }
  
  header ul {
    width: 100%;
    background: #074966;
    max-height: 0px;
    overflow: hidden;
  }

  .showing {
    max-height: 100em;
  }

  header ul li {
    width: 100%;
  }

header ul li ul {
  position: static;
  display: block;
  width: 100%;
}

header ul li ul li a {
  padding: 10px;
  background: #043144;
  color: white;
  padding-left: 50px;
}

header ul li ul li a:hover {
  background: #044a68;
}

header ul li ul li a.logout {
  color: #e60505;
}

header .menu-toggle {
  display: block;
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 1.9em;
}

header .logo {
  float: left;
  height: inherit;
}

header .logo-text {
  margin-left: .4em;
}

.sidebar {
  margin-top: -5%;
}

}

@media only screen and (max-width: 600px){

  .post-slider .next {
    right: 5px;
  }

  .post-slider .prev {
    left: 5px;
  }

  header {
    width: 100%;
    height: 55px;
    box-shadow: 0px 2px 4px -1px;
    position: fixed;
    top: 0;
    z-index: 888; 
  }

  .page-wrapper {
    margin-top: 25%;
  }

  .post-slider .slider-title { 
    font-size: 1.7em;
  }

  .content .main-content.single {
    padding: 20px 20px;
  }

  .content .main-content.single h1 {
    font-size: 1.7em;
  }

  .content .main-content.single img {
    width: 100%;
    max-width: auto;
    height: auto;
    padding: 0px;
  }

  .content .main-content .post {
    height: auto;
  }
  .content .main-content .post .post-image{
    width: 100%;
  }

  .content .main-content .post .post-preview {
    width: 100%;
  }

  .content .main-content .post .read-more {
    display: block;
    width: 100%;
    position: static;
    text-align: center;
  }

  .sidebar {
    margin-top: -15%;
  }

  .single {
    margin: 0px;
  }

  .footer-bottom {
    font-size: .7em;
  }
  /* .auth-content {
    width: 90%;
    margin-bottom: 20%;

  } */
}

@media only screen and (max-width: 480px) {
  .auth-content {
		width: 90%;
	min-width: 300px;
	margin-top: 10px;
}
}
