@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

html,
body {
  font-family: "Open Sans", sans-serif;
  height: 100%;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin: 30px 0;
}

.main-menu {
  width: 100%;
}
.main-menu ul {
  display: flex;
}
.main-menu a {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  padding: 0 20px;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
}

.main-menu li:nth-child(3) {
  margin-left: auto;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ccc;
  margin-top: 50px;
}
.page-header {
  background-color: #222;
  position: fixed;
  z-index: 10;
  top: 0;
  width: 100%;
  height: 50px;
}
.page-content-wrapper {
  flex: 1;
  background: #ddd;
  display: flex;
  flex-direction: column;
}
.inner-wrapper {
  width: 100%;
  max-width: 1080px;
  flex: 1;
  margin: 0 auto;
}

.page-hero {
  height: 500px;
  background: url("../img/hero-01.jpg") center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-hero-title {
  font-size: 80px;
  font-weight: 800;
  color: #fff;
  -webkit-text-stroke: 1px #000;
}

.posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}

.post {
  background-color: #fff;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  line-height: 1.5;
  width: calc(50% - 15px);
  box-sizing: border-box;
  height: 200px;
  margin-bottom: 30px;
}
.post-image {
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.post-author {
  text-transform: capitalize;
  font-size: 12px;
  margin-bottom: 10px;
}
.post-text {
  flex: 1;
  padding: 20px;
}
.post-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 5px;
}
.post-btn {
  text-decoration: none;
  display: inline-block;
  padding: 5px 20px;
  margin-top: 10px;
  font-size: 14px;
}

.page-homepage .post:nth-child(1) {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
}
.page-homepage .post:nth-child(1) .post-image {
  width: 100%;
  height: 300px;
}
.page-homepage .post:nth-child(1) .post-title {
  font-size: 32px;
  font-weight: bold;
  line-height: 1.2;
}

.page-posts .post {
  width: 100%;
  display: flex;
  flex-direction: row;
}
.page-posts .post-image {
  width: 200px;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Center the login form */
.login-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 20vh auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin: 10px 0 5px;
  color: #555;
}

input[type="text"],
input[type="password"] {
  width: 92%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #0066cc;
  box-shadow: 0px 0px 5px rgba(0, 123, 255, 0.3);
  outline: none;
}

input[type="submit"] {
  width: 100%;
  background: #008000;
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

input[type="submit"]:hover {
  background: #00aa00;
}

.error-message {
  color: red;
  margin-top: 10px;
}

.page-post .post {
  width: 100%;
  height: fit-content;
  margin-top: -40px;
}
.page-post .post .post-title {
  font-size: 54px;
  text-align: center;
}
.page-post .post-author {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 50px;
}
.page-post .post-content {
  margin-top: 30px;
  line-height: 1.7;
  font-size: 16px;
}
.page-post .post-text {
  padding: 40px;
}
