/* Floating Goal Rush Notification */
#rifnote-goal-rush-notification {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    background-color: #28a745; /* Green background */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 9999; /* Ensure it's on top */
    font-family: sans-serif;
    max-width: 250px; /* Limit width */
    transition: all 0.3s ease-in-out;
}

#rifnote-goal-rush-notification:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.rifnote-goal-rush-icon {
    flex-shrink: 0;
    margin-right: 10px;
}

.rifnote-goal-rush-icon img {
    width: 40px; /* Size of the football icon */
    height: 40px;
    display: block;
}

.rifnote-goal-rush-title {
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Keep title on one line */
}

/* Video Popup Overlay */
#rifnote-goal-rush-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video Popup Content */
#rifnote-goal-rush-popup-content {
    position: fixed; /* Use fixed positioning to center within the viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* The classic centering trick */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    width: 90%; /* Use width instead of max-width for better control */
    max-width: 720px; /* Set a max-width for larger screens */
    max-height: 90%; /* Responsive height */
    overflow: auto; /* In case content is larger than screen */
}

#rifnote-goal-rush-popup-content .rifnote-goal-rush-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

#rifnote-goal-rush-popup-content .rifnote-goal-rush-close:hover {
    color: #000;
}

.rifnote-goal-rush-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    background: #000; /* Black background for video area */
}

.rifnote-goal-rush-video-embed iframe,
.rifnote-goal-rush-video-embed video {
    position: absolute;
    top: 0;
left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}