/* General body styles */
body {
    font-family: 'Roboto', sans-serif; /* Use a stylish font */
    text-align: center;
    background-color: #c7cac9;
    margin: 0;
    padding: 0;
    transition: all 0.5s; /* Apply transition to all properties */
    color: #707070; /* Default text color */
     text-shadow: 1px 1px 0px rgb(0, 0, 0) , 0px 0px 1px rgb(255, 255, 255);
    font-size: 24px;
}

#lang{
  
    font-size: 12px;
    padding: 1px;
}
#lang:a {
    font-size: inherit;
}


h2{
    font-size:25px;
    transition: 1s;
}
h1 {
    margin-top: 20px;
    transition: 1s;
}

#date {
    margin-bottom: 10px;
    font-size: 1.5em; /* Increase font size for better visibility */
    transition: transform 0.5s ease-in-out;
   
}

a:link, a:visited {
    background-color:inherit;
    color: inherit;
    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
  }

  a:hover, a:active {
  filter: brightness();
  }

button {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    font-size: 21px; /* Increase font size for better visibility */
    border-radius: 8px; /* Make the buttons slightly rounded */
    border: none;
    padding: 12px 24px; /* Increase padding for better tap targets */
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s; /* Apply transition to all properties */
    
    
}
.editButton{

    color: inherit;
   
    font-size: 20px;
    border-radius: 18px; /* Make the buttons slightly rounded */
    border: none;
    padding: 12px 24px; /* Increase padding for better tap targets */
    margin-top: 10px;
    margin-inline-end: 5%;
    cursor: pointer;
    transition: all 0.3s; /* Apply transition to all properties */
}
.deleteButton{
  
    color: inherit;
    font-size: 20px;
           
    border-radius: 18px; /* Make the buttons slightly rounded */
  
    padding: 12px 24px; /* Increase padding for better tap targets */
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s; /* Apply transition to all properties */
}

button:hover {
    filter: brightness(150%);
    
}





.modal-content input[type="text"],
.modal-content input[type="date"],
.modal-content select {
    width: 90%;
    padding: 16px; /* Increase padding for better touch experience */
    margin: 10px auto; /* Center the fields */
    font-size: 20px; /* Increase font size for better visibility */
    border-radius: 8px; /* Make the fields slightly rounded */
    border: 1px solid #ccc;
}

.modal-content input[type="submit"] {
    width: 50%;
    margin: 20px auto;
    padding: 14px 28px; /* Increase padding for better tap targets */
    font-size: 18px; /* Increase font size for better visibility */
    border-radius: 8px; /* Make the button slightly rounded */
    border: none;
    cursor: pointer;
}

.modal-content h2 {
    font-size: 28px; /* Increase font size for better visibility */
}

.modal-content .close {
    font-size: 32px; /* Increase font size for better visibility */
}

.modal-content .snooze-button {
    margin-top: 10px;
}

.modal-content button {
    font-size: 20px; /* Increase font size for better visibility */
}

/* Apply the rest of the existing styles */

/* Modal styles */
.modal {
    display: none;
    text-align: center;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: all 0.5s; /* Apply transition to all properties */
}

.modal-content {
    background-color: #fefefef0;
    text-align: center;
    margin: 10% auto;
    padding: 15px;
    border: 1px solid #888;
    width: 80%;
    max-width: 250px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.5s; /* Apply transition to all properties */
    color: #333; /* Default text color */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: rgb(13, 141, 116);
    text-decoration: none;
}

/* Table styles */
table {
    margin: 20px auto;
    border: 0px transparent;
     
   
    width: 80%;
    max-width: 1000px;
    transition: all 1.0s ease-in-out; /* Apply transition to all properties */
    overflow: hidden;
    border-radius: 5px;
}

table tr:hover {
    background-color: rgba(255, 255, 255, 0.142);
    filter: brightness(120%);
}

th, td {
    
    border: 0px;
    padding: 8px;
    text-align: center;
  
    border-radius: 5px;
  
}

th {
    background: #f4f4f437;
  }
  th:hover {
    background: #d6d6d522;
    font-style: bold;
  }


tr:nth-child(even) {
    background-color: #d9d8d824;
    /* transition: all 1.0s ease-in-out; */
}


/* Clock styles */
#clock {
    font-family: 'Arial', sans-serif, bold;
    font-size: 40px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 1.0s ease-in-out;
}

table.editButton{
    background-color: #45a049;

}

/* Reminder row animation */
.reminder-row {
    transition: all 1.0s ease-in-out; /* Apply transition to all properties */
}

.delete-button {
    transition: all 1.0s ease-in-out; /* Apply transition to all properties */
}

tr.highlighted {
    filter: brightness(150%);
    transition: background-color 1s; /* Animation speed (1.5 seconds) */
}

/* Reminder row fade animation */
.reminder-row.fade-in {
    animation: fadeInAnimation 0.5s;
}

.reminder-row.fade-out {
    animation: fadeOutAnimation 0.5s;
}

@keyframes fadeInAnimation {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutAnimation {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Checkbox styles */
input[type="checkbox"] {
    transform: scale(1.5);
    margin: 10px;
}

/* Error message styles */
#errorMessage,
#editErrorMessage {
    color: red;
    font-weight: bold;
}

/* Range input styles */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    transition: 0.2s;
    background: #ddd;
    border-radius: 1.3px;
}

