
:root {
  --black: #1c1c1c;
  --gray: #7E7E7E;
  --gray-light: #E4E4E4;
  --red: #ff2424;
  --font-size-base: 1rem;
  --font-size-md: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --font-size-lg: clamp(1.56rem, 1vw + 1.31rem, 2.11rem);
  --font-size-xl: clamp(2.44rem, 2.38vw + 1.85rem, 3.75rem);
  --border-radius: 10px;
}
body, input, textarea {
  font-family: 'Poppins', sans-serif;
}

#design {
  color: #ff2424 !important;
}

/* Animation */

.wave-text span {
  display: inline-block;
  /* font-size: 4rem; */
  animation: wave 2s ease-in-out infinite;
}

.wave-text span:nth-child(1) {
  animation-delay: 0s;
}
.wave-text span:nth-child(2) {
  animation-delay: 0.2s;
}
.wave-text span:nth-child(3) {
  animation-delay: 0.4s;
}
.wave-text span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes wave {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-20px);
  }
}

/* Profile Style */

/* Profile Section */
.profile {
  text-align: center; /* Center the profile section */
  padding: 20px; /* Add some padding around the profile section */
  background-color: var(--background-color); /* Optional: background color for the profile section */
  border-radius: var(--border-radius); /* Rounded corners for the profile section */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: subtle shadow for depth */
  margin: 20px auto; /* Center the profile section horizontally with margin */
  max-width: 800px; /* Optional: limit the maximum width */
}

/* Profile Picture */
.profile-picture {
  width: 150px; /* Set the width of the profile picture */
  height: 150px; /* Set the height of the profile picture */
  border-radius: 50%; /* Make the profile picture circular */
  object-fit: cover; /* Ensure the image covers the area without distortion */
  margin-bottom: 10px; /* Space between the picture and the text */
}

/* Profile Info */
.profile-info {
  color: var(--text-color);
}

.profile-name {
  font-size: var(--font-size-lg); /* Font size for the name */
  margin: 0; /* Remove default margin */
}

.profile-bio {
  font-size: var(--font-size-base); /* Font size for the bio */
  margin: 10px 0 0; /* Margin above the bio */
}



@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.radblokmultimedia {
  color:#126dff;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

  
  /* Add styles for the button */
  .articles__button {
    border: 1px solid transparent;
    padding: 8px 16px;
    display: inline-block;
    cursor: pointer;
    border: 1px solid black;
    background-color: #ffffff00;
    color: black;
    transition: color 0.3s, border-color 0.3s;
  }
  
  .articles__button:hover {
    color: red;
    border-color: red;
  }


.flash-alert {
  text-align: center;
  align-items: center;
}

.flash-error {
  color: red;
}

.flash-success {
  color: green;
}

.about {
  text-align: center;
}

#red {
  color: #ff2424;
}

/* Add this to your existing styles or modify as needed */
.article a.blog-link {
  color: #ff2424; /* Set the color to blue */
  font-weight: bold;
}

.article a.blog-link:hover {
  color: darkblue; /* Set the hover color to dark blue */
  text-decoration: underline; 
  font-weight: bold;
}

body {
  font-family: 'Poppins';
  color: var(--black);
  font-size: var(--font-size-base);
  background-color: #ffffff;
  /* background-image: url("/img/img-noise-361x370.png"); */
  margin: 0;
}

a { color: var(--black); }
h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); }

.author_heading {
  font-size: 111px !important;
  line-height: 0.9;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.7rem 0.75rem;
  margin-bottom: 1rem;
}

.btn-delete {
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid red;
  background-color: var(--red) !important;
  color: white !important;
}

.btn-delete:hover {
  padding: 10px 16px;
  border: 1px solid rgb(193, 0, 0) !important;
  background-color: var(--white) !important;
  color: black !important;
}


img {
  width: 100%;
  height: auto;
}

/* Layout */

.main {
  padding: 20px 0;
}

