@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    color: #fff;
}

body {
    font-family: "Poppins", serif;
    background-color: #22222c;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

html {
    overflow: hidden;
    font-size: 18px;
}

.app {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.bg-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 37.5rem;
    height: 37.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotateBackground 20s ease-in-out infinite;
    opacity: 0.6;
    z-index: -1;
}

.circle {
    position: absolute;
    width: 18.75rem;
    height: 18.75rem;
    background: #00008b;
    border-radius: 50%;
    z-index: -1;
    filter: blur(8.8rem);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(-8.75rem) translateY(-2.5rem);
}

.circle2 {
    background: #8b0000;
    transform: translate(-50%, -50%) translateX(8.75rem) translateY(2.5rem);
}

@keyframes rotateBackground {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.35);
    border: .0313rem solid rgba(255, 255, 255, 0.1);
    /* backdrop-filter: blur(100px); */
    border-radius: .625rem;
    padding: 1.5rem 1rem;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 26rem;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.bg-blur {
    backdrop-filter: blur(100px);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: -1;
}

.event-title {
    text-align: center;
    margin-bottom: .8rem;
}

.event-heading {
    font-size: 1.8rem;
    font-weight: bold;
}

.event-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: .8rem;
}

.time-box {
    margin: .2rem;
    padding: .5rem;
    width: 90%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: .3125rem
}

.time-box span {
    font-size: 1.5rem;
}

.time-box .time-label {
    opacity: 0.8;
}

.message {
    margin: 1rem 0;
}

.message p {
    color: rgba(255, 255, 255, 0.8);
}

.branding {
    margin-top: 1rem;
    font-size: .9rem;
}

.branding p {
    color: rgba(255, 255, 255, 0.3);
}

.branding a {
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all .5s;
}

.branding:hover a {
    color: rgba(255, 255, 255, 0.8);
}

/* bottom section  */
.bottom-bar {
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    padding: 5px;
    border-radius: 50px 50px 0px 0px;
    font-size: .9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.share-button {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    border-radius: 25px;
    padding: .4rem 1rem;
    font-size: .9rem;
    cursor: pointer;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    margin: .5rem;
}

.toggle-container label {
    display: flex;
    justify-content: center;
    align-items: center;
}

#notification-status {
    color: rgba(255, 255, 255, 0.8);
}

#notification-toggle {
    display: none;
}

.slider {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.25rem;
    background: #0000001a;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border-radius: 50%;
    transition: left 0.3s ease;
}

#notification-toggle:checked+.slider {
    background-color: #047dff47;
}

#notification-toggle:checked+.slider::before {
    left: 1.4rem;
}

/* Notification Popup */
.notification-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.notification-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-content {
    background-color: rgba(34, 34, 44, 0.3);
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 25rem;
    box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.popup-content h2 {
    margin-bottom: .5rem;
    color: #60a3ea;
}

.popup-content p {
    margin-bottom: 1rem;
    color: #e6e6e6;
}

.popup-content .btns {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content button {
    margin: .3125rem;
    padding: .625rem 1.25rem;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#enable-notifications-btn {
    background-color: #2c92ff9b;
    color: #fff;
}

#enable-notifications-btn:hover {
    background-color: #297ad0;
}

#later-btn {
    background-color: #e7e7e751;
    color: #333;
}

#later-btn:hover {
    background-color: #e7e7e7b6;
}


/* Toast Feedback */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff33;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    text-align: center;
    width: 90px;
    min-width: 18.75rem;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.visible {
    opacity: 1;
    visibility: visible;
}

/* Medium Devices (Tablets, 768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Small Devices (Large Phones, 576px and below) */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
}

/* Extra Small Devices (Small Phones, 320px and below) */
@media (max-width: 320px) {
    html {
        font-size: 12px;
    }
}