body {
  /* your “before data loads” background */
  background-color: #545454;

  /* fade any background-color change over 2s */
  transition: background-color 2s ease-in-out;
}

/* Rarity classes you already have… */
body.rarity-shitty    { background-color: #843b00; }
body.rarity-common    { background-color: #ffffff; }
body.rarity-uncommon  { background-color: #7ed957; }
body.rarity-rare      { background-color: #2954e8; }
body.rarity-epic      { background-color: #8c52ff; }
body.rarity-legendary { background-color: #ff8888; }


/* (Keep the rest of your overlay CSS as before) */
#weather-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

@keyframes fall-spin {
  0%   { transform: translateY(-100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes fall-straight {
  0%   { transform: translateY(-100vh); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

#weather-overlay span {
  position: absolute;
  font-size: 2rem;
  will-change: transform, opacity;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  opacity: 0;
}


a:link, a:visited, a:active {
    color: #fff; /* White links for better contrast */
    text-decoration: none;
}

.profile-wrapper { position: relative; display: inline-block; }
#daily-visual {
  bottom: 25px;
  right: -10px;
  z-index: 2;
  cursor:pointer;
}
/* A soft white glow around whatever text this is applied to */
.text-glow {
  text-shadow:
    0 0 8px rgba(255,255,255,0.8),
    0 0 16px rgba(255,255,255,0.6),
    0 0 24px rgba(255,255,255,0.4);
}
/* glow filters for each tier */
#daily-visual.glow-SHITTY    .text-glow-filter { filter: drop-shadow(0 0 18px #843b00); }
#daily-visual.glow-COMMON    .text-glow-filter { filter: drop-shadow(0 0 18px #ffffff); }
#daily-visual.glow-UNCOMMON  .text-glow-filter { filter: drop-shadow(0 0 18px #7ed957); }
#daily-visual.glow-RARE      .text-glow-filter { filter: drop-shadow(0 0 18px #2954e8); }
#daily-visual.glow-EPIC      .text-glow-filter { filter: drop-shadow(0 0 18px #8c52ff); }
#daily-visual.glow-LEGENDARY .text-glow-filter { filter: drop-shadow(0 0 18px  #ff8888); }


/* 1) Make the container relative so pseudo-elements can be positioned */
#daily-visual {
  position: relative;
  left:-2.6em;
  display: inline-block;
}

/*/* 2) Pending state: red exclamation */
/*#daily-visual.pending::before {
  content: '❗';
  position: absolute;
  top:8px;
  left:11px !important;
  z-index:1000;
  font-size: 1rem;
  pointer-events: none;
  text-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* 3) Rolled state: simple checkmark */
/*#daily-visual.rolled::before {
  content: '✔️';
  position: absolute;
  z-index:1000;
  font-size: 1rem;
  pointer-events: none;
  text-shadow: 0 0 2px rgba(0,0,0,0.4);
  top:8px;
  left:4px;
}*/

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 4px solid #fff; /* White border */
}

.menu-item {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    padding: 10px 20px;
    border-radius: 8px;
    border:0px;
    background-color: rgba(255, 255, 255, 0.2); /* Slightly more opaque */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #fff; /* White text */
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Lighter on hover */
    transform: scale(1.05);
    font-weight:bold;
}

/* when rarity is common (white bg), use a greyish alpha instead of white */
body.rarity-common .menu-item {
  background-color: rgba(100, 100, 100, 0.2);
}

body.rarity-common .menu-item:hover {
  background-color: rgba(100, 100, 100, 0.4);
}

.grid-item {
    color: white;
}

/* Media Queries for responsive design */
@media (max-width: 1400px) {
    .modal-content {
        width: 90%; /* Adjust width for medium devices */
    }
}

@media (max-width: 768px) {
    .modal-content {
        max-width:600px;
    }
    .close {
        font-size: 24px; /* Adjust close button size */
    }
}

.entry {
    display: flex; /* Use flexbox to align content */
    margin: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #fff;
    min-height: 25px;
    align-items: center; /* Center items vertically */
    justify-content: space-between;
}

.entry-text {
    flex: 1; /* Allow text to take available space */
    min-width: 160px; /* Set a minimum width to prevent wrapping */
    color: black;
}

.entry-image {
    align-items:left;
    min-width:120px;
}

.mood {
    color: #ff5733; /* Mood color */
}

.success, .challenge{
    text-align: left; /* Right-align the text within the centered div */
    margin: 5px 0; /* Add some spacing */
    flex-basis: 100%; /* Allow text to take full width */
    min-width: 420px; /* Ensure sufficient width */
    color: black;
    display: flex; /* Use flexbox for alignment */
}

.dailyindicator {
    min-width: unset;      /* Remove the wide min-width */
    flex-basis: unset;     /* Remove the wide flex-basis */
    display: flex;
    align-items: center;
    margin-right: 10px;
    gap: 0.4em;
    color:black;
    white-space: nowrap;
}

.load-more {
    text-align: center;
    margin: 20px;
    border: none !important;
    outline: none; /* optional: removes focus outline as well */
    box-shadow: none; /* if there's a shadow */
    background: #444; /* keep your background */
    color: #fff;      /* keep your text color */
}

/* Simple modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background */
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.5); /* White background with 90% opacity */
    margin: 5% auto; 
    padding: 20px; 
    border: 1px solid #000; 
    width: 90%; /* Default width for small screens */
    max-width: 800px; /* Set maximum width */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Prevent content overflow */
}

.close {
    color: #aaa; 
    float: right; 
    font-size: 48px; 
    font-weight: bold; 
}

.close:hover,
.close:focus {
    color: black; 
    text-decoration: none; 
    cursor: pointer; 
}

.disabled {
    color: darkgrey; /* Change the text color to dark grey */
    pointer-events: none; /* Prevent any mouse interactions */
    opacity: 0.6; /* Optionally reduce opacity to indicate it's disabled */
}

h2 {
    color: #ffb347;; /* Set text color to black */
    font-family: 'Poppins', sans-serif; /* Pixel font */
    font-size: 26px;
    letter-spacing: 3px;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.7); /* Darker, more transparent background */
  color: #fff; /* White text inside the modal */
}

h2 {
    color: #6610f2; /* White heading */
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    letter-spacing: 3px;
    text-shadow: none; /* Remove text shadow for a cleaner look */
}

.close {
    color: #fff;
}
.entry-text,
.success,
.challenge{
    color:#000
}

.daily-summary-banner {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(0,0,0,0.05);
  border-radius: 0.25rem;
}

/* 1) Base container so children stack */
#daily-visual {
  position: relative;   /* ← this is key */
  width: 2em;
  height: 2em !important;
}

/* 2) Hide every form by default */
#daily-visual .form {
  position: absolute;
  top: 0; left: 0;
  width:100%; height:100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  font-size: 2.5em;
}

/* 3) Always show the “current level” form full-opacity */
#daily-visual.level-1 .form-1,
#daily-visual.level-2 .form-2,
#daily-visual.level-3 .form-3,
#daily-visual.level-4 .form-4,
#daily-visual.level-5 .form-5 {
  opacity: 1;
}

/* 4) On hover, fade in all forms low-opacity */
#daily-visual:hover .form {
  opacity: 0.3 !important;
}

