body{
    overflow-x: hidden;
}

/* Add wrapper for flex layout */
.focus_content_wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    justify-content: space-between;
}


.header_link{
    text-decoration: none;
    color: #565656;
    padding: 20px;
    position: absolute;
    z-index: 10;
}

.focus_title_container{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}
.focus_title {
    font-size: 4em;
    font-weight: bold;
    text-align: center;
    display: block;
    margin: 0 auto;
    margin-top: 50px;
    text-align: center;
    margin-bottom: 0px;
    padding-bottom: 0px;
    text-shadow:
    0 0 10px #ff7f00, 
    0 0 20px #002fff, 
    3px 11px 30px #4ac5f0, 
    -11px -3px 17px #ff00ff, 
    2px -4px 14px #00ff00;
}
.focus_title.finalTimeCard{
    margin-top: 5%;
}
.focus_subtitle{
    margin-top: 0px;
}
.focus_description{
    text-align: center;
    line-height: 1.5;
    width: 60%;
}

@media screen and (min-width: 768px) {
    .focus_description {
        width: 40%;
    }
}

@media screen and (min-width: 1024px) {
    .focus_description {
        width: 30%;
    }
}
.focus_description_2{
    font-style: italic;
    color: #565656;
}
.benefits_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 30px;
}
.benefits {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    opacity: 0;
}
.benefit_1 {
    opacity: 0;
}
.benefit_2 {
    opacity: 0;
}

.focus_goal {
    font-weight: bold;
    font-size: 1.2em;
    color: #228FFF;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    text-align: center;
    margin-top: 20px;
}

.focus_quotes{
    width: 70%;
    text-align: center;
    font-size: 1.2em;
    font-style: italic;
    color: #565656;
    transition: opacity 0.8s ease-in-out;
    min-height: 1.2em; /* Prevent layout shift */
}


.focus_demo_button{
    background-color: transparent;
    color:#228FFF;
    border: none;
    text-decoration: none;
}
.bottom_button_container{
    position: relative;
    margin-top: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
}
.action_button{
    background-color: #228FFF;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1em;
}

.email_input{
    width: 60%;
    padding: 10px 20px;
    background-color: transparent;
    border:none;
    border-bottom: 1px solid #565656;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    text-align: center;
    outline: none;
}