/* Hero Section */
.hero-image {
  max-height: 528px;
  filter: drop-shadow(0px 44px 34px rgba(0, 0, 0, 0.25));
  overflow: hidden;
  border-radius: var(--border-radius);
}


/* Main Header */
.header {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  grid-template-areas: 
  "logo button"
  "menu menu";
  padding-top: 10px;
}
nav {
  padding-top: 20px;
}
@media only screen and (min-width: 768px) {
  .header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 
    "logo menu button";
  }

}

.header__logo {
  font-weight: 800;
  font-size: 25px;
  text-decoration: none;
  grid-area: logo;
}

.header__logo:hover {
  text-decoration: underline;
}

.header__nav {
  justify-content: center;
  display: flex;
  grid-area: menu;
}

.header__logo, .header__nav, .header__button {
  width: 100%;
}

.header__button {
  display: flex;
  justify-content: end;
  grid-area: button;
}

.header__button button {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  border: 0;
  padding: 6px 12px;
  background: none;
  border-radius: 10px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

/* Header -> Navigation */
.header__nav ul {
  list-style-type: none;
  align-items: center;
  display: flex;
  gap: 1rem;
  font-weight: 600;
  padding: 0;
}

.header__nav ul a {
  padding: 10px;
  text-decoration: none;
}

.header__nav ul a.active {
  color: #7E7E7E;
}

.header__nav ul a:hover {
  text-decoration: underline;
}



/* Author - HomePage */
.author {
  padding: 10px 0;
  /* text-align: center; */
}

.author__heading {
  margin-top: 10px;
  margin-bottom: 5px;
}


.author__body {
  font-size: var(--font-size-md);
  margin: 5px 0 40px 0;
}

.articles {
  padding-top: 0px !important;
}

.search {
  color: #ff0000 !important;
}

.searchBtn {
  padding: 5px;
  border-radius: 5px;
}

#file-preview {
  text-align: center;
}

.add-btn {
  display: inline-block;
  padding: 8px 16px; /* Adjusted size */
  text-decoration: none;
  color: #000;
  background-color: white;
  border: 1px solid #000;
  cursor: pointer;
  border-radius: 0; /* Removed rounded corners */
  margin-top: 10px;
  margin-bottom: 10px; /* Added margin bottom */
}

.add-btn:hover {
  display: inline-block;
  padding: 8px 16px; /* Adjusted size */
  text-decoration: none;
  color: #f30000;
  border: 1px solid #f30000;
  background-color: white;
  border-radius: 0; /* Removed rounded corners */
  margin-top: 10px;
  margin-bottom: 10px; /* Added margin bottom */
}

#navbarcontainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}




/* Home Article List */
.articles__heading {
  margin-left: 35px;
  font-weight: bold;
}

.authorspan {
  color: white;
  background-color: #ff0909;
  padding: 5px;
  font-size: 13px;
}

/* Dark Mode Styles */
body.dark-mode .authorspan {
  color: #ff0909; /* Change text color to black in Dark Mode */
  font-weight: bolder;
  background-color: #ffffff; /* Change background color to white in Dark Mode */
}

body.dark-mode .authorspan:hover {
  color: #ffffff; /* Change hover text color in Dark Mode */
  background-color: #ff0909; /* Change hover background color in Dark Mode */
}

.latestspan {
  border-left: 6px solid red;
  color: #E4E4E4;
  padding: 5px;
  background-color: #000000;
}

/* Dark Mode Styles */
body.dark-mode .latestspan {
  background-color: #ffffff; /* Change background color to white in Dark Mode */
  color: #000000; /* Change text color to black in Dark Mode */
}

.latestspan {
  border-left: 6px solid red;
  color: #E4E4E4;
  padding: 5px;
  background-color: #000000;
}

body.dark-mode .latestspan {
  background-color: #ffffff; /* Change background color to white in Dark Mode */
  color: #000000; /* Change text color to black in Dark Mode */
  border-left: 6px solid red;
}