/* 5) And on hover, keep the active one full + pop it */
    #daily-visual:hover .form-1 { transform: translateX(0em); opacity:1; }
    #daily-visual:hover .form-2 { transform: translateX(1.5em); opacity:.3; }
    #daily-visual:hover .form-3 { transform: translateX(3em);   opacity:.3; }
    #daily-visual:hover .form-4 { transform: translateX(4.5em);  opacity:.3; }
    #daily-visual:hover .form-5 { transform: translateX(6em);  opacity:.3; }

/* 6) Re-use your glow filters */
#daily-visual.glow-SHITTY    { filter: drop-shadow(0 0 8px #843b00); }
#daily-visual.glow-COMMON    { filter: drop-shadow(0 0 8px #fff); }
#daily-visual.glow-UNCOMMON  { filter: drop-shadow(0 0 8px #7ed957); }
#daily-visual.glow-RARE      { filter: drop-shadow(0 0 8px #2954e8); }
#daily-visual.glow-EPIC      { filter: drop-shadow(0 0 8px #8c52ff); }
#daily-visual.glow-LEGENDARY { filter: drop-shadow(0 0 8px #ff8888); }

@media only screen and (max-width: 800px) {
  .container {
    padding: 4px;
  }
  .menu-item {
    font-size: 18px;
    max-width: 96vw;
    padding: 8px 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    text-align: center;
    border-radius: 12px;
    white-space: nowrap;
    overflower-x: hide;
  }
  .menu-item > * {
    font-size: 1.2em;
    vertical-align: middle;
  }
    #daily-visual {
    display: none !important;
 
@media only screen and (max-width: 800px) {
  .entry {
    flex-direction: column;
    align-items: flex-start;
  }
  .entry-text, .entry-image, .dailyindicator {
    margin: 2px 0;
    min-width: 0;
    width: 100%;
  }
}
