/**/
*,
*::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;
  -webkit-tap-highlight-color: transparent;
  /*outline: #4CAF50 solid 1px;*/
}

:root { /* Samus */
  --fontColor: #F2F2F2;
  --outlineColor: #1B768D;
  --outlineAvatarColor: #343434;
  --turqueoisse: #1B768D;
  --inputBackgroundColor: #F2F2F2; /* #D9C2DA; */
  --inputBackgroundColorText: #343434;
  --bodyBackgroundColor: #181818;
  --topNavBackgroundColor: #262626;
  --buyAmazonColor: #1B768D;
  --yellowOrange: #ffba00;
  --rounded: #525252;
  --textIcons: #1B768D;

  --houseImage: url("interface/house-solid-dark.png");
  --envelopeImage: url("interface/envelope-solid-dark.png");
  --penImage: url("interface/pen-nib-solid-dark.png");
  --trophyImage: url("interface/trophy-gold.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");
}

/* Dark mode variables */
[data-theme="light"] {
  --darkBlue: #321B8D;
  --blue: #1B3D8D;
  --turqueoisse: #1B768D;
  --red: #8D1B3D;
  --green: #3D8D1B;
  --yellowOrange: #ffba00; /* Beautiful combo */
  --blueSea: #11314f;      /* Beautiful combo */
  --white: #ffffff;
  --grayWhite: #F2F2F2;
  --gray: #ADADAD;
  --black: #343434;
  --textIcons: #1B768D;
  
  --fontColor: #343434;
  --outlineColor: #343434;
  --outlineAvatarColor: #f6f7f8;
  --inputBackgroundColor: #ffffff;
  --inputBackgroundColorText: #343434;
  --bodyBackgroundColor: #DBDBDB;
  --topNavBackgroundColor: #cbcac8;
  --buyAmazonColor: #1B768D;
  --rounded: #525252;

  --houseImage: url("interface/house-solid.svg");
  --envelopeImage: url("interface/envelope-solid.svg");
  --penImage: url("interface/pen-nib-solid.svg");
  --trophyImage: url("interface/trophy-gold.png");
  --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");
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('../fonts.woff2/AceNovaBrush-E4qL4.ttf') format('woff2'),
       url('../fonts.woff2/CamillaOne-3zKGZ.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

#hiName,
#logoMobile,
#logoMobileWide,
.userImageMobile,
#topCriticsImageMobile,
#editProfileMobile,
#leftSidepanel,
#imageCoverTopBooksMobile,
#imageCoverTopAuthorsMobile,
#bookAndAuthorNameMobile,
.navigationBarMobile,
.navigationBarWide,
#byContinuingMobile {
  display: none !important;
}

body {
  font-family: "Russo One", sans-serif; /* Samus */
  font-size: 16px;
  line-height: 1.8em;
  letter-spacing: 0.02em;
  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;
  cursor: pointer;
}

input {
  width: 180px;
  background-color: var(--inputBackgroundColor);
  color: var(--inputBackgroundColorText);
}

input[name="uid"] {
  text-transform: capitalize;
}

textarea {
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  z-index: 2;
  cursor: pointer;
  font-family: sans-serif;
  background-color: var(--inputBackgroundColor);
  color:  var(--inputBackgroundColorText);
}

textarea:focus, input:focus {
  outline: 0; /* Preserves Firefox using default blue outline */
  outline: 3px solid var(--turqueoisse);
}

/* Left Column Books. ------------------------------------------------------------------------------------------------------ */

#logo,
#imageCover,
#imageUser,
#column1Score,
#buyAmazon,
#writeReview,
#userName,
#about,
#textAbout,
#quote, 
#whatScores {
  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, 
.imageIconBracket, 
.imageIconHome,
.imageIconTrophy,
.imageIconPen,
.imageIconMedal,
.imageIconEnvelope,
.imageIconGear {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.imageIconUser     { background-image: var(--userImage); }
.imageIconBracket  { background-image: var(--bracketImage); }
.imageIconHome     { background-image: var(--houseImage); }
.imageIconTrophy   { background-image: var(--trophyImage); }
.imageIconPen      { background-image: var(--penImage); }
.imageIconMedal    { background-image: var(--medalImage); }
.imageIconEnvelope { background-image: var(--envelopeImage); }
.imageIconGear     { background-image: var(--gearImage); }

.imageIconEnvelope.active {
    background-image: url("interface/envelope-blue.png");
}

.imageIconHome.active {
    background-image: url("interface/house-blue.png");
}

.imageIconPen.active {
    background-image: url("interface/pen-nib-blue.png");
}

.imageIconTrophy.active {
    background-image: url("interface/trophy-blue.png");
}

.imageIconMedal.active {
    background-image: url("interface/medal-blue.png");
}

.imageIconGear.active {
    background-image: url("interface/gear-blue.png");
}

.imageIconUser.active {
    background-image: url("interface/user-blue.png");
}

.imageIconBracket.active {
    background-image: url("interface/right-to-bracket-blue.png");
}

#logo {
  display: inline-block; /* Changed to inline-block to respect top and other properties */
  top: 5vh;
  font-size: 39px;
  letter-spacing: 0.07em; /* Adjusts spacing between characters */
  z-index: 2;
  cursor: pointer;
}

#searchBar input[type=text] {
  position: fixed;
  z-index: 2;
  top: 14vh;
  width: 17.5vw;
  left: 4vw;
  padding: 10px;
  border-radius: 5px;
  font-family: sans-serif;
  cursor: pointer;
  background-color: var(--inputBackgroundColor);
  color: var(--inputBackgroundColorText);
}