.email_label{
    color: #565656;
    font-size: 0.8em;
    text-decoration: none;
    margin-bottom: 20px;
    margin-top: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.focus_view {
    width: 100%;
    min-height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: relative;
}

.view_1 {
    opacity: 1;
    display: flex;
}

.view_2, .view_3 {
    opacity: 0;
    display: none;
}

.terms_link {
    color: #228FFF;
    text-decoration: none;
    margin-top: 20px;
    font-size: 0.9em;
}

.action_button {
    padding: 10px 40px;
    font-size: 1.2em;
    border-radius: 25px;
    background: #228FFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.action_button:hover {
    opacity: 0.9;
}

.break_stats_container{
    display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   margin-top: 40px;
}

.break_duration, .breaks_taken{
    color: #ccc;
    font-size: 1.2em;
    text-align: center;
    font-weight: bold;
}

.pause_end_container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.pause_button{
    background-color: transparent;
    color: #ccc;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: opacity 0.2s;
}

.end_button{
    background-color: transparent;
    color: #E85A5F;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 25px;
    border: 1px solid #E85A5F;
    cursor: pointer;
    transition: opacity 0.2s;
}

.focus_demo_button {
    color: #228FFF;
    text-decoration: none;
    margin-top: 20px;
    font-size: 0.9em;
}

.focus_demo_button:hover {
    text-decoration: underline;
}

@keyframes pulseInset {
    0% {
        box-shadow: 0 0 0px #228FFF inset;
    }
    50% {
        box-shadow: 0 0 50px #228FFF inset;
    }
    100% {
        box-shadow: 0 0 0px #228FFF inset;
    }
}

.pulsing {
    animation: pulseInset 3s ease-in-out 3;
}

.previous_best{
    font-weight: bold;
    color: #228FFF;
    text-align: center;
    transition: opacity 0.8s ease-in-out;
    margin-bottom: 0px;
    font-size: 1.2em;
}

.results_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    transition: opacity 0.8s ease-in-out;
    margin: 10px auto;
    margin-top: 5px;
}
.results_text{
    font-size: 1em;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

/* focus leaderboard */
.focuslb-container {
    width: 95%;
    margin: 20px auto;
    overflow: hidden;
    margin-top: 0;
}



.focuslb-table {
    width: 100%;
    border-collapse: collapse;
    color: #ffffff;
}

/* Add thin white bottom border to each row */
.focuslb-row, .focuslb-you {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Make header values more bold */
.focuslb-header {
    font-weight: 700;
    text-align: left;
    padding: 8px 12px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}


.focuslb-data {
    padding: 8px 12px;
    text-align: left;
}

/* Style for the "you" row - white cells with blue "you" text */
.focuslb-you {
    background-color: rgba(255, 255, 255, 0.1);
}

.focuslb-you .focuslb-data {
    color: #ffffff;
}

/* Make only the "you" text blue in the second column */
.focuslb-you td:nth-child(2) {
    color: #228FFF;
    font-weight: bold;
}


.share_results_button{
    background-color: transparent;
    color: #228FFF;
    border: none;
    text-decoration: none;
    font-size: 1em;
    text-align: center;
    outline: none;
}
/* Card container for centering */
.focuscard-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: #000000bd;
}

.focuscard-content {
    background-color: #000; /* Solid black background */
    padding: 10px;
    border-radius: 20px; /* Match the card's rounded corners */
    position: relative;
    z-index: 1; /* Ensure content is above any background layers */
}

.focuscard-branding{
    font-weight: bold;
    color: #228FFF
}
/* Inner card for animation */
.focuscard-inner {
    width: 80%;
    background: linear-gradient(45deg, #ff7f00, #002fff, #4ac5f0, #ff00ff, #00ff00); /* Gradient for glow */
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 10px #ff7f00,
                0 0 15px #002fff,
                0 0 20px #4ac5f0,
                0 0 25px #ff00ff,
                0 0 30px #00ff00; /* Rainbow shadow effect */
    transform: translateY(100vh); /* Starts off-screen */
    animation: popUp 1s ease-out forwards, hover 3s infinite ease-in-out 1s;
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



.focuscard-inner > * {
    position: relative;
    z-index: 1; /* Ensure content stays above the black background */
}

.focuscard-inner::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff7f00, #002fff, #4ac5f0, #ff00ff, #00ff00);
    z-index: -1;
    filter: blur(5px);
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
    border-radius: inherit;
}

.focuscard-inner:hover::before {
    opacity: 0.9;
    filter: blur(8px);
}

/* Pop-up animation */
@keyframes popUp {
    0% {
        transform: translateY(100vh) rotateY(0deg);
    }
    50% {
        transform: translateY(0) rotateY(180deg);
    }
    100% {
        transform: translateY(0) rotateY(360deg);
    }
}

/* Hovering effect */
@keyframes hover {
    0%, 100% {
        transform: translateY(0) rotateY(360deg);
    }
    50% {
        transform: translateY(-10px) rotateY(360deg) translateX(5px);
    }
}

.final_time{
    margin-top: 10%;
}
/* Card content styling */
.focuscard-time {
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.focuscard-label {
    color: white;
    font-size: 16px;
    text-transform: lowercase;
    margin-bottom: 5px;
}

.focuscard-record {
    color: #00f; /* Blue for "new focus record" */
    font-size: 14px;
    text-transform: lowercase;
    margin-bottom: 20px;
}

.focuscard-leaderboard {
    margin: 20px 0;
}

.focuslb-title {
    color: white;
    font-size: 1.6em;
    text-align: left;
    margin-bottom: 10px;
}


.focuslb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
}

.focuslb-header, .focuslb-data {
    color: white;
    padding: 8px;
    text-align: center;
}


/* Download screenshot button styling */
.download-screenshot-btn {
    margin-top: 50px;
    background-color: transparent;
    border: none;
    color: #228FFF;
    font-size: 1.2em;
    text-decoration: none;
    outline: none;
    border-bottom: 1px solid #228FFF;
    transition: opacity 0.8s ease-in-out;

}
.leaderboard_description{
    color: #ffffff;
    text-align: center;
    display: block;
    margin: auto;
    margin-top: 40px;
    width: 70%;
}

/* Download screenshot container styling */
.download-screenshot-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.download-screenshot-container.visible {
    opacity: 1;
}

.close-card-btn {
    background-color: transparent;
    border: 1px solid #E85A5F;
    color: #E85A5F;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, color 0.3s;
}

.close-card-btn:hover {
    background-color: rgba(232, 90, 95, 0.2);
}