input[type="range"]::-webkit-slider-thumb {
    border: 1px solid #000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -14px;
}

input[type="range"]:focus::-webkit-slider-runnable-track {
    background: #ccc;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8.4px;
    cursor: pointer;
    animate: 0.2s;
    background: #ddd;
    border-radius: 1.3px;
}

input[type="range"]::-moz-range-thumb {
    border: 1px solid #000;
    height: 36px;
    width: 16px;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
}

/* Responsive design adjustments */
@media only screen and (max-width: 800px) {
    body {
        font-size: 16px;
    }

    .modal-content {
        width: 90%;
    }

    table {
        width: 100%;
    }

    th, td {
        padding: 5px;
    }

    button {
        padding: 8px 15px;
    }

    #clock {
        font-size: 30px;
        animation: fadeInAnimation 0.5s;
    }
}

/* Additional styling to ensure consistency */
.modal-content label {
    display: block;
    margin-bottom: 5px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    margin-bottom: 10px;
}

#reminderText,
#editReminderText {
    width: calc(100% - 22px);
}

#backgroundColor, 
#textColor,
#buttonColor,
#buttonTextColor {
    width: 50px;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
}

/* CSS for timer modal content */
#timerModal .modal-content {
    background-color: #f9f9f9e9; /* Light background color */
    max-width: 200px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.432); /* Box shadow for depth */
    padding: 30px; /* Padding for content */
    text-align: center; /* Center align text */
}

/* CSS for the timer display */
#timer {
    font-size: 34px; /* Increase font size for timer */
    margin-bottom: 20px; /* Add some space below the timer */
    color: #333; /* Text color */
    line-height: 1.2; /* Set line height to improve readability */
}

/* CSS for reminder text */
#reminderText {
    font-size: 24px; /* Font size for reminder text */
    color: #666; /* Text color */
    margin-bottom: 10px; /* Add some space below the reminder text */
}



/* Apply the animation to the highlighted class */
.highlight {
    animation: fadeInOut 1s ease-in-out; /* Use fadeInOut animation for smooth transition */
}

/* Define the fadeInOut animation */
@keyframes fadeInOut {
    0% {
        background-color: transparent; /* Start with transparent background */
    }

    50% {
        background-color: rgba(251, 188, 120, 0.575); /* Halfway through, use highlighted color */
        filter: brightness(100%);
         
    }
   
    100% {
        
        background-color: transparent; /* End with transparent background */
    }
}

/* Define CSS keyframes for fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start with opacity 0 */
    }
    to {
        opacity: 1; /* End with opacity 1 */
    }
}

/* Define CSS keyframes for fade-out animation */
@keyframes fadeOut {
    from {
        opacity: 1; /* Start with opacity 1 */
    }
    to {
        opacity: 0; /* End with opacity 0 */
    }
}

/* Apply fade-in class for animation */
.fade-in {
    animation: fadeIn 1s; /* Use fadeIn animation with 1 second duration */
}

/* Apply fade-out class for animation */
.fade-out {
    animation: fadeOut 1.5s; /* Use fadeOut animation with 0.5 second duration */
}

/* Apply fade-in animation to the table */
#reminderList {
    animation: fadeIn 1s;
}

/* Apply fade-out animation to the table */
#reminderList.fade-out {
    animation: fadeOut 0.5s;
}

/* CSS for timer set modal content */
#timerSetModal .modal-content {
    background-color: #f9f9f9e9; /* Light background color */
    max-width: 200px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.432); /* Box shadow for depth */
    padding: 30px; /* Padding for content */
    text-align: center; /* Center align text */
}

#timerSetModal .modal-content h2 {
    font-size: 28px; /* Increase font size for better visibility */
    margin-bottom: 20px; /* Add margin below heading */
}

#timerSetModal .modal-content label {
    display: block;
    margin-bottom: 10px;
}

#timerSetModal .modal-content input[type="number"] {
    text-align: center;
    width: 50%;
    padding: 16px; /* Increase padding for better touch experience */
    margin-bottom: 20px; /* Add margin below input */
    font-size: 20px; /* Increase font size for better visibility */
    border-radius: 8px; /* Make the field slightly rounded */
    border: 1px solid #ccc;
}

#timerSetModal .modal-content button {
    font-size: 20px; /* Increase font size for better visibility */
    background-color: #4CAF50; /* Green background color */
    color: white; /* White text color */
    padding: 14px 20px; /* Increase padding for better tap targets */
    border: none; /* Remove border */
    border-radius: 8px; /* Make the button slightly rounded */
    cursor: pointer; /* Add cursor pointer */
    transition: background-color 0.3s; /* Add transition for smooth hover effect */
}

#timerSetModal .modal-content button:hover {
    background-color: #45a049; /* Darker green background color on hover */
}

.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-out {
    animation: fadeOut 1s ease forwards;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* CSS for the link */
 #termsLink {
       
            text-decoration: none;
            transition: color 0.3s;
            color: #cae4ff7b;
            text-shadow: rgb(13, 6, 6) 1px 1px;
          
            font-size: 18px;
        }

#termsLink:hover {
 color: #0056b3;

 }

        /* Additional styling for small text */
.small-text {
font-size: 14px;
 line-height: 1.4;
 margin-top: 10px;
 }

 .editButton{
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

    background-color:#89898950

 }
 .deleteButton{
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color:#89898950

 }