/* button */
button { 
    display: block;
    background-color: #313131;
    color: rgb(245, 245, 245);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
} 

/* footer bar */
footer {
    background-color: rgb(41, 41, 41);
    margin-top: 20px;
}
footer div {
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}
footer a {
    color: rgb(130, 130, 130);
    margin: 20px;
}

.bar {
    height: 50px;
    background-color: #313131;
    border-radius: 5px;
    margin-top: 5px;
}
/* images */
img {
    margin-top: 10px;
    margin-bottom: 10px;
    display: block;
    max-width: 100%;
    border-radius: 20px;
}

.widget-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* spacing between stacked boxes */
    align-items: flex-end; /* keeps boxes right-aligned */
}

.widget-window {
  position: relative;
  top: 1rem;
  right: 1rem;
  z-index: 1000;

  /* optional styling so it's visible */
  background: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box; /* so padding doesn't push the box past 250x140 */

  /* size */
  width: 250px;
  height: 140px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 0%;

}
.widget-window .close-btn {
  position: absolute;
  top: 2px;
  right: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  opacity: 0.7;
  background: none;
  border: none;
  padding: 2px;
}

.widget-window .close-btn:hover {
  opacity: 1;
}

#countdown-widget > #countdown-info {
    top: 1rem;
    left: 1rem;
    text-align: left;
    position: absolute;
}

#countdown-widget > #countdown-timer {
    padding-top: 50px;
}

#countdown-info > p {
    color:rgb(121, 121, 121);
    font-size: 12px;
}


@media screen and (max-width: 948px) {
    .widget-container {
        display: none;
    }
}