#searchBar input[type=text]:focus {
  outline: 0; /* Preserves Firefox using default blue outline */
  outline: 3px solid var(--turqueoisse);
}

#imageCover {
  top: 26vh;
}

#imageCover img {
  height: 194px;
  outline: 2px solid var(--outlineAvatarColor);
}

#imageCoverMobile,
.navBarMobile {
  display: none;
}

#column1Score {
  top: 67.2vh;
  font-size: 14px;
  color: var(--bodyBackgroundColor);
}

/* Shared style for all score boxes */
#score1, #score2, #score3, #score4, #score5 {
  border-radius: 3px;
  cursor: pointer;
}

/* Individual box adjustments */
#score1 {
  position: absolute;
  top: 12px;
  left: 7.3%;
  width: 11.7%;
  padding: 0px 2px;
  font-size: 12px;
}

#score2 {
  position: absolute;
  top: 8px;
  left: 20%;
  width: 14.5%;
  padding: 4px 3px;
}

#score3 {
  position: relative;
  left: 35.4%;
  width: 29%;
  padding: 12px 0px;
  font-size: 26px;
  text-align: center;
}

#score4 {
  position: absolute;
  top: 8px;
  right: 20%;
  width: 14.5%;
  padding: 4px 3px;
}

#score5 {
  position: absolute;
  top: 12px;
  right: 7%;
  width: 11.7%;
  padding: 0px 2px;
  font-size: 12px;
}

#column1ScoreMobile,
#score1Mobile,
#score2Mobile,
#score3Mobile,
#score4Mobile,
#score5Mobile,
#leftSideanel {
  display: none;
}

#buyAmazon {
  top: 80%;
  border-radius: 25px;
  padding: 4px 0px;
  cursor: pointer;
  background-color: var(--topNavBackgroundColor);
  color: var(--fontColor);
  outline: 2px solid var(--outlineAvatarColor);
}

#buyAmazonMobile {
  display: none;
}

#writeReview {
  top: 89.5%;
  border-radius: 5px;
  background-color: var(--topNavBackgroundColor);
  color: var(--fontColor);
  outline: 2px solid var(--outlineAvatarColor);
}

#writeReview button {
  width: 96%;
  padding: 4px 0px;
  cursor: pointer;
}

#writeReviewMobile,
#writReviewMobile button {
  display: none;
}

#forgotParagraph a, #byContinuing a {
  display: inline;   /* make sure it's inline, not block */
}

#byContinuing a, #byContinuingMobile a {
  color: #1B768D;
}

/* Left Column Profile -------------------------------------------------------------------------------------------------------- */

#imageUser {
  top: 27vh;
}

#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(--outlineAvatarColor);
}

#textAbout {
  top: 59%;
  font-family: sans-serif;
  font-size: 14px;
  line-height: 1.7em;
}