body.dark-mode .latestspan:hover {
  background-color: #111111; /* Change hover background color in Dark Mode */
  color: #ffffff; /* Change hover text color in Dark Mode */
}


.article-ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  font-size: clamp(1.13rem, calc(1.08rem + 0.22vw), 1.25rem);
  display: flex;
  flex-direction: column;
}

.article-list__date {
  font-size: 1rem;
  color: var(--gray);
  width: 100px;
  display: inline-block;
  width: 260px;
}

.article-ul li a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  margin: 18px 0;
}

@media only screen and (min-width: 768px) {
  .article-ul li a {
    flex-direction: row;
    align-items: center;
  }
 

  .article-list__date {
    text-align: right;
  }
}

.article-ul li {
  font-size: 24px;
  cursor: pointer;
  transition: filter 0.1s;
}

.article-ul li:not(:last-child) {
  border-bottom: 1px solid var(--gray-light);
}

.article-ul li:hover {
  filter: none;
}

.article-ul:hover li {
  filter: blur(3px);
}

.article-ul:hover li:hover {
  filter: none;
}


.article {
  white-space: pre-wrap;
  background-color: #00000005;
  padding: 50px;
}


/* Footer */
.footer {
  margin: 4rem;
  text-align: center;
}



/* Dashboard Admin */
.admin-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.admin-posts {
  padding: 0;
  margin: 0;
}

.admin-post-controls form {
  display: inline-block;
}

.admin-post-controls .btn  {
  display: inline-block;
  background-color: var(--black);
  color: var(--gray-light);
  border: 0;
  text-decoration: none;
  font-size: .8rem;
  padding: 4px 8px;
  line-height: 2;
}

/* SeachBar */
.searchBar {
  visibility: hidden;
  transform: translateY(-100px);
  background-color: var(--black);
  padding: 4px 0;
  position: absolute;
  left: 0;
  right: 0;
}

.img-thumbnail {
  height: 250px;
  width: auto;
  border-radius: 8px;
  overflow: hidden; /* Ensure the border-radius is applied properly */
}


.searchBar.open {
  transform: translateY(0);
  transition: transform 0.1s;
}

.searchBar input {
  margin: 0;
  border: 0;
}

#searchClose {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--gray-light);
  padding: 15px;
}


.pagination {
  font-size: 1.3rem;
  color: var(--gray);
  text-decoration: none;
  margin-top: 40px;
  display: inline-block;
}

.pagination-right {
  font-size: 1.3rem;
  color: var(--gray);
  float: right;
  text-decoration: none;
  margin-top: 40px;
  display:block;
}

.pagination:hover {
  color: var(--black);
}

.image-container {
  margin-right: 10px; /* Adjust the spacing between the image and the article body */
}

.post-title {
  font-family: 'Poppins';
  font-size: 35px;
}


.blur {
  position: absolute;
  width: 22rem;
  height: 14rem;
  border-radius: 50%;
  background-color: #2f63d3;
  filter: blur(72px);
  /* position: fixed; */
}


.blur2 {
  position: absolute;
  width: 22rem;
  height: 14rem;
  border-radius: 50%;
  background-color: #d32f2f;
  filter: blur(72px);
  /* position: fixed; */
  margin-left: 970px;
  margin-top: 80px;
}


/* Cards */


/* Base styles for larger screens */
.article-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns, each taking up 50% of the container */
  grid-column-gap: 20px; /* Add some space between the image and the body */
  align-items: center; /* Align items vertically in the center */
  background-color: #00223912;
}

.article-wrapper figure {
  width: 100%; /* Set the width of the image container to 100% */
}

.img-thumbnail {
  width: 100%; /* Set a fixed width for the image */
  height: auto; /* Allow the image to scale proportionally */
}

.article-body {
  /* No need to specify width for the article body, it will take up the remaining width */
  padding: 50px; /* Add padding between the text and the image */
}

/* Optional: Adjust styles as needed */
h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--black);
  text-decoration: none; /* Remove underlines from links */
  transition: color 0.3s; /* Add a smooth color transition on hover */
}

