/* Hide a custom title bar in the app */
.title-bar {
    display: none;
}

/* Styles for modal / Settings popup*/
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 2;
    /* Sit on top */
    justify-content: center;
    align-items: center;
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content  / Settings popup* */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 2px solid #f7eb04;
    width: 80%;
    /* Could be more or less, depending on screen size */
}

.ModalSettingsText {
    color: #e72d2d;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 45px;
}

.AppVersionText {
    color: #dfd3d3;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 10px;
    position: absolute;
    right: 10px;
    bottom: 0px;
}

/* Close Button */
.close {
    color: #0c0303;
    float: right;
    font-size: 32px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #eb1010;
    text-decoration: none;
    cursor: pointer;
    /* font-size: 45px; */
    transition: ease 0.5s;
    font-weight: bold;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
}


.MainHeader {
    display: flex;
    /* Enables Flexbox */
    align-items: center;
    /* Aligns items vertically in the center */
    justify-content: space-between;
    /* Spreads items out evenly across the width */
    top: 0;
    position: sticky;
    background-color: white;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 10px;
    /* Adds some padding for better spacing */
}

#AlertifyLogo {
    margin-right: auto;
    /* Ensures the logo stays to the left */
    height: auto;
    width: max(20%, 150px);
    padding-left: 10%;
}

#NotificationsButton {
    display: none;
    /* Initially hide the button */
}

#installPwaButton {
    display: none;
}

/* class of installButtons  */
.installButton {
    margin-left: 5px;
    width: max(10%, 100px);
    height: auto;
    background: #FF4742;
    border: 1px solid #e1f045;
    border-radius: 6px;
    box-shadow: rgba(246, 242, 16, 0.5) 1px 2px 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    font-family: nunito, roboto, proxima-nova, "proxima nova", sans-serif;
    font-size: clamp(12px, 2vw, 15%);
    /* Min: 16px, Preferred: 2.5% of viewport width, Max: 20px */
    font-weight: 700;
    line-height: 1.2;
    min-height: 45px;
    outline: 0;
    /* padding: 10px 10px 10px 10px;  */
    padding: 10px;
    text-align: center;
    text-rendering: geometricprecision;
    text-transform: none;
    touch-action: manipulation;
    vertical-align: middle;
}


/* Settings button */
#settings-Btn {
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    cursor: pointer;
    height: 50px;
    width: 50px;
}

/* Pulsing effect for Settings button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Add attention-grabbing styles */
#settings-Btn.highlight {
    animation: pulse 1.5s infinite;
    border: 2px solid red;
    /* Optional: Add a border to make it stand out */
    border-radius: 50%;
}


/* #settings-Btn:hover,
#settings-Btn:focus {
    color: #e72d2d;
    text-decoration: none;
    font-weight: lighter;
} */

/* Main Content ------------------------------------*/
#MessageContent {
    padding: 5px;
    width: 100%;
    font-size: clamp(1.5rem, 2vw, 3rem);
}

.title {
    margin-bottom: 0.7%;
}

.date {
    font-size: clamp(1.2rem, 2vw, 1.3rem);
}

.message-divider {
    width: 50%;
    /* Adjust width as needed for "short" */
    height: 1px;
    /* Thin line */
    background-color: #ccc;
    /* Line color, adjust as needed */
    /* margin: 8px auto; /* Centers the line (auto margins left/right) and adds space above/below */
    margin: 8px 0;
}



.messagebox {
    color: rgb(52, 14, 207);
    border: solid;
    padding: 7px;
    font-size: clamp(1.5rem, 2vw, 3rem);
    margin-bottom: 5px;
}



.BtnSettings {
    width: 100%;
    height: 100%;
    padding: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #e72d2d;
}

.BtnSettings:hover,
.BtnSettings:focus {
    cursor: pointer;
    background-color: #f8f7d4;
    font-weight: bold;
    transition: ease 0.5s;
}

#custom-notification-prompt {
    display: none;
    position: fixed;
    /* Ensures it stays in the same position on the screen */
    top: 30%;
    /* Position vertically centered */
    left: 50%;
    /* Position horizontally centered */
    transform: translate(-50%, -30%);
    /* Centers the element exactly */
    z-index: 1000;
    /* Keeps it above other content */
    width: 60vw;
    height: 40vw;
    padding: 20px;
    background: linear-gradient(135deg, #f7f6f2, #f8f8de);
    /* white and yellow gradient */
    color: #050505;
    /* Text color for good contrast */
    border: 2px solid #cc0000;
    /* Red border */
    border-radius: 10px;
    /* Smooth rounded edges */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* More prominent shadow */
    text-align: center;
    /* Center text inside the prompt */
    font-family: Arial, sans-serif;
    /* Clean font for better readability */
    font-size: 3.50vw;
}

button {
    margin: 5px 5px;
    padding: 10px 10px;
    cursor: pointer;
    border: none;
    /* Removes default button border */
    border-radius: 5px;
    /* Rounded buttons */
    font-size: 4vw;
    font-weight: bold;
}

/* Allow button styles */
#allow-button {
    background-color: #00c851;
    /* Green background */
    color: white;
    /* White text */
    transition: background-color 0.3s;
    /* Smooth hover effect */
}

#allow-button:hover {
    background-color: #2ea95f;
    /* Darker green on hover */
}

/* Later button styles */
#later-button {
    background-color: #ffbb33;
    /* Yellow background */
    color: black;
    /* Black text for better readability */
    transition: background-color 0.3s;
    /* Smooth hover effect */
}

#later-button:hover {
    background-color: #f8ac56;
    /* Darker yellow on hover */
}

/* Apple iOS install banner  */
#ios-install-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 10%;
    width: 80%;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 9999;
    border: 1px solid red;
    /* Thin red border */
}

.share-icon {
    height: 20px;
    vertical-align: middle;
}

.install-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
    cursor: pointer;
}