#quote {
  top: 60%;
  font-family: sans-serif;
}

#whatScores {
  top: 89.5%;
  line-height: 1.7em;
  font-size: 8px;
}

@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,
.successHandlers {
  top: 2%;
  background-color: var(--buyAmazonColor);
  color: var(--bodyBackgroundColor);
  animation: fadeOut 3s ease-in-out forwards;
}

.bugHandlers {
  top: 8.6%;
  background-color: var(--buyAmazonColor);
  color: var(--bodyBackgroundColor);
  animation: fadeOut 3s ease-in-out forwards;
}

.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 4px;
  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;
}

#column3icon6 {
  transform: rotateY(180deg);
}

#column3icon6 { top: 2%; }
#column3icon2 { top: 16%; }
#column3icon4 { top: 30%; }
#column3icon3 { top: 44%; }
#column3icon5 { top: 58%; }
#column3icon7 { top: 72%; }
#column3icon1 { top: 86%; }

.marginTopLaptop {
  display: block;
}

#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(--buyAmazonColor);
  color: var(--bodyBackgroundColor);
  padding: 4px 0px;
  text-align: center;
  font-family: "Russo One", sans-serif;
  margin-top: -3.9px;
}

#editProfile {
  width: 3.5vw;
}

.deleteReviews {
  width: 5.5vw;
}

/* Modal ------------------------------------------------------------------------------------------------------- */
.modal {
  display: none;              /* Hidden by default */
  position: fixed;            /* Stay in place */
  left: 0;
  top: 0;
  width: 100%;                /* Full width */
  height: 100%;               /* Full height */
  padding-top: 0;             /* Location of the box */
  overflow: auto;             /* Enable scroll if needed */
  z-index: 3;                 /* Sit on top */
  background-color: rgb(0,0,0);     /* Fallback color */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

.modal-content,
.modal-contentSign {
  margin: auto;
  width: 60%;
  padding-top: 10px;
  padding-bottom: 15px;
  border-radius: 5px;
  background-color: var(--bodyBackgroundColor);
}

.modal-content p,
.modal-contentSign p,
.modal-content label,
.modal-contentSign label {
  padding: 10px 10% 10px 10%;
}

/* Forms ------------------------------------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns */
  gap: 20px 40px;                /* row gap + column gap */
  margin: 20px 10%;
}

.form-grid label {
  margin-bottom: 5px;
  padding: 0;
  text-align: left;
}

.form-grid input {
  padding: 8px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin: 1em 0;
}

.form-group label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}

.form-group input {
  margin-top: 5px;
  width: 20%;
  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);
}

input[type=text],
input[type=password] {
  float: left;
  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(--turqueoisse);
}

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(--turqueoisse);
}

#submit {
  float: right;
  margin: 20px;
  padding: 10px;
  border-radius: 5px;
  background-color: var(--buyAmazonColor);
  color: var(--bodyBackgroundColor);
  cursor: pointer;
  word-spacing: 0.05em;
}

/* Helpers ---------------------------------------------------------------------------------------------------- */
.right { float: right; }
.left { float: left; }

.rounded {
  width: 65.1%;
  margin-left: 25%;
  margin-top: 15px;
  margin-bottom: 10px;
  padding-top: 5px;
  border-top: 2px solid var(--outlineAvatarColor);
}

.roundedMobile {
  display: none;
}

#theme-toggle {
  cursor: pointer;
}

/* Posts ------------------------------------------------------------------------------------------------------- */
#topInfoPost {
  position: relative; /* Ensure parent supports absolute positioning */
}

#userPost {
  display: flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  letter-spacing: 0.02em;
}

#genInfoPost {
  display: flex;
  align-items: center; /* Vertically centers content */
  gap: 7px;
  position: absolute;
  right: 0;
  letter-spacing: 0.02em;
}

#bottomInfoPost {
  position: relative; /* Ensures container supports positioning */
}

#bottomInfoPostMobile {
  display: none;
}

  .bookScore {
    display: inline-block;
    width: 32px !important;
    min-width: 32px;
    padding: -8px -4px 0px -4px;
    font-size: 16px;
    text-align: center;
    border-radius: 3px;
    box-sizing: border-box;
    color: var(--bodyBackgroundColor);
    flex-shrink: 0;
  }

