/**/  
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;            /* Reset for all browsers */
  padding: 0;           /* Reset for all browsers */
  overscroll-behavior: none; /* Prevent default overscroll */
  -ms-overflow-style: none;  /* Hide scrollbar: IE and Edge */
  scrollbar-width: none;     /* Hide scrollbar: Firefox */
  border: none;
  outline: none;
  /* outline: #4CAF50 solid 1px; */
}

:root { /* Samus */
  --blue: #1B3D8D;
  --red: #8D1B3D;
  --green: #3D8D1B;
  --white: #ffffff;
  --black: #343434;
  --gray: #ADADAD;
  --grayWhite: #F2F2F2;
  
  
  --fontColor: #000000ff;
  --inputBackgroundColor: #ffffff;
  --bodyBackgroundColor: #F2F2F2;
  --outlineColor: #1B3D8D;
  --logoColor: #1B3D8D; 
  --buyAmazonColor: #214CB0;
  --editColor: #1B3D8D;
  --submitColor: #1B3D8D; 
  --errorHandlers: #1B3D8D;
  --houseImage: url("interface/house-solid.svg");
  --envelopeImage: url("interface/envelope-solid.svg");
  --trophyImage: url("interface/trophy-solid.svg");
  --penImage: url("interface/pen-nib-solid.svg");
  --medalImage: url("interface/medal-solid.svg");
  --gearImage: url("interface/gear-solid.svg");
  --barsImage: url("interface/bars-solid.svg");
  --bracketImage: url("interface/right-to-bracket-solid.svg");
  --userImage: url("interface/user-solid.svg");
  --rounded:  #343434;
}

/* Dark mode variables */
[data-theme="dark"] {
  --fontColor: #EAEAEA;
  --inputBackgroundColor: #f6f7f8;       /* #D9C2DA; */
  --bodyBackgroundColor: #343434;
  --outlineColor: #7E1914;
  --logoColor: #EAEAEA; 
  --buyAmazonColor: #9F5A7F; 
  --editColor: #533C50; 
  --submitColor: #E9511A; 
  --errorHandlers: #6D0101ff;
  --houseImage: url("interface/house-solid-dark.png");
  --envelopeImage: url("interface/envelope-solid-dark.png");
  --trophyImage: url("interface/trophy-solid-dark.png");
  --penImage: url("interface/pen-nib-solid-dark.png");
  --medalImage: url("interface/medal-solid-dark.png");
  --gearImage: url("interface/gear-solid-dark.png");
  --barsImage: url("interface/bars-solid-dark.png");
  --bracketImage: url("interface/right-to-bracket-solid-dark.png");
  --userImage: url("interface/user-solid-dark.png");
  --rounded: #ffffff;
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('../fonts.woff2/NgutangDong-Rp5Yv.ttf') format('woff2'),
       url('../fonts.woff2/CamillaOne-3zKGZ.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

#hiName, #logoMobile, .userImageMobile, #topCriticsImageMobile, #editProfileMobile, #leftSidepanel,
#imageCoverTopBooksMobile, #imageCoverTopAuthorsMobile {
  display: none !important;
}

body {
  font-family: "Russo One", sans-serif;  /* Samus */
  font-size: 14px;
  line-height: 1.8em;
  letter-spacing: 0.04em; 
  cursor: context-menu;
  background-color: var(--bodyBackgroundColor);
  color: var(--fontColor);
}

.cookiesFont p {
  font-family: sans-serif;
}

.cookiesFont h1 {
  padding: 15px 10% 10px 25%;
  font-family: "Russo One", sans-serif;
}

img {
  display: block;
  margin: auto;
}

h1 {
  padding: 15px 10% 10px 25%;
  display: inline-block;
}
 
p, button, h3 {
  padding: 10px 10% 10px 25%;
}

a {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

input {
  color: #000000ff;
}

textarea {
  background-color: var(--inputBackgroundColor);
  padding: 10px;
  border-radius: 5px; 
  z-index: 2;
  cursor: pointer;
  font-family: sans-serif;
  color: #000000ff;
}

textarea:focus {
  outline: 0; /*Preserves Firefox using default blue outline*/
  outline: 3px solid var(--outlineColor);
}

/* Left Column Books.----------------------------------------------------------------------------------------------------------------------*/

#logo, #imageCover, #imageUser, #column1Score, #buyAmazon, #writeReview, #userName, #about, #textAbout, #quote {
  position: fixed;
  left: 4%;
  width: 17.5vw;
  text-align: center;
  z-index: 2;
}

#icon {
  height: 30px;
  width: 30px;
  background-color: var(--bodyBackgroundColor);
  z-index: 2;
  cursor: pointer;
}

