/* Global cursor settings */
* {
    cursor: none;
}




/* Reset any unwanted cursor inheritance 
.calendar,
.day-headers {
    cursor: none;
}
*/


/* Body styling */
body {
    margin: 0;
    padding: 0;
    font-family: Cambria, serif;
    background-color: black;
    color: white;
    cursor: none;
    /* Add zoom transformation to the body */
    transform: scale(0.90);
    transform-origin: top center;
    height: 111.111vh; /* Compensate for the scale (100/0.85) */
    width: 100%;
    overflow: hidden;
    cursor: none;
}

/* Calendar Header Styling */
.calendar-header {
    text-align: center;
    padding: 20px;
    font-family: serif;
    cursor: none;
}

.calendar-header h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
    cursor: help;
}

.calendar-header h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.calendar-header h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Day Headers Styling */
.day-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    max-width: 85%;
    margin: 0 auto;
    padding: 0;
    
}

.day-header {
    text-align: center;
    font-size: 16px;
    color: white;
    padding-bottom: 0px;
    font-weight: 'normal';
}

/* Calendar Grid */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin: 0 auto;
    max-width: 85%;
    padding: 20px;
    box-sizing: border-box;
    cursor: none;
}

/* Each Day Cell */
.day {
    position: relative;
    border: 1px solid white;
    height: 107px;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 'normal';
}

/* Day Number in Upper Left */
.day-number {
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 18px;
    font-weight: 'lighter';
}

/* Yellow Day Numbers */
.yellow {
    color: yellow;
    cursor: wait;
}

/* Red Date Numbers */
.red {
    font-size: 20px;
    color: red;
    cursor: zoom-in;
}

/* Grey Date Numbers */
.grey {
    font-size: 20px;
    color: grey;
    cursor: not-allowed;
}

/* Main Date Styling (Centered in Each Cell) */
.date {
    font-size: 20px;
    color: white;
    cursor: alias;
}


/* Pop-up Styling */


.popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-color: rgb(220, 220, 220);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.popup-content {
    padding: 20px;
    text-align: center;
}


.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: crosshair;
}

.timestamps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
}

.timestamp {
    background-color: #f0f0f0;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

.timestamp:hover {
    background-color: #ddd;
    cursor: pointer;
}

/* Progress Bar */
#progressBarContainer {
    width: 100%;
    background-color: #ddd;
    height: 20px;
    margin-top: 3px;
    
    /* cursor: all-scroll; */
    cursor: e-resize;
}

#progressBar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    cursor: e-resize;
}

/* Yellow Pop-up Styling */
.yellow-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 150px;
    background-color: rgba(255, 0, 0, 0.8); /* Semi-transparent yellow */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Higher than normal popup */
    cursor: text;
}

.yellow-popup h3 {
    color: white; /* Contrast color for text */
    cursor: text !important;
    text-align: justify;
    font-weight: normal;
}

.yellow-popup h3::selection {
    color: yellow;
}

.header-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 800px); /* Use viewport width with a max of 720px */
    height: min(90vh, 800px); /* Use viewport height with a max of 720px */
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
    background-color: rgb(0, 0, 0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    cursor: none !important;
    overflow: auto; /* Add scrolling if content overflows */
    
}

/* Adjust the text size to be responsive as well */
.header-popup p {
    color: white;
    text-indent: clamp(20px, 8%, 60px); /* Responsive indent */
    font-size: clamp(18px, 4vw, 26px); /* Responsive font size */
    font-family: Times, serif;
    text-align: left;
    padding: 20px; /* Add some padding to prevent text touching edges */
    cursor: vertical-text !important;
    margin-top: -30px;
    font-weight: lighter;
    word-spacing: 3px;
    line-height: 1.5;
}


.header-popup h2 {
    color: white;
    text-indent:0; /* Responsive indent */
    font-size: clamp(18px, 4vw, 26px); /* Responsive font size */
    font-family: Times, serif;
    text-align: center;
    padding: 20px; /* Add some padding to prevent text touching edges */
    cursor: vertical-text !important;
    margin-top: -30px;
    font-weight: lighter;
    word-spacing: 3px;
    line-height: 1.5;
}



/* Add to your existing CSS */
/* Modified button styles */
.enough-button {
    position: absolute;
    right: 5%;          /* Align to right */
    top: 15%;         /* Center vertically */
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    font-family: Cambria, serif;
    padding: 15px 30px;
    cursor: pointer;
    z-index: 1000;
    letter-spacing: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-in;
}

.enough-button:hover {
    opacity: 0.8;
}

.enough-button.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Add these styles for the button's "used" state */

.enough-button.used {
    opacity: 1;
    pointer-events: none !important;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.grid-line {
    position: fixed;
    background: white;
    z-index: 999;
    pointer-events: none;
}

.vertical-line {
    width: 1px;
}

.horizontal-line {
    height: 1px;
}

.falling {
    transition: transform 1.5s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}


.calendar-disabled {
    pointer-events: none !important;
}

#clickable-overlay {
    transition: background-color 0.3s ease;
}

#clickable-overlay:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle highlight effect on hover */
}

/* Override the cursor:none for the overlay */
#clickable-overlay {
    cursor: pointer !important;
}

/* Ensure the overlay is above all other elements */
#clickable-overlay {
    z-index: 99999;
}




#mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: default !important;

}

.mobile-content {
    text-align: center;
    padding: 20px;
    color: white;
    font-family: Cambria, serif;
    cursor: default !important;
    width: 100%;
}

.mobile-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    cursor: text !important;
}

.mobile-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 80%;
    margin: 0 auto;
    cursor: text !important;
}

.mobile-content .vertical-right{
    transform: rotate(90deg);
    width: 100%;
    cursor: default !important;
    position: absolute;
    left: 40%;
    top: 50%;
    z-index: 0;
    
 
}

.mobile-content .vertical-left{
    transform: rotate(90deg);
    width: 100%;
    cursor: default !important;
    position: absolute;
    left: -40%;
    top: 50%;
    z-index: 0;
   
}

.mobile-content hr{
    width: 100%;
    contain: cover;
    z-index: 1;
}

.mobile-content br{
    cursor: default !important;
}

.mobile-content abbr{
    cursor: text !important;
}

/* Hide all other content when mobile overlay is shown */
body.is-mobile .calendar,
body.is-mobile .calendar-header,
body.is-mobile .day-headers,
body.is-mobile .popup,
body.is-mobile .yellow-popup,
body.is-mobile .header-popup,
body.is-mobile .enough-button {
    display: none !important;
}