.timesCreatedPost,
.timesCreatedPostMobile {
  float: right;
  font-size: 10px;
  letter-spacing: 0.07em;
}

.timesCreatedPostMobile {
  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,
.profileContent,
.editAbout,
.editTitle,
.editText,
.userEmail,
.searchContent,
.bookContent {
  font-family: sans-serif;
}

.titlePost,
.headerPost {
  text-align: center;
}

.titlePost {
  margin-top: -28px;
  font-weight: bold;
  font-size: 16px;
}

.editAbout textarea { height: 10em; }
.editTitle textarea { height: 6em; }
.editText textarea { height: 20em; }

/* Mobile ------------------------------------------------------------------------------------------------------ */
@media (min-width: 100px) and (max-width: 1025px) and (orientation: portrait),
       (min-height: 50px) and (max-height: 500px) and (orientation: landscape) {
           
  body {
      font-size: 14px;
  }

  .marginTopMobile { margin-top: 114px !important; }

  p { padding: 10px 3% 10px 3%; }

  #logo,
  #logoMobileWide,
  #imageCover,
  #imageUser,
  #column1Score,
  #score1,
  #score2,
  #score3,
  #score4,
  #score5,
  #buyAmazon,
  #writeReview,
  #userName,
  #about,
  #textAbout,
  #quote,
  #whatScores,
  .marginTopLaptop,
  #column3icon1,
  #column3icon2,
  #column3icon3,
  #column3icon4,
  #column3icon5,
  #column3icon6,
  #column3icon7,
  .userImage,
  #imageCoverTopBooksLaptop,
  #imageCoverTopAuthorsLaptop,
  #topCriticsImageLaptop,
  #editProfile,
  #writeReview,
  #bookAndAuthor,
  #bottomInfoPost, 
  #byContinuing {
    display: none !important;
  }

  #column1ScoreMobile,
  #score1Mobile,
  #score2Mobile,
  #score3Mobile,
  #score4Mobile,
  #score5Mobile,
  #leftSidepanel {
    display: block;
  }

  #logoMobile {
    display: block !important;
    position: fixed;
    top: 1.8%;
    left: 0px;
    width: 36%;
    height: 27px;
    padding: 4px 0;
    text-align: center;
    font-size: 31px;
    font-family: 'MyCustomFont';
    letter-spacing: 0.07em;
    text-decoration: none; /* remove underline */
    color: inherit;        /* keep text color consistent */
  }

  #searchBar input[type=text] {
    position: fixed;
    top: 1.6%;
    left: 0;
    right: 0;
    width: 28%;
    margin: 0 auto;
    text-align: center;
    padding: 1.5px 0px 1.5px 0px;
  }

  #hiName {
    display: block !important;
    position: fixed;
    top: 1.6%;
    right: 0;
    width: 36%;
    height: 30px;
    padding: 3px 3% 3px 4px;
    text-align: center;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    font-weight: bold; /* optional */
  }
  
  #hiName.active {
    color: var(--buyAmazonColor);
  }

  .navigationBarMobile {
    display: flex!important;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 62px 0 4px 0; /* moves icons down */
    background-color: var(--topNavBackgroundColor);
    border-bottom: 2px solid var(--outlineAvatarColor);
    z-index: 1;
  }

  .navigationBarMobile a span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  .navigationBarMobile.book-active a {
    padding-bottom: -10px!important;
}

  #envelopeIconMobile{ background-image: var(--envelopeImage); }
  #houseIconMobile   { background-image: var(--houseImage); }
  #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;
    margin-top: 12px !important;
    margin-bottom: 28px !important;
    text-align: center;
  }

  #column1ScoreMobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    color: var(--bodyBackgroundColor);
    margin-bottom: 25px;
  }

  #score1Mobile,
  #score2Mobile,
  #score3Mobile,
  #score4Mobile,
  #score5Mobile {
    text-align: center;
    border-radius: 3px;
  }

  #score1Mobile { width: 8%; padding: 2px 0; font-size: 16px; }
  #score2Mobile { width: 11%; padding: 7px 0; }
  #score3Mobile { width: 18%; padding: 16px 0; font-size: 36px; }
  #score4Mobile { width: 11%; padding: 7px 0; }
  #score5Mobile { width: 8%; padding: 2px 0; font-size: 16px; }

  #buyAmazonMobile {
    display: block;
    width: 52%;
    margin: 0px auto 22px auto;
    padding: 6px 0;
    text-align: center;
    border-radius: 25px;
  background-color: var(--topNavBackgroundColor);
  color: var(--fontColor);
  outline: 2px solid var(--outlineAvatarColor);
  }

  #writeReviewMobile {
    display: block;
    width: 52%;
    margin: 16px auto 10px;
    padding: 0;
    text-align: center;
    border-radius: 5px;
  background-color: var(--topNavBackgroundColor);
  color: var(--fontColor);
  outline: 2px solid var(--outlineAvatarColor);
  }

  #writeReviewMobile button {
    width: 100%;
    padding: 6px 0;
    cursor: pointer;
  }
  
  
  #byContinuingMobile {
      display: block!important;
      padding-left: 3%;
  }

  .rounded { display: none; }

  .roundedMobile {
    display: block;
    width: 88%;
    margin: 10px auto;
    border-top: 2px solid var(--outlineAvatarColor);
  }

  #bottomInfoPostMobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  #bottomInfoPostMobile .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  #bottomInfoPostMobile p { margin: 0; }

  #bookAndAuthorNameMobile { display: block; }

  .userImageMobile {
    display: block !important;
    margin: 130px 0px 24px 0px;
  }

  #imageCoverTopBooksMobile,
  #imageCoverTopAuthorsMobile,
  #topCriticsImageMobile,
  #editProfileMobile,
  #signUpLoginMobile,
  #leftSidepanel,
  #bookAndAuthorNameMobile {
    display: block !important;
  }

  #imageCoverTopBooksMobile img {
    height: 394px;
    margin: 15px auto;
    outline: 2px solid var(--outlineAvatarColor);
  }

  #editProfileMobile,
  .deleteReviews {
    position: absolute;
    right: 3%;
    margin-top: -3.9px;
    padding: 4px 0;
    text-align: center;
    border-radius: 5px;
    background-color: var(--buyAmazonColor);
    color: var(--bodyBackgroundColor);
    font-family: "Russo One", sans-serif;
  }

  #editProfileMobile { width: 16%; }
  .deleteReviews { width: 22%; }

  #signUpLoginMobile {
    margin: 0 auto;
    width: fit-content;
  }

  .errorHandlers,
  .successHandlers,
  .bugHandlers {
    position: fixed;
    margin-top: 9.5%;
    font-size: 16px;
    color: var(--bodyBackgroundColor);
  }

  /* Sidebar panel -------------------------------------------------------------------------------- */

  .sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    margin-left: 50px;
    font-size: 36px;
  }

  .leftSidepanelClass {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;             /* start collapsed */
    height: 100%;
    padding: 30px 3% 10px 3%;
    background-color: var(--bodyBackgroundColor);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 3;
    opacity: 0;           /* invisible */
    pointer-events: none; /* unclickable */
  }

  .leftSidepanelClass.open {
    width: 100%;          /* expand full width */
    opacity: 1;           /* fade in */
    pointer-events: auto; /* clickable */
  }

  .closebtnLeft {
    position: absolute;
    top: 4.6%;
    right: 6.6%;
    font-size: 70px;
  }

  #leftSidepanel button[type="submit"] {
    position: relative;
    left: 12px;
    top: -92px;
  }

  .cookiesFont h1 {
    padding: 10px 3% 10px 3%;
  }
}