.imageIconUser {
   /* use CSS variable for the background image */
  background-image: var(--userImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconBracket {
   /* use CSS variable for the background image */
  background-image: var(--bracketImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconHome {
   /* use CSS variable for the background image */
  background-image: var(--houseImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconTrophy {
   /* use CSS variable for the background image */
  background-image: var(--trophyImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconPen {
   /* use CSS variable for the background image */
  background-image: var(--penImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconMedal {
   /* use CSS variable for the background image */
  background-image: var(--medalImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconEnvelope {
   /* use CSS variable for the background image */
  background-image: var(--envelopeImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconGear {
   /* use CSS variable for the background image */
  background-image: var(--gearImage);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#menuIcon {
  display: none;
}

#logo {
  display: inline-block; /* Changed to inline-block to respect top and other properties */
  top: 5.5vh;
  font-size: 38px;
  letter-spacing: 0.07em; /* Adjusts spacing between characters */
  font-weight: 775; /* Smooth halfway between 700 and 800 */
  z-index: 2;
  cursor: pointer;
}

#logo a {
  color: var(--logoColor);
  text-decoration: none; /* Removes underline for a "logo look" */
}

#searchBar input[type=text] {
  position: fixed;
  z-index: 2;
  top: 14.5vh;
  width: 17.5vw;
  left: 4vw;
  background-color: var(--inputBackgroundColor);
  padding: 10px;
  border-radius: 5px; 
  font-family: sans-serif;
  cursor: pointer;
  color: #000000ff;
}

#searchBar input[type=text]:focus {
  outline: 0; /*Preserves Firefox using default blue outline*/
  outline: 3px solid var(--outlineColor);
}

#imageCover {
  top: 27.5vh;
}

#imageCover img {
  height: 194px; 
  outline: 3px solid var(--inputBackgroundColor);
}

#imageCoverMobile, .navBarMobile {
  display: none;
}

#column1Score { 
  top: 67vh;
  font-size: 14px;
  color: var(--bodyBackgroundColor);
}

#score1 {
  position: absolute;
  top: 10px;
  left: 7.3%;
  width: 11.7%;
  padding: 2px 2px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
}

#score2 {
  position: absolute;
  top: 8px;
  left: 20%;
  width: 14.5%;
  padding: 4px 3px;
  border-radius: 3px;
  cursor: pointer;
}

#score3 {
  position: relative;
  left: 35.4%; 
  width: 29%;
  padding: 12px 0px;
  font-size: 26px;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
}

#score4 {
  position: absolute;
  top: 8px;
  right: 20%;
  width: 14.5%;
  padding: 4px 3px;
  border-radius: 3px;
  cursor: pointer;
}

#score5 {
  position: absolute;
  top: 10px;
  right: 7%;
  width: 11.7%;
  padding: 2px 2px;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
}

#column1ScoreMobile, #score1Mobile, #score2Mobile, #score3Mobile, #score4Mobile, #score5Mobile, #leftSideanel {
  display: none;
}

#buyAmazon {
  top: 80%;
  border-radius: 25px; 
  padding: 4px 0px;
  background-color: var(--outlineColor);
  cursor: pointer;
  color: #EAEAEA;
}

#buyAmazonMobile {
  display: none;
}

#writeReview {
  top: 89.5%;
  border-radius: 5px;
  background-color: var(--buyAmazonColor);
  color:  #EAEAEA;
}

#writeReview button {
  width: 96%;
  padding: 4px 0px;
  cursor: pointer;
}

#writeReviewMobile, #writReviewMobile button {
  display: none;
}

/* Left Column Profile----------------------------------------------------------------------------------------------------------------------*/

#editProfile, .deleteReviews {
  position: absolute; /* or relative, depending on your context */
  right: 10%; /*Moves the element 5% from the right edge */
  border-radius: 5px;
  background-color: var(--editColor);
  color: #EAEAEA;
  padding: 4px 0px;
  text-align: center;
  font-family: "Russo One", sans-serif;
  margin-top: -3.9px;
}

