/*
/* STYLESHEET */
/* SOURCE: styles.css */

:root{
  --light-gray: #f2f0f0;
  --gray: #e3e3e3;
  --dark-gray: #919191;
  --darker-gray: #545454;
  --logo-blue: #1D4ED8;
  --darker-blue: #1E40AF;
  --lighter-blue: #60A5FA;
  --even-lighter-blue: #BFDBFE;
  --lightest-blue: #DBEAFE;
  --red: #FF0000;
  --dark-orange: #ED0707;
  --light-orange: #f9c56c;
  --even-lighter-orange: #fcdbb8;
  --strange-yellow: #dbae2e;
  --green: #34D399;
  --light-green: #E6F8DD;
  --medium-green: #A0C99C;
  --dark-green: #059669;

  accent-color: #1D4ED8;
  accent-color: var(--logo-blue);
}

*{
  box-sizing: border-box;
}
html{
  line-height: 1.225;
}
html{
  margin: 0;
  padding: 0;
}
.container{
  width: 810px;
  max-width: 100%;
  margin: 0 auto 10px;
}
time.ago{
  opacity: 0;
}
a{
  color: #1E40AF;
  color: var(--darker-blue);
  text-decoration: none;
}
a:hover,
a:active{
  color: #c00;
  text-decoration: underline;
}
p, ul:not(nav .links):not(footer .links) li{
  font-size: 0.875em;
  font-size: max(0.875em, 12px);
}
ul{
  padding-left: 20px;
}
nav{
  color: white;
  font-size: 72%;
  font-size: max(72%, 12px);
}
nav .top{
  background: #1D4ED8;
  background: var(--logo-blue);
  padding: 15px 10px 14px 10px;
  display: flex;
  position: relative;
}
nav .top a{
  text-decoration: none;
  color: inherit;
}
nav .top a:hover{
  text-decoration: underline;
}
nav .top div{
  display: inline-block;
  vertical-align: top;
}
nav .top .left a{
  text-decoration: none;
  color: inherit;
}
nav .top .left img{
  margin: 0 0 0 0;
}
/* Styling for the logo container */
nav .top .left .logo-link {
  display: flex;
  align-items: center; /* Aligns the icon and text vertically */
  text-decoration: none; /* Removes underline from link */
  font-size: 2em; /* Adjust font size of the text */
  color: #ffffff; /* White text color for better contrast on blue background */
}

/* Styling for the logo image */
nav .top .left .logo {
  width: 2em; /* Adjust the width as needed */
  height: auto; /* Keeps aspect ratio */
  margin-top: 7px;
  margin-right: -7px;
}

/* Ensuring the text aligns properly with the image */
nav .top .left .logo-link span {
  vertical-align: middle; /* Makes the text align with the image */
}

@keyframes rotate{
  from{
    transform: rotate(0deg);
  }
  to{
    transform: rotate(-359deg);
  }
}
nav .top .center{
  text-align: center;
  flex: 1;
}
nav .top .center form{
  margin-top: -2px;
  width: 100%;
}
nav .links{
  background-color: #60A5FA;
  background-color: var(--lighter-blue);
  padding: 3.5px 16px 5.5px 16px;
}
nav .links .icon{
  vertical-align: -0.41em;
}
nav .links,
footer .links{
  margin: 0;
  list-style: none;
}
footer .links{
  font-size: 0.875em;
  margin: 16px 0 5px 0;
  padding: 0;
  text-align: center;
}
nav .links li,
footer .links li{
  display: inline-block;
}
nav .links li.active a{
  font-weight: bold;
}
nav .links li:not(:last-child)::after,
footer .links li:not(:last-child)::after{
  content: " | ";
  color: black;
}
nav .links li{
  min-height: 1.4em;
}
nav .links a{
  text-decoration: none;
  color: white;
  text-shadow: 0 0 7px #095DC3; /*to improve the color contrast*/
  font-size: 0.98em;
  font-size: max(0.98em, 12px);
}
nav .links a:hover{
  text-decoration: underline;
  color: #040c5c;
}
main{
  background: white;
  color: black;
  padding: 6px 0px;
  font-size: 80%;
  padding: 1em 0 1em 0;
}
main .left,
main .right{
  padding: 10px;
}
footer{
  text-align: center;
  font-size: 70%;
  margin: 10px 0 10px;
  padding: 10px 5px;
  background: #e3e3e3;
}
footer img{
  display: inline-block;
  vertical-align: middle;
}
footer p{
  vertical-align: middle;
  margin: 10px 0 5px 0;
  font-size: 90%;
}