/* Wide screen ------------------------------------------------------------------------------------------------------ */
@media (min-width: 1600px) {

  .marginTopMobile { margin-top: 78px !important; }

body {
  position: relative;
  width: 1600px;
  margin: 0 auto;
  padding: 10px 3%;
  box-sizing: border-box;
}

 p {
    padding: 10px 3% 10px 3%;
}

  #logo,
  #hiName,
  #imageCover,
  #imageUser,
  #column1Score,
  #score1,
  #score2,
  #score3,
  #score4,
  #score5,
  #buyAmazon,
  #writeReview,
  #userName,
  #about,
  #textAbout,
  #quote,
  #whatScores,
  .marginTopLaptop,
  #column3icon1,
  #column3icon2,
  #column3icon3,
  #column3icon4,
  #column3icon5,
  #column3icon6,
  #column3icon7,
  .userImage,
  #imageCoverTopBooksLaptop,
  #imageCoverTopAuthorsLaptop,
  #topCriticsImageLaptop,
  #editProfile,
  #writeReview,
  #bookAndAuthor,
  #bottomInfoPostMobile,
  .navigationBarMobile,
  .rounded {
    display: none !important;
  }

  #column1ScoreMobile,
  #score1Mobile,
  #score2Mobile,
  #score3Mobile,
  #score4Mobile,
  #score5Mobile,
  #leftSidepanel,
  #bottomInfoPost,
  #bookAndAuthorNameMobile {
    display: block;
  }

  #logoMobileWide {
    display: block !important;
    position: fixed;
    top: 0%;
    left: 0%;
    width: 22%;
    height: 71.5px;
    padding: 24px 36% 0px 5%;
    background-color: var(--topNavBackgroundColor);
    border-bottom: 2px solid var(--outlineAvatarColor);
    text-align: center;
    font-size: 42px;
    font-family: 'MyCustomFont';
    letter-spacing: 0.07em;
    text-decoration: none; /* remove underline */
    color: inherit;        /* keep text color consistent */
    z-index: -1;
  }

  #searchBar input[type=text] {
    position: fixed;
    top: 0%;
    left: 22%;
    width: 17%;
    height: 46px;
    padding: 4px 0px 4px 12px;
    margin-top: 12px;
  }

  .navigationBarWide { 
    display: flex!important;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    background-color: var(--topNavBackgroundColor);
    border-bottom: 2px solid var(--outlineAvatarColor);
    top: 0;
    right: 0%;
    width: 61%;
    padding: 14px 20px 4px 26px; /* moves icons down */
    z-index: 1;
  }

