

.top-bar {
    display: flex;
    justify-content: center;
    border-top: #04003D 7px solid;
    align-items: center;
    padding: 10px;
    border-bottom: #cccccc 3px solid;
    margin-bottom: 10px;
}

.top-bar .home-icon {
    margin-right: 10px;
}

.top-bar .location-date {
    font-weight: bold;
    font-size: 1.2rem;
}

.top-bar .zoom-icons {
    margin-left: 10px;
    display: flex;
    gap: 5px;
}

.top-bar .zoom-icons i {
    cursor: pointer;
}

.s-size {
    padding: 10px;
}

.social-bar {
    display: flex;
   flex-wrap: nowrap !important;
    justify-content: center;
    margin-bottom: 10px;
    /* padding: 10px; */
}

@media (max-width: 768px) {
    .social-bar.top-social {
        display: none !important;
    }
}
.social-bar a {
    flex: 1 1 100px;
    padding: 12px 0;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 20px;
}

.facebook {
    background: #563D7C;
}

.twitter {
    background: #34495E;
}

.whatsapp {
    background: #168C83;
}

.download {
    background: #800020;
}

.google {
    background: #04003d;
}

.linkedin {
    background: #201C59;
}

.print {
    background: #5B587D;
}

.email {
    background: #04003d;
}
/* Responsive behavior */
@media (max-width: 600px) {
    .top-bar {
        flex-direction: column;
        text-align: center;
    }

    .top-bar .zoom-icons {
        margin-top: 5px;
    }

    .social-bar a {
        flex: 1 1 50%;
    }
}

/*  */

.btn-border {
    border: 1px solid #ccc;
    padding: 5px 5px;
    margin-bottom: 5px !important;
}

.page-imagee img {
    position: relative;
    background: #fff;
    display: grid;
    width: 100%;
}


.page-image img {
    max-height: 90vh;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: auto;
}

@media (max-width: 600px) {
    .page-image img {
        max-width: 100%;
        padding: 0 10px;
    }
}

.page-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-image img {
    width: 100%;
    /* Limits image height to 90% of viewport */
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}


.epaper-header-bar {
    padding: 10px 0;
    /* margin-top: 30px; */
    border-bottom: 1px solid #ccc;
    text-align: center;
}

.epaper-title {
    font-size: 30px;
    font-weight: bold;
}

.epaper-title .page-info {
    margin-left: 10px;
    font-weight: 600;
}

.epaper-title .date {
    margin-left: 10px;
    font-weight: normal;
    font-size: 14px;
    color: #555;
}

.epaper-controls {
    background: #f0f0f0;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    align-items: center;
    flex-wrap: wrap;
}

.control-left input[type="date"],
.control-right select {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

@media (max-width: 600px) {
    .epaper-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}
/* img */
#cutCanvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;    /* optional: border around canvas */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* optional: subtle shadow */
    transition: transform 0.2s ease; /* smooth zoom animation */
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto; /* allow scroll if zoomed too much */
}


/* Small-screen responsive tweaks for .epaper-controls (<= 500px) */
@media (max-width: 590px) {
  .epaper-controls {
    padding: 12px;
  }
.epaper-titlee strong {
        font-size: 25px;
}
  /* Make the inner row stack vertically */
  .epaper-controls .d-flex {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  /* Inputs / selects full width and consistent box-sizing */
  .epaper-controls input[type="date"],
  .epaper-controls .form-control,
  .epaper-controls select,
  .epaper-controls .form-select {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 0.95rem;
  }

  /* Hide the large title to save space, show compact title instead */
  .epaper-title {
    display: none !important;
  }
  .epaper-titlee {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 1rem;
    text-align: center;
  }
  .epaper-titlee .date {
    font-size: 0.85rem;
    color: #555;
  }

  /* Ensure the select doesn't force overflow and the page image area can shrink */
  .dimg { display: none !important; }

  /* Reduce margins/paddings that can create horizontal scroll */
  .epaper-controls.p-2.mb-3 {
    margin-bottom: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (min-width: 500px) {
.epaper-titlee{
    display: none;
}}
/*  */



@media (max-width: 768px) {
    #topSocialBar {
        display: none !important;
    }
}