/* General body styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: none;
    background-image: url('https://timer2.mypainhelper.com/3508881.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* Ensures the image covers the entire body */
    margin: 0;
    padding: 0;
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container with frame and shadow */
.container {
    text-align: center;
    max-width: 450px;
    width: 90%;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    overflow: hidden;
}

/* Header Card */
.header-card {
    background: #4d63db;
    color: #fff;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 0;
    text-align: center;
    font-weight: 700;
}

.header-card h1 {
    font-size: 28px;
    margin: 0;
    color: #fff;
    display: inline-flex;
    align-items: center; /* Vertically aligns the icon with the text */
    justify-content: center;
    gap: 15px; /* Space between the icon and the text */
}

.header-card i {
    font-size: 24px; /* Adjust the icon size */
    color: #fff; /* Match the header text color */
}

.icon-section {
    display: flex;
    justify-content: flex-end; /* Aligns icon to the right */
    margin: 10px 20px; /* Space around the icon section */
}

.help-icon {
    cursor: pointer;
    color: #4d63db;
    font-size: 20px;
    position: relative;
}

.help-icon:hover {
    color: #f0e68c; /* Change color on hover */
}

/* Tooltip styling */
.help-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip); /* Display tooltip text */
    position: absolute;
    top: 50%; /* Align vertically with the icon */
    right: 110%; /* Position tooltip to the right of the icon */
    transform: translateY(-50%); /* Center tooltip vertically */
    background: rgba(0, 0, 0, 0.8); /* Tooltip background */
    color: #fff; /* Tooltip text color */
    padding: 5px 10px; /* Tooltip padding */
    border-radius: 5px; /* Rounded corners */
    font-size: 12px; /* Tooltip text size */
    white-space: nowrap; /* Prevent text from wrapping */
    z-index: 10;
    text-align: center;
}
.help-icon[data-tooltip]:hover::before {
    content: ''; /* Tooltip arrow */
    position: absolute;
    top: 50%;
    right: 100%; /* Position arrow next to the tooltip */
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.8);
}
/* Timer section */
.timer {
    margin: 20px;
}

/* Timer Input Fields */
.timer input[type="number"] {
    font-family: 'Roboto', sans-serif;
    width: 80px; /* Increased width */
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
}

.timer input[type="number"]:focus {
    border-color: #4d63db;
}
/* Timer Presets Label */
.timer-presets-label {
    color: #4d63db; /* Text color */
    font-size: 18px; /* Font size */
    font-weight: 500; /* Semi-bold text */
    margin: 15px 0 10px; /* Add spacing above and below the label */
    text-align: center; /* Center-align the text */
}
/* Timer Preset Buttons */
.presets {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.presets button {
    flex: 1;
    margin: 0 5px;
    background: #fff;
    color: #4d63db;
    border: 1px solid #4d63db;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.presets button:hover {
    background: #4d63db;
    color: #fff;
}

/* Timer Display */
#display {
    margin-top: 20px;
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #4d63db;
    background: #f7f7f7;
    border-radius: 15px;
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
}

/* Start and Stop Buttons */
.start-stop-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

button {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#startButton {
    background: #4d63db;
    color: #fff;
    border: none;
}

#startButton:hover {
    background: #fff;
    color: #4d63db;
    border: 1px solid #4d63db;
}

#stopButton {
    background: #fff;
    color: #4d63db;
    border: 1px solid #4d63db;
}

#stopButton:hover {
    background: #4d63db;
    color: #fff;
}
#resetAllButton {
    background: #fff;
    color: #4d63db;
    border: 1px solid #4d63db;
}

#resetAllButton:hover {
    background: #4d63db;
    color: #fff;
}
.popup-reminder {
    text-align: center;
    color: #4d63db; /* Match your theme color */
    font-size: 16px; /* Font size */
    font-weight: 500; /* Semi-bold for emphasis */
    margin-bottom: 10px; /* Space below the text */
    font-family: 'Roboto', sans-serif; /* Consistent font */
}

/* Alarm Section */
.alarm {
    margin-top: 20px;
    text-align: left;
    padding: 15px;
}

.alarm h2 {
    font-size: 24px;
    color: #4d63db;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
}

.alarm label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.alarm input[type="time"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.alarm .days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alarm .days label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.alert-content {
    background: #fff;
    padding: 30px; /* Increased padding for a more spacious look */
    border-radius: 10px;
    display: flex; /* Flexbox for alignment */
    flex-direction: column; /* Stack text and button vertically */
    align-items: center; /* Center items horizontally */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    width: 320px; /* Adjusted width */
    text-align: center; /* Center-align text */
}

.alert-content p {
    font-size: 20px; /* Larger text for better readability */
    margin-bottom: 20px; /* More space between text and button */
    color: #4d63db; /* Consistent color with other UI elements */
}

.alert-content button {
    padding: 12px 25px; /* Slightly larger button for better interaction */
    font-size: 16px;
    font-weight: bold; /* Make the text bold */
    color: #fff;
    background: #4d63db; /* Matches theme color */
    border: none;
    border-radius: 5px; /* Slightly rounded corners */
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Button shadow */
    transition: background 0.3s ease, transform 0.2s ease;
}

.alert-content button:hover {
    background: #3b4fb2; /* Darker shade on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}
input#alarmTime {
    font-family: 'Roboto', sans-serif; /* Set font to Roboto */
    font-size: 16px; /* Adjust font size */
    padding: 8px; /* Add padding for a better appearance */
    border: 1px solid #ccc; /* Light border */
    border-radius: 5px; /* Rounded corners */
    width: 100%; /* Full width if necessary */
    box-sizing: border-box; /* Include padding in width */
    outline: none; /* Remove focus outline */
}

input#alarmTime:focus {
    border-color: #4d63db; /* Change border color on focus */
    box-shadow: 0 0 5px rgba(77, 99, 219, 0.5); /* Add subtle glow */
}

button#closeAlertButton {
    padding: 12px 30px; /* Adjust button size */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold text */
    color: #fff; /* Text color */
    background: #4d63db; /* Button background */
    border: none; /* Remove border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background 0.3s ease, transform 0.2s ease;

    /* Center the button */
    display: block; /* Block element to respect margins */
    margin: 20px auto 0; /* Center horizontally using margin */
    text-align: center; /* Ensure text inside is centered */
    width: fit-content; /* Ensure the button width fits its content */
}

button#closeAlertButton:hover {
    background: #3b4fb2; /* Change color on hover */
    transform: scale(1.05); /* Slight hover zoom effect */
}
button#setAlarmButton,
button#clearAlarmButton {
    font-family: 'Roboto', sans-serif;
    width: 100%;
    height: 40px;
    padding: 8px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid #4d63db;
    background: #fff;
    color: #4d63db;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

button#setAlarmButton:hover,
button#clearAlarmButton:hover {
    background: #4d63db;
    color: #fff;
}