/* index HTML starts here */
body {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
  color: #222;
}
/* psuedo element "::before" is a fixed keyword along with other existing */
body::before {   
  content: "";
  position: absolute;
  top: 60px;
  bottom: 60px;
  left: 0;
  right: 0;
  background-image: url('/images/hyruleCastle.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -1;
}


.title-wrapper {
  text-align: center;
  margin-top: 200px; 
  background-color: red;

}

.main-content {
  display: none;
}

.title {
  padding: 0.01em 3em;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}


.sidebar {
  flex: 1;
  background-color: #f9f9f9;
  padding: 0em 2em 2em 2em;
  border-radius: 30px;
  border-left: 2px solid #ccc;
  height: 300px;
  overflow: scroll;
}
.sidebar h2 {
  text-align: center;
}

.youtube-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  margin: 0 auto;
  padding: 0;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  border-radius: 6px;
  max-width: 250px;  /* Controls max width on desktop */
}


.video-row {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: .5em;
  justify-content: center; /* optional: center them */
  padding: 1em;
}

.video-container {
  flex: 1 1 300px;
  max-width: 300px;
  padding: 0.5em;
}

/* INDEX HTML ends here */

/* Blog HTML starts here */

/* Blog HTML starts here */



/* log out button*/

.logout-container {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.logout-button {
  padding: 6px 12px;
  cursor: pointer;
  display: none;
}


/* logout button ends here  */

.hashtag {
    color: #007bff;
    cursor: pointer;
    font-weight: bold;
  }
  
  .hashtag:hover {
    text-decoration: underline;
  }
  

.write-a-blog-post {
  font-size: 32px;
  text-align: center;     /* center the text inside the h1 */
  width: fit-content;     /* or a specific width like 50% */
  margin: 20px auto;      /* THIS centers the block itself horizontally */
}

.Recent-Posts {
  font-size: 20px;
  text-align: center;     /* center the text inside the h1 */
  width: fit-content;     /* or a specific width like 50% */
  margin: 20px auto;      /* THIS centers the block itself horizontally */
}

.blog-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.blog-form input[type="text"],
.blog-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.blog-form textarea {
  height: 150px;
  resize: vertical;
}

.file-post-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-aligns both file input and button */
  margin-top: 10px;
  gap: 8px; /* space between file input and Post button */
}

.file-post-wrapper input[type="file"] {
  font-size: 14px;
  padding: 6px 10px;    /* Internal spacing */
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 60%;           /* Shrinks the file input (adjust as needed) */
  max-width: 300px;     /* Optional: limit max width */
  align-self: flex-end; /* Keeps it aligned right */
}

#submit-button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}



#submit-button:hover {
  background-color: #40bfbf;
}
/* aligns the time stamp*/
.timestamp {
  margin-top: 1em;
  font-size: 0.85em;
  color: #555;
  text-align: right;
}

.post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 4em;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


/* Post content */
.blog-post-content {
  white-space: pre-wrap;
  font-family: monospace; /* optional */
  line-height: 1.5;
}



/*copy posts or code */

.code-wrapper {
  position: relative;
  margin-bottom: 1em;
}

.copy-code-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  opacity: 0.8;
  z-index: 1;
}

.copy-code-button:hover {
  opacity: 1;
}

.blog-post-content {
  white-space: pre-wrap;
  font-family: monospace;
  line-height: 1.5;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow-x: auto;
}


/* add section here */

  .nav-menu li a:hover {
  color: #ffd700;
}

/* Blog HTML ends here */

/* Hamburger Button */

#hamburger {
  position: fixed;
  top: 0px;
  left: 0px;
  color: black;
  font-size: 50px;
  cursor: pointer;
  z-index: 1100;
  margin-top: 15px;
  margin-left: 25px;
}
#hamburger-icon {
  width: 100px;
  height: auto;
  display: block;
  border-radius: 30px;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 60px; /* Adjust for header height */
  width: 200px;
  height: auto;
  background-color: rgba(255, 255, 255, 0.756); /* 50% transparent black */
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-x: hidden;
  border-radius: 30px;
}

.sidebar-nav ul {
  list-style-type: none;
  
}

.sidebar-nav li {
  padding: 15px;
  text-align: left;
}

.sidebar-nav li a { /* styles the font of the sidebar */
  color: black;
  text-decoration: none;
  font-size: 18px;
  display: block;
  
}

.sidebar-nav li a:hover { /* styles the hover effect of the sidebar */
  color: #ffd700;
}

/* Hide Sidebar by default */
.hidden {
  transform: translateX(-220px);
}

/* Push content when sidebar is visible */
#layout.sidebar-open .sidebar-nav {
  width: 200px;
  padding: 60px 20px;
}

/* Signup.html styles */

#signupForm {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  height: auto;
  /* background-color: #f9f9f9; */  /* ← remove or comment this */
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
input, .signup-button {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.signup-button {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.signup-button:hover {
  background-color: #45a049;
}

/* login.html styles */

/* styles.css */
.eye svg {
  vertical-align: middle;
}

/*body {
  font-family: sans-serif;
  background-color: #f9f9f9;
  margin: 100px;
  padding: 0;
  height: auto;
}
*/


#login-form {
  max-width: 400px;
  margin: 100px auto 0;
  padding: 12px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

input, .login-button {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}



.login-button {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #45a049;
}


.error {
  color: red;
  font-size: 0.9rem;
}



#login-form {
  max-width:400px;
  margin: 0 auto;
  padding: 20px;
  height: auto;
  background-color: #f9f9f9;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
///////////////










.card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin: 1rem auto;
  width: 100%;
  max-width: 700px;
}
/* Generic card styling */
.search-card {
  display: flex;
  justify-content: flex-end;
  padding: 0px !important;
  margin: 20px 20px 20px auto !important;
  max-width: 200px; 
  background-color: transparent !important; 
  box-shadow: none !important;
}

.post-form-card,
.blog-post {
  background-color: #fff;         
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.blog-form button {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #4caf50;
  border: none;
  color: white;
  border-radius: 4px;
}

/*input#search-bar {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: #fff;
  border: 1px solid #555;
  color: #000;
  border-radius: 5px;
  margin-right: 15px;
} */