#editProfile {
  width: 3.5vw;
}

.deleteReviews {
  width: 5.5vw;
}

#imageUser {
  top: 29.5vh;
}

#imageUser img {
                 height: 150px;
                 width: 150px;
                 border-radius: 50%; /* Use 50% for a perfect circle */
                 object-fit: cover; /* Prevents stretching */
                 display: block;
                 margin: auto;
                 outline: 3px solid var(--inputBackgroundColor);
}

#userName {
  top: 62%;
  font-weight: bold;
}

#textAbout {
  top: 61%;
  font-family: sans-serif;
}

#quote {
  top: 40%;
}

  #theme-toggle {
    cursor: pointer;
  }

#bookAndAuthorNameMobile {
  display: none;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  90% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    /* Uncomment the line below if you want to remove it from the layout entirely */
    /* display: none; */
  }
}

.errorHandlers {
  top: 1%;
  background-color: var(--editColor);
  color: var(--bodyBackgroundColor);
  animation: fadeOut 3s ease-in-out forwards;
}

.successHandlers {
  top: 1%;
  background-color: var(--editColor);
  color: var(--bodyBackgroundColor);
  animation: fadeOut 3s ease-in-out forwards;
}

.underConstruction {
  bottom: 1%;
  background-color: #E9511A;
  color: #EAEAEA;
}

.bugHandlers {
  top: 8.6%;
  background-color: var(--errorHandlers);
  color: var(--bodyBackgroundColor);
  animation: fadeOut 3s ease-in-out forwards;
}

.underConstruction, .errorHandlers, .successHandlers, .bugHandlers {
  font-family: "Russo One", sans-serif;  
  position: fixed;
  left: 0;          /* Add this to span full width */
  right: 0;         /* Add this to span full width */
  margin: 0 auto;   /* Changed to 0 auto for horizontal centering */
  text-align: center;
  z-index: 2;
  padding: 5px;
  border-radius: 5px; 
  word-spacing: 0.05em;
  width: fit-content;  /* Optional: Shrink-wraps to content width; or set e.g., max-width: 300px; */
}

/* Right Column. ------------------------------------------------------------------------------------------------------------------- */

#column3icon1, #column3icon2, #column3icon3, #column3icon4, #column3icon5, #column3icon6, #column3icon7 {
  position: fixed;
  right: 2%;
  padding: 18px;
  z-index: 2;
}

#column3icon2 {
  top: 2%;
  z-index: 2;
  transform: rotateY(180deg);
}

#column3icon6 {
  top: 16%;
}

#column3icon3 {
  top: 30%;
}

#column3icon4 {
  top: 44%;
}

#column3icon5 {
  top: 58%;
}

#column3icon7 {
  top: 72%;
}

#column3icon1 {
  top: 86%;
}

/* Modal. --------------------------------------------------------------------------------------------------------------------------- */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 3; /* Sit on top */
  padding-top: 0; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content, .modal-contentSign {
  background-color: var(--bodyBackgroundColor);
  margin: auto;
  padding-top: 10px;
  padding-bottom: 15px;
  width: 60%;
  border-radius: 5px; 
}

.modal-content p, .modal-contentSign p, .modal-content label, .modal-contentSign label {
  padding: 10px 10% 10px 10%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  gap: 20px 40px; /* row gap + column gap */
  margin: 20px 10%;
}

.form-grid label {
  text-align: left;      /* force labels to align left */
  padding: 0;            /* remove inherited padding */
  margin-bottom: 5px;    /* small space above input */
}

.form-grid input {
  text-align: left;      /* input text starts on left */
  padding: 8px;          /* consistent padding */
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input {
  margin-top: 5px;
  width: 100%;
}

input[type=text], input[type=password] {
  float: left;
  background-color: var(--inputBackgroundColor);
  padding: 10px;
  border-radius: 5px; 
  cursor: pointer;
  font-family: sans-serif;
}

input[type=text]:focus {
  outline: 0; /*Preserves Firefox using default blue outline*/
  outline: 3px solid var(--outlineColor);
}

textarea[type=text] {
  float: left;
  width: 100%;
  padding: 10px;
  border-radius: 5px; 
  z-index: 2;
}

textarea[type=text]:focus {
  outline: 0; /*Preserves Firefox using default blue outline*/
  outline: 3px solid var(--outlineColor);
}

  .form-group {
    margin: 1em 0;
  }
  
  .form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5em;
  }

  .form-group input {
    width: 50px;
    padding: 0.5em;
    border-radius: 5px;
  background-color: var(--inputBackgroundColor);
  }

  .form-group input:focus {
  outline: 0; /*Preserves Firefox using default blue outline*/
  outline: 3px solid var(--outlineColor);
  }