.friends .heading a.more{
  float: right;
  margin-top: 1px;
  font-size: 80%;
}

.profile h1{
  font-size: 1.5em;
  margin: 0 0 10px 0;
}
.general-about .profile-pic{
  display: block;
  float: left;
  margin: 0 15px 8px 0;
  height: 160px;
}
.general-about .profile-pic img{
  max-width: 160px;
  max-height: 160px;
}
.general-about .details{
  display: block;
}
.profile .mood{
  width: 100%;
  display: inline-block;
}
.profile .mood p{
  margin: 0 0 8px 0;
}
.profile .contact,
.profile .table-section{
  width: 100%;
  border: 2px solid #60A5FA;
  border: 2px solid var(--lighter-blue);
  margin: 10px 0;
}
.profile .contact .heading,
.profile .table-section .heading{
  background: #60A5FA;
  background: var(--lighter-blue);
  color: white;
  padding: 2px 7px;
}
.profile .contact .heading h4,
.profile .table-section .heading h4,
.profile .blurbs .heading h4,
.profile .friends .heading h4{
  margin: 0;
  display: inline-block;
}
.profile .contact .f-row{
  margin: 7px;
  font-weight: bold;
  font-size: 0.875em;
}
table.details-table{
  width: 100%;
  padding-bottom: 1em;
}
.details-table td:first-child{
  background: #BFDBFE;
  background: var(--even-lighter-blue);
  color: #1D4ED8;
  color: var(--logo-blue);
  font-weight: bold;
  width: 33%;
}
.details-table td{
  background: #DBEAFE;
  background: var(--lightest-blue);
  vertical-align: top;
}
.details-table td p{
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.details-table td *{
  max-width: 100%;
}
.profile .blurbs{
  margin: 20px 0;
}
.profile .blurbs .heading,
.profile .friends .heading{
  background: #f9c56c;
  background: var(--light-orange);
  color: #ED0707;
  color: var(--dark-orange);
  padding: 2px 7px;
}
.profile .blurbs .inner,
.profile .friends .inner{
  padding: 7px;
}
.profile .blurbs .section{
  margin-bottom: 14px;
}
.profile .blurbs .section h4{
  margin: 0;
  color: #ED0707;
  color: var(--dark-orange);
}
.profile .blurbs .section p,
.profile .friends p{
  margin: 0 0 8px 0;
}
.profile .friends .person{
  width: 105px;
  display: inline-block;
  padding: 0 10px 15px 0;
}
.profile .friends .person p{
  color: #666666;
  font-weight: bold;
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  font-size: 100%;
  text-align: center;
}
.profile .friends .person img:not(.icon){
  max-width: 95px;
  max-height: 95px;
  display: block;
  margin: 0 auto;
}
.count{
  color: #D32626;
}
.comment-replies{
  padding: 0 5px;
  border: 5px solid white;
}
.comment-reply{
  padding: 10px 5px;
}
.comment-reply:not(:first-child){
  border-top: 1px solid black;
}
.comment-reply p{
  margin: 0;
}
table.comments-table{
  width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.comments-table p{
  font-size: 100%;
}
.comments-table td:first-child{
  background: #f9c56c;
  background: var(--light-orange);
  text-align: center;
  font-weight: bold;
  width: 38%;
}
.comments-table td{
  background: #fcdbb8;
  background: var(--even-lighter-orange);
  vertical-align: top;
}
.comments-table td:first-child img:not(.icon){
  width: 90px;
  max-width: 100%;
  max-height: 200px;
}
.comments-table td *{
  max-width: 100%;
}
.comments-table .report{
  font-size: 0.7em;
  float: left;
  margin: 8px 5px !important;
}

.info{
  background: #FF0000;
  background: var(--red);
  color: white;
  padding: 8px 5px;
  margin: 10px 0;
}
.info{
  color: black;
  background: #DBEAFE;
  background: var(--lightest-blue);
  border: 1.5px solid #60A5FA;
  border: 1.5px solid var(--lighter-blue);
}

@keyframes bgscroll{
	0% { background-position: 0 center; }
	50% { background-position: -999px center; }
	100% { background-position: -0 center; }
}
.help .content,
.help .content p,
.help .content ul,
.help .content li{
  font-size: 1em;
}
.help .content{
  margin-bottom: 35px;
}
@keyframes saturate {
  0%, 100%  { filter: saturate(0); }
  50% { filter: saturate(5); }
}


.icon{
  display: inline-block;
  height: 1.4em;
  width: 1.4em;
  aspect-ratio: 1/1;
  margin: 0 0 0 1em;
  vertical-align: -0.3em;
  color: rgba(0,0,0,0);
}
.icon.verified{
  height: 0.9em;
  width: 0.9em;
  margin: 0 .02em 0 0;
  vertical-align: -0.06em;
  filter: drop-shadow(0px 0px 2px rgba(67,131,184,0.2));
}
.verified-info[data-reason]{
  cursor: pointer;
}


.f-row { width: 100%; display: table; table-layout: fixed; }
.f-col { display: table-cell; vertical-align: top; }

@keyframes animated-bg-gradient{
  0%{background-position:0% 11%}
  50%{background-position:100% 90%}
  100%{background-position:0% 11%}
}
@keyframes blink{
  0% { opacity: 1.0; }
  50% { opacity: 0.0; }
  100% { opacity: 1.0; }
}
.online{
  color: #0C8C00;
  font-weight: bold;
  font-size: 95%;
}
.online img{
  height: 1.5em;
  margin-right: 5px;
  animation-name: blink;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(1.0,0,0,1.0);
  animation-duration: 2s;
}


@media(min-width: 30em){ /* DESKTOP */
  .row { display: table; table-layout: fixed; }
  .col { display: table-cell; vertical-align: top; }
  .col.w-40{ width: 40%; }
}

@media(max-width: 30em){ /* MOBILE */
  nav .top{
    display: block;
  }
  nav .top .left{
    width: 100%;
    margin-bottom: 10px;
  }
  nav .top .right{
    position: absolute;
    top: 8px;
    right: 8px;
  }
  nav .top .center{
    width: 100%;
  }
  nav .top .center form{
    display: flex;
  }
  nav .top .center .search-wrapper{
    flex: 1;
  }
  nav .top .center .search-wrapper input{
    width: calc(100% - 10px);
    max-width: 100%;
  }
  nav .links{
    text-align: center;
    padding: 3.5px 3.5px 5.5px 3.5px;
  }

}


/* Styling the Weather Box */
.weather-comment {
  color: black;
  font-family: "Arial", sans-serif;
  padding: 10px;
  border-radius: 8px;
  /* border: 2px solid black; */
  width: 280px;
  margin: 10px auto;
  text-align: left;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.weather-comment strong {
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.weather-comment .temp {
  font-size: 16px;
  font-weight: bold;
  /*  color: #FFD700;  Gold color for contrast */
}

.weather-comment .condition {
  font-style: italic;
}

.weather-comment .city {
  font-weight: bold;
  text-decoration: underline;
}

.weather-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Styling the Horror Bot API */

.movie-comment {
  color: black;
  font-family: "Arial", sans-serif;
  padding: 12px;
  border-radius: 8px;
  /* border: 2px solid #7a0000; */
  width: 280px;
  margin: 15px auto;
  text-align: left;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.movie-comment strong {
  /* font-size: 16px; */
  /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); */
}

.movie-comment .movie-poster {
  width: 80px;
  height: 120px;
  border-radius: 4px;
  background: #fff;
  padding: 5px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Dictionary Bot Styling */
.word-comment {
  /*  background: linear-gradient(180deg, #FEE12B, #E0A800); /* Gold Dictionary Theme */
  /* color: #333; */
   font-family: "Arial", sans-serif;
   padding: 12px;
   border-radius: 8px;
  /* border: 2px solid #B38F00; */
  width: 280px;
  margin: 15px auto;
  text-align: left;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.word-comment strong {
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.word-comment .word {
  font-size: 18px;
  font-weight: bold;
  color: #B20000; /* Deep Red for Emphasis */
}

.word-comment em {
  font-style: italic;
  color: #555;
}

/* Search Results Page */
 .search-results {
   max-width: 600px;
   margin: 20px auto;
   padding: 20px;
   background: #f0f0f0;
   border: 1px solid #ccc;
   border-radius: 8px;
   font-family: Arial, sans-serif;
 }
.search-results h1 {
  text-align: center;
  color: #333;
}
.search-results ul {
  list-style: none;
  padding: 0;
}
.search-results li {
  margin-bottom: 10px;
}
.search-results a {
  color: #007BFF;
  text-decoration: none;
}
.search-results a:hover {
  text-decoration: underline;
}
.pager {
  text-align: center;
  margin-top: 20px;
}

/* Custom 404 Styling */
.container-404 {
  width: 90%;
  max-width: 600px;   /* Keep the layout manageable on large screens */
  margin: 40px auto;  /* Center the container horizontally */
  text-align: center; /* Center text inside the container */
  padding: 20px;
}

/* Adjust the silhouette image */
.container-404 img {
  width: 150px;       /* Increased from 120px for better visibility */
  height: auto;       /* Maintain aspect ratio */
  margin: 0 auto 20px;
  display: block;
}

.status-code {
  font-size: 72px;
  font-weight: bold;
  margin-bottom: 10px;
}

.message {
  font-size: 16px;
  margin-bottom: 20px;
}

.search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.search-form input[type="text"] {
  padding: 10px;
  border: 1px solid;
  outline: none;
  width: 100%;
  margin-right: 1em;
}

.search-form button {
  padding: 10px 20px;
  background: #1D4ED8;
  border: none;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.search-form button:hover {
  background: #1E40AF;
}

.home-link {
  display: inline-block;
  margin-top: 20px;
  color: #1D4ED8;
  text-decoration: none;
  font-weight: bold;
}

.home-link:hover {
  text-decoration: underline;
}

/* Center and style the Wikipedia Jam section */
#wiki-jam {
  text-align: left;
}

/* Container for the two buttons on one line */
.wiki-buttons {
  display: flex;
  justify-content: left;
  gap: 10px;
  margin-bottom: 10px;
}

/* Optionally style the buttons further */
#wiki-button,
#wiki-close {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#wiki-button {
  background-color: #1D4ED8;
  color: #fff;
}

#wiki-button:hover {
  background-color: #1E40AF;
}

#wiki-close {
  background-color: #ccc;
  color: #333;
}

#wiki-close:hover {
  background-color: #aaa;
}

/* Home page profile picture */
.general-about {
  display: flex;           /* Enables flex layout */
  align-items: center;     /* Vertically center items */
  gap: 20px;               /* Spacing between image & text */
}

/* The profile picture itself */
.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;       /* If you prefer to maintain aspect ratio */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* (Optional) Tweak the .details styling if needed */
.details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 480px) {
  .general-about {
    flex-direction: column;
    align-items: flex-start; /* or center */
  }
  .profile-picture {
    margin-bottom: 10px;
  }
}

/* gif-modal */
.gif-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.gif-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 45px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}