.navigationBarWide a {
  display: flex;
  flex-direction: column;   /* icon above text */
  align-items: center;      /* center horizontally */
  justify-content: center;  /* center vertically */
  text-decoration: none;
  color: inherit;
  font-size: 12px;
  height: 100%;             /* ensures vertical centering */
}

.navigationBarWide a span {
  display: flex;            /* flex makes icon behave consistently */
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
}

.navigationBarWide a .navLabel {
  margin-top: 4px;
  text-align: center;
  white-space: nowrap; 
}

.navLabel.active-text {
  color: var(--textIcons); /* or any color you want */
}

  #envelopeIconWide  { background-image: var(--envelopeImage); }
  #houseIconMobile   { background-image: var(--houseImage); }
  #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 {
    position: relative;
    right: 530px;
    top: -35px;
    display: block;
    margin-top: 12px !important;
    margin-bottom: 28px !important;
  }
  
  #imageCoverMobile img {
  height: 244px!important;
  }

  #column1ScoreMobile {
    position: relative;
    right: 530px;
    top: -35px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    color: var(--bodyBackgroundColor);
    margin-bottom: 25px;
  }

  #score1Mobile,
  #score2Mobile,
  #score3Mobile,
  #score4Mobile,
  #score5Mobile {
    text-align: center;
    border-radius: 3px;
  }

  #score1Mobile { width: 40px; padding: 2px 0; font-size: 16px; }
  #score2Mobile { width: 55px; padding: 7px 0; }
  #score3Mobile { width: 85px; padding: 16px 0; font-size: 36px; }
  #score4Mobile { width: 55px; padding: 7px 0; }
  #score5Mobile { width: 40px; padding: 2px 0; font-size: 16px; }

  #buyAmazonMobile {
    position: relative;
    right: 530px;
    top: -35px;
    display: block;
    width: 280px;
    margin: 0px auto 22px auto;
    padding: 6px 0;
    text-align: center;
    border-radius: 25px;
  background-color: var(--topNavBackgroundColor);
  color: var(--fontColor);
  outline: 2px solid var(--outlineAvatarColor);
  }

  #writeReviewMobile {
    position: relative;
    right: 530px;
    top: -35px;
    display: block;
    width: 280px;
    margin: 16px auto 10px;
    padding: 0;
    text-align: center;
    border-radius: 5px;
  background-color: var(--topNavBackgroundColor);
  color: var(--fontColor);
  outline: 2px solid var(--outlineAvatarColor);
  }

  #writeReviewMobile button {
    width: 100%;
    padding: 6px 0;
    cursor: pointer;
  }
  
  #bookAndAuthorNameMobile {
    position: relative;
    padding: 10px 3% 10px 30%;
  }
  
  .bookContent {
    position: relative;
    top: -490px;
    padding: 10px 3% 10px 30%;
  }
  
  #rowCount {
    position: relative;
    top: -490px;
    padding: 10px 3% 10px 30%;
  }
  
  #reviewBlock {
    position: absolute;
    top: 540px;
  }

  .bookScore {
    display: inline-block;
    width: 42px !important;
    min-width: 42px;
    padding: -8px -4px 0px -4px;
    font-size: 18px;
    text-align: center;
    border-radius: 3px;
    box-sizing: border-box;
    color: var(--bodyBackgroundColor);
    flex-shrink: 0;
  }
  
  .roundedMobileWide {
  display: block;
  margin: 20px auto;
  border-top: 2px solid var(--outlineAvatarColor);
  margin-top: 180px;
}

  .roundedMobile {
  display: block;
  margin: 20px auto;
  border-top: 2px solid var(--outlineAvatarColor);
}

  #bottomInfoPostMobile {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  #bottomInfoPostMobile .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  #bottomInfoPostMobile p { margin: 0; }

  #bookAndAuthorNameMobile { display: block; }

  .userImageMobile {
    position: relative;
    display: block !important;
    margin: 0px 0px -260px 1100px;
  }

  #imageCoverTopBooksMobile,
  #imageCoverTopAuthorsMobile,
  #topCriticsImageMobile,
  #editProfileMobile,
  #signUpLoginMobile,
  #leftSidepanel,
  #bookAndAuthorNameMobile {
    display: block !important;
  }

  #imageCoverTopBooksMobile img {
    position: relative;
    display: block !important;
    margin: 36px 0px -224px 1310px;
    height: 204px;
    outline: 2px solid var(--outlineAvatarColor);
  }
  
  #imageCoverTopAuthorsMobile {
    margin: 40px 0px -208px 1310px!important;
  }
 
  #topCriticsImageMobile {
    margin: 27px 0px -218px 1310px!important;
  }
  
  #breakTopCritics {
      margin-top: 53px;
  }
  
  #reviewsWide {
      padding-left: 220px;
  }
  
  #totalWide {
      margin-left: 50px;
  }

  #editProfileMobile,
  .deleteReviews {
    position: absolute;
    right: 3%;
    margin-top: -3.9px;
    padding: 4px 0;
    text-align: center;
    border-radius: 5px;
    background-color: var(--buyAmazonColor);
    color: var(--bodyBackgroundColor);
    font-family: "Russo One", sans-serif;
  }

  #editProfileMobile { width: 65px; }
  .deleteReviews { width: 100px; }

  #signUpLoginMobile {
    margin: 0 auto;
    width: fit-content;
  }

  .errorHandlers,
  .successHandlers,
  .bugHandlers {
    position: fixed;
    margin-top: 78px;
    font-size: 16px;
    color: var(--bodyBackgroundColor);
  }

  /* Sidebar panel -------------------------------------------------------------------------------- */

  .sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    margin-left: 50px;
    font-size: 36px;
  }

  .leftSidepanelClass {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;             /* start collapsed */
    height: 100%;
    padding: 30px 3% 10px 3%;
    background-color: var(--bodyBackgroundColor);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 3;
    opacity: 0;           /* invisible */
    pointer-events: none; /* unclickable */
  }

.leftSidepanelClass.open {
  width: 1000px;          /* expand full width */
  opacity: 1;             /* fade in */
  pointer-events: auto;   /* clickable */

  position: fixed;        /* or absolute, depending on context */
  left: 50%;
  top: 0;                 /* adjust if needed */
  transform: translateX(-50%);
}

  .closebtnLeft {
    position: absolute;
    top: 4.6%;
    right: 6.6%;
    font-size: 70px;
  }

  #leftSidepanel button[type="submit"] {
    position: relative;
    left: 12px;
    top: -92px;
  }

  .cookiesFont h1 {
    padding: 10px 3% 10px 3%;
  }
}