#submit {
  background-color: var(--submitColor);
  color: var(--white);
  float: right;
  padding: 10px;
  margin: 20px;
  border-radius: 5px; 
  cursor: pointer;
  word-spacing: 0.05em;
}

.right {
    float: right;
}

.left {
    float: left;
}

.rounded {
  width: 65.1%;
  margin-left: 25%;
  border-top: 1px solid var(--rounded);
  padding-top: 5px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.roundedMobile {
  display: none;
}

#topInfoPost {
  position: relative; /* Ensure the parent container supports absolute positioning */
}

#userPost {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  left: 0;   /* instead of right: 0 */
  text-align: left;
}

#genInfoPost {
    display: flex;
    align-items: center; /* Vertically centers content */
    gap: 10px; /* Optional: adds space between elements if needed */
    position: absolute;
    right: 0;
}

#bookScore {
  background-color: var(--provisionalBookScore);
  padding: 0.5vh 0.5vw;
  border-radius: 3px;
  color: var(--bodyBackgroundColor);
}

.homeScore, .scoreTopBooks {
  background-color: #5A5A00ff;
  padding: 0.2vh 0.2vw;
  border-radius: 3px;
  color: white;
  display: inline-block;   /* allow fixed width */
  width: 35px;             /* fixed width */
  text-align: center;      /* center the text inside */
}

#bottomInfoPost {
    position: relative; /* Ensures the container supports positioning */
}

#bottomInfoPostMobile {
  display: none;
}

.timesCreatedPost {
    float: right;
    font-size: 10px; /* Existing style preserved */
}

.timesCreatedPostMobile {
    float: right;
    font-size: 10px; /* Existing style preserved */
    padding: 10px 3% 10px 3%;
}

#bottomInfoPostMobile .row {
    position: relative; /* Ensures absolute positioning is relative to .row */
}

#bottomInfoPostMobile .row .aligned-score {
    position: absolute;
    left: 33%; /* Maintains "power", "fandom", "total" at 300px */
}

#bottomInfoPostMobile .row p:nth-child(2) {
    position: absolute;
    right: 0%;
}

.titlePost, .headerPost, .contentPost, .bestPost, .worstPost, .profileTitle, .profileContent, .editAbout, .editTitle, .editText, .userEmail, .searchContent, .bookContent {
  font-family: sans-serif;
}

.titlePost, .headerPost {
  text-align: center;
}

.titlePost {
  margin-top: 22px;
}

.editAbout textarea,
.editTitle textarea,
.editText textarea {
    width: 100%; 
}



/* Mobile (small widths) ----------------------------------------------------------------------------------------*/


@media (min-width: 100px) and (max-width: 1025px) and (orientation: portrait),
       (min-height: 50px) and (max-height: 500px) and (orientation: landscape)  {
  
.marginTopMobile {
  margin-top: 114px !important;
}

.marginTopUser {
  margin-top: 10px !important;
}

p {
  padding: 10px 3% 10px 3%;
}

#logo, #imageCover, #imageUser, #column1Score, #score1, #score2, #score3, #score4, #score5, 
#buyAmazon, #writeReview,s #userName, #about, #textAbout, #quote {
  display: none;
}

#column1ScoreMobile, #score1Mobile, #score2Mobile, #score3Mobile, #score4Mobile, #score5Mobile, 
#leftSidepanel {
  display: block;
}

#logoMobile {
    display: block !important;
  position: fixed;
  text-align: center;
  letter-spacing: 0.07em; /* Adjusts spacing between characters */
  font-weight: 775; /* Smooth halfway between 700 and 800 */
  font-size: 11px;
  font-family: 'MyCustomFont', sans-serif;
  top: 1.5%;
  left: 3px;
  width: 30%;
  height: 30px;
  padding: 3px 0px;
  text-decoration: none; /* remove underline */
  color: inherit; /* keep text color consistent */
}