a:hover {
  color: var(--red); /* Change link color to red on hover */
}

.article-border {
  border-bottom: 1px solid red !important;
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
  .article-wrapper {
    grid-template-columns: 1fr; /* Single column for smaller screens */
  }

  .author_heading {
    text-align: center;
    line-height: 1.1;
    font-size: 50px !important;
}
  .header-ul li {
    margin: 0 !important;
    padding-left: 0px !important;
    padding-bottom: 0;
}
  .img-thumbnail {
    width: 128%;
    margin-left: -34px;
    height: auto;
}

.article-wrapper figure {
    width: 75%;
}

  .article-body {
    padding: 20px; /* Adjust padding for smaller screens */
  }
}


/* Add this to the existing styles */

.date-author {
  display: flex;
  text-align: left !important;
}

.article-body hr {
  margin: 10px 0; /* Add space around the hr element */
}



/* Add these variables for dark mode */
:root{
  --background-color: #1c1c1c;
  --text-color: #ffffff;
  /* ... other variables ... */
}

.profile_bg {
  --background-color: #00000008;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
}


/* Add these styles for dark mode */
.date-author .date,
.date-author .author {
  color: var(--dark-gray);
}

.article-body, .article-border, .icon, .articles__button, a.edit-button {
  border-color: var(--dark-border);
}

.edit-button-spacing {
  margin-bottom: 10px;
}

.container {
  max-width: 982px !important;
  margin: 0 auto !important;
  padding: 0 10px !important;
}

a, .articles__button, a.edit-button {
  color: var(--dark-text);
}

.banner {
  height: 5px; /* Adjust the height as needed */
  background: linear-gradient(to right, #FF0000, #000000); /* Set the background color as needed */
  /* Add any other styles you want for the banner */
}

.header-ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  padding: 0;
}

.header-ul .items-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-ul li {
  padding-top: 16px;
}

.toggle-container {
  display: flex;
  align-items: center;
  margin-top: 40px;
  margin-left: auto;
  justify-content: center;
}


.header {
  background-color: var(--dark-background);
  color: var(--dark-text);
}

.header__nav ul a {
  color: var(--dark-text);
}

.header__button button {
  color: var(--dark-background);
}

.header__button button:hover {
  border: 2px solid var(--dark-background);
}

.author, .icon {
  background-color: var(--dark-background);
  color: var(--dark-text);
}

.article-list__date {
  color: var(--dark-gray);
}

.article-ul li {
  border-bottom: 1px solid var(--dark-border);
}

.pagination,
.pagination-right {
  color: var(--dark-gray);
}

/* Add these styles for dark mode */
.date-author .date,
.date-author .author {
  color: var(--dark-gray);
}

.article-body  {
  border-color: #FF0000 !important;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ff0000; /* Set the initial background color for the slider (red for dark mode) */
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffff; /* Set the initial background color for the button (white for dark mode) */
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #000000; /* Set the background color for the slider when in light mode (black for light mode) */
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.toggle-label {
  margin-left: 10px;
  color: #000000; /* Set the text color (black for light mode) */
}

/* Add this style to your existing styles or in a separate CSS file */
table.admin-posts {
  border-collapse: collapse;
  width: 100%;
  border: none; /* Remove borders from the table */
}

table.admin-posts th, table.admin-posts td {
  padding: 8px;
  text-align: left;
  border: none; /* Remove borders from table cells */
}

table.admin-posts .ctrl {
  text-align: center; 
}

table.admin-posts a {
  text-decoration: none;
}

table.admin-posts .admin-post-controls {
  white-space: nowrap; /* Prevent line breaks in controls */
}

table.admin-posts .btn {
  text-decoration: none;
  padding: 5px 10px;
  margin-right: 5px;
  display: inline-block;
  background-color: #4285f4; /* Set the button background color */
  color: #fff; /* Set the button text color */
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

table.admin-posts .btn-delete {
  background-color: #d32f2f; /* Set the delete button background color */
}