#searchBar input[type=text] {
  position: fixed;
  top: 1.5%;
  left: 0;
  right: 0;
  width: 38%;
  margin: 0 auto;
  padding: 3px 0px 3px 14px;
}

#hiName {
  display: block !important;
  position: fixed;
  text-align: center;
  top: 1.5%;
  right: 0px;
  width: 30%;
  height: 30px;
  padding: 3px 3% 3px 4px;
  text-decoration: none; /* removes underline */
  color: inherit; /* keeps your theme color */
  cursor: pointer; /* shows hand icon on hover */
}

.navigationBarMobile {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0; /* stays at the very top */
    width: 100%;
    background-color: var(--bodyBackgroundColor);
    padding: 56px 0 4px 0; /* 80px top padding moves icons down */
    z-index: 1;
    border-bottom: 1px solid var(--rounded);
}

.navigationBarMobile a span {
    display: inline-block;
    width: 24px;
    height: 24px;
    /* Replace with your icon styling or background images */
    background-size: contain;
    background-repeat: no-repeat;
}

#houseIconMobile { background-image: var(--houseImage); }
#envelopeIconMobile { background-image: var(--envelopeImage); }
#trophyIconMobile { background-image: var(--trophyImage); }
#penNibMobile { background-image: var(--penImage); }
#medalMobile { background-image: var(--medalImage); }
#gearMobile { background-image: var(--gearImage); }
#userMobile { background-image: var(--userImage); }
#bracketMobile { background-image:  var(--bracketImage); }

#imageCoverMobile {
  display: block;        /* inline may collapse vertical margin */
  margin-top: 10px !important;
  margin-bottom: 20px !important;
  text-align: center;    /* optional: to center image */
}

#column1ScoreMobile {
  display: flex;
  justify-content: center;  /* centers the whole row */
  align-items: center;      /* vertical alignment */
  gap: 3px;                 /* optional: spacing between scores */
  font-size: 22px;
  color: var(--bodyBackgroundColor);
  margin-bottom: 16px;
}

#score1Mobile {
  width: 10%;
  padding: 4px 0px;
  text-align: center;
  font-size: 16px;
  border-radius: 3px;
}

#score2Mobile {
  width: 13%;
  padding: 9px 0px;
  text-align: center;
  border-radius: 3px;
}

#score3Mobile {
  width: 22%;
  padding: 18px 0px;
  font-size: 36px;
  text-align: center;
  border-radius: 3px;
}

#score4Mobile {
  width: 13%;
  padding: 9px 0px;
  text-align: center;
  border-radius: 3px;
} 

#score5Mobile {
  width: 10%;
  padding: 4px 0px;
  font-size: 16px;
  border-radius: 3px;
  text-align: center;
}

#buyAmazonMobile {
  display: block;  
  border-radius: 25px; 
  padding: 4px 0px;
  background-color: var(--outlineColor);
  left: 0;
  right: 0;
  width: 52%;
  margin: 0 auto;
  text-align: center;
  color: #EAEAEA;
}

.bookScore {
  display: inline-block;
  width: 40px !important; /* Force the width */
  min-width: 40px; /* Prevent shrinking */
  text-align: center;
  padding: 3px 0px;
  color: var(--grayWhite);
  border-radius: 3px;
  box-sizing: border-box;
  flex-shrink: 0; /* Prevent flex shrinking */
}

.rounded {
  display: none;
}

.roundedMobile {
  display: block;
  width: 94%;
  left: 0;
  right: 0;
  margin: 0 auto;
  border-top: 1px solid var(--rounded);
  padding-top: 3px;
  margin-top: 15px;
  margin-bottom: 15px;
}

#bottomInfoPost {
  display: none;
}

#bottomInfoPostMobile {
  display: flex;
  flex-direction: column;
  gap: 6px; /* space between rows */
}

#bottomInfoPostMobile .row {
  display: flex;
  justify-content: space-between; /* or flex-start if you want them tight */
  gap: 12px; /* space between items in row */
}

#bottomInfoPostMobile p {
  margin: 0;
}

#bookAndAuthor {
  display: none;
}

#bookAndAuthorNameMobile {
  display: block;
}

#column3icon1, #column3icon2, #column3icon3, #column3icon4, #column3icon5, #column3icon6, #column3icon7 {
  position: absolute;
  display: none!important;
}

.userImage {
  display: none;
}

.userImageMobile {
  display: block !important;
  margin-top: 78px;
}

#imageCoverTopBooksLaptop, #imageCoverTopAuthorsLaptop, #topCriticsImageLaptop, #editProfile, #writeReview {
  display: none !important;
}

#imageCoverTopBooksMobile, #imageCoverTopAuthorsMobile, #topCriticsImageMobile, #editProfileMobile, #signUpLoginMobile, #leftSidepanel {
  display: block !important;
}

#imageCoverTopBooksMobile img {
  height: 164px;
  margin-bottom: 15px;
  outline: 3px solid var(--inputBackgroundColor);
}

#writeReviewMobile {
  display: block;
  width: 52%;
  margin: 16px auto 0px auto;
  text-align: center;
  border-radius: 5px;
  background-color: var(--buyAmazonColor);
  top: 89.5%;
  color: #EAEAEA;
}

#writeReviewMobile button {
  width: 96%;
  padding: 4px 0px;
  cursor: pointer;
}

#editProfileMobile, .deleteReviews {
  position: absolute; /* or relative, depending on your context */
  right: 3%; /*Moves the element 5% from the right edge */
  border-radius: 5px;
  background-color: var(--editColor);
  color: var(--bodyBackgroundColor);
  padding: 4px 0px;
  text-align: center;
  font-family: "Russo One", sans-serif;
  margin-top: -3.9px;
}

#editProfileMobile {
  width: 16%;
}

.deleteReviews {
  width: 22%;
}

.editAbout textarea {
  height: 10em;  /* about 6 lines */
}

.editTitle textarea {
  height: 6em;  
}

.editText textarea {
  height: 20em;  
}

#signUpLoginMobile {
  margin: 0 auto; /* Centers horizontally */
  width: fit-content; /* Ensures the element's width is based on content */
}


.errorHandlers,
.successHandlers,
.underConstruction,
.bugHandlers {
  position: fixed;
  font-size: 14px;
  margin-top: 11%;
  color: white;
}

/* Sidebar panel ------------------------------------------------------------------------------------*/
.sidepanel {
  height: 100%;
  width: 0;
  position: fixed;
  top: 73px;
  right: 0; /* instead of right: 0 */
  background-color: var(--bodyBackgroundColor);
  overflow-x: hidden;
  padding-top: 200px;
  z-index: 9999 !important;
}

/* The sidepanel links */
.sidepanel a {
  padding: 8px 8px 8px 32px;
  font-size: 25px;
  color: #818181;
  display: block;
}

/* Position and style the close button (top right corner) */
.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#iconMobile {
  opacity: 0; /* hidden by default */
  pointer-events: none; /* prevent clicks when hidden */
}

.leftSidepanelClass {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;                        /* start collapsed */
  background-color: #EAEAEA;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 30px 3% 10px 3%;
  
  opacity: 0;                      /* fully invisible */
  pointer-events: none;            /* unclickable when closed */
}

.leftSidepanelClass.open {
  width: 100%;         /* expand full width */
  opacity: 1;          /* fade in */
  pointer-events: auto; /* clickable again */
}

.closebtnLeft {
  position: absolute;
  top: 4.6%;
  right: 6.6%;
  font-size: 70px;
}

#leftSidepanel button[type="submit"] {
  position: relative;
  left: 12px;   /* move right */
  top: -92px;   /* move up */
}

.cookiesFont h1 {
  padding: 10px 3% 10px 3%;
}

}



/* Password strength meter styles */
        .strength-meter {
    margin-top: 5px;
    height: 10px;
    background: #e1e5e9;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #1b3d8d;
}

        .strength-fill {
            height: 100%;
            width: 0%;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .strength-weak { background: #dc3545; }
        .strength-fair { background: #ffc107; }
        .strength-good { background: #17a2b8; }
        .strength-strong { background: #28a745; }

        .strength-text {
            font-size: 16px;
            margin-top: 3px;
            text-align: right;
            font-weight: 500;
        }

        /* Optional: Style for password input focus */
        input[type="password"]:focus {
            outline: none;
            border-color: #667eea;
        }
        form.toremovefloat input {
    float: unset;
}
.metercontainer {
    padding: 10px 10% 10px 25%;
    width: 50%;
}