/* Variables */
:root {
    --primary-color: #DB9507;
    --secondary-color: #1F3038;
    --background-color: #5084A3;
    --text-color: #FEF9EB;
    --accent-color: #32ADD8;
    --greyish-blue: #3D6278;
    --light-gray: #D3D3D3;
    --red-orange: #d48637;
    --box-background: #f0f0f0;
    --bgColorMenu: var(--secondary-color);
    --duration: 0.7s;
    --bg-color-cream: #fff8e5;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color-cream);
    color: var(--text-color);
    /*line-height: 1.6;*/
    /*padding-top: 80px;*/
}

#app {
    max-width: 600px;
    margin: 10px auto;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    width: 200px;
    height: auto;
}

#loginStatus {
    font-size: 24px;
    cursor: pointer;
}

#loginStatus .fa-user-check,
#loginStatus .fa-user {
    color: var(--text-color);
}

.logout-btn {
    color: var(--text-color);
    text-decoration: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure it takes up full width */
}


.logo-container {
    flex: 0 0 auto;
}

.logo-container:nth-child(2) {
    flex: 2;
    text-align: center;
}

.logo-container img {
    width: 150px; /* Adjust size as needed */
    height: auto;
}

#submittedBox {
    margin-top: 20px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}


/*Next Action Styles */
.recirculation-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    background-color: lightgray;

}

.recirculation-header {
    text-align: center;
    font-style: italic;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    color: black;
}

h4.recirculation-header {
    padding-top: 10px;
}
.nextAction-content {
    display: flex;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
}

.nextAction-text-wrapper {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nextAction-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color:black
}

.nextAction-cta {
    color: #0066cc;
    text-decoration: none;
    font-size: 18px;
}

.nextAction-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
}


/* Tab styles */
#tabContainer {
    display: flex;
    justify-content: space-between;
    width: 60%; /* Adjust as needed */
    position: relative;
}

.tab {
    margin-right: 20px; /* Adds spacing between tabs */
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-container {
    display: flex;
    align-items: center;
}

.spacer {
    flex: 1;
}

.tab-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.tab i {
    font-size: 1.3em;
    margin-bottom: 3px;
}

.tab span {
    font-size: 1.3em;
}

.tab:hover, .tab.active {
    color: var(--primary-color);
}

.tab:hover .tab-icon, .tab.active .tab-icon {
    filter: brightness(0) saturate(100%) invert(76%) sepia(38%) saturate(7498%) hue-rotate(359deg) brightness(101%) contrast(94%);
}

.tab.active::after {
    content: '';

    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.tab:hover::after {
    content: '';

    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--greyish-blue);
    transition: width 0.3s ease;
}

/* Content styles */
#contentContainer {
    background-color: var(--secondary-color);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    margin-top: 10px;
}

#header-content {

    padding: 5px;
}


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Today's Word Section */
#todaysWord h2,
#yesterdaysWord h2,
#pastResults h2 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

#tab-titles-container {
    margin: 10px 10px 20px 10px;

}

#tab-titles-container h3 {
    text-align: center;
    margin:0;
    line-height: 1.2em;

}

#tab-titles-container h2 {
    text-align: center;
    margin: -10px;
    line-height: 1.2em;

}

#tab-titles-container h4 {
    text-align: center;
    margin:0;
    line-height: 1.2em;

}

.header-line {
    margin-bottom: 20px;
    width: 100%;
}

.dateHeader h2 {
    color: black;
}
#todaysWord h2:first-of-type,
#yesterdaysWord h2:first-of-type,
#pastResults h2:first-of-type {
    font-size: 32px;
}

#todaysWord h2:last-of-type,
#yesterdaysWord h2:last-of-type,
#pastResults h2:last-of-type {
    font-size: 24px;
    margin-bottom: 5px;
}

#wordContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
    position: relative;
}

.pronunciation-icon, .share-icon {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}




/* Form styles */
#definitionForm textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background-color: white;
    color: var(--secondary-color);
    font-size: 16px;
    resize: none;

}

.char-count {
    text-align: right;
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Button styles */
.main-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.main-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.login-needed-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-needed-button:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.login-needed-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Yesterday's Word and Voting Styles */
#yesterdaysVoting,
#yesterdaysWord,
#pastResults,
#todaysWord {
    margin-bottom: 5px;
    text-align: center;
}

#votingHeader {
    text-align: center;
    margin-bottom: 20px;
}

#yesterdaysWordText {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

#voteContent,
#winnerContent,
#submitContent,
#rateContent {
    padding: 0 ;
}

/* Response Grid */
.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.response-grid-after {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.response-option {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.response-grid:not(.has-selection) .response-option:not(.selected):hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.response-option input[type="radio"] {
    display: none;
}

.response-option label {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    padding: 12px;
}

.response-text {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-color);

}

.response-option:not(.selected) input[type="radio"]:checked + label {
    background-color: var(--primary-color);
}

.response-option:not(.selected) input[type="radio"]:checked + label .response-text {
    color: var(--secondary-color);
}

/*
.response-option.selected {
    background-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
*/

.response-option.selected {
    background-color: var(--secondary-color);;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    border: none;
    padding: 0; /* Increase padding to make room for the lasso */
}


.response-option.selected::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 4px solid #8B4513; /* Brown color for the rope */
    border-radius: 15px;
    box-shadow: 0 0 0 2px #FFF, 0 0 0 6px #8B4513; /* Creates a double rope effect */
    /*animation: lasso 2s infinite linear;*/
}

.response-option.selected::after {
    /*content: '🤠'; *//* Cowboy emoji */
    position: absolute;
    top: 0;
    left: 0;
    font-size: 30px;
    animation: bounce 0.5s infinite alternate;
}


@keyframes lasso {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.response-option.selected label {
    cursor: default;
}

.response-option.selected .response-text {
    color: var(--text-color);
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Vote Form */
#voteForm button[type="submit"] {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#voteForm button[type="submit"]:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

#voteForm button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Message styles */
.message {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
}

.message.success {
    background-color: rgba(40, 167, 69, 0.2);
}

.message.error {
    background-color: rgba(220, 53, 69, 0.2);
}

/* Past Winners Styles */
#twoDaysAgoResults {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.word-of-the-day {
    font-size: 20px;
    margin-bottom: 10px;
}

.word-of-the-day strong {
    color: var(--primary-color);
}

.word-of-the-day-def {
    font-size: 16px;
    margin-bottom: 20px;
}

.top-definitions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.definition-card {
    background-color: var(--box-background);
    border-radius: 10px;
    padding: 15px;
    position: relative;
}

.definition-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}



.vote-count {
    font-size: 14px;
    color: var(--primary-color);
    display: block;
    text-align: right;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content-info {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 30px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    max-width: 400px;
    position: relative;
}

.modal h2 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.modal form {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
}

.modal input[type="text"],
.modal input[type="password"],
.modal input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 16px;
}

.modal input[type="text"]:focus,
.modal input[type="password"]:focus,
.modal input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.modal button[type="submit"] {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.modal button[type="submit"]:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.modal p {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-color);
}

.modal a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.modal a:hover {
    text-decoration: underline;
}

.close {
    color: var(--text-color);
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* Checkbox styles */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
}

/* Forgot password link */
.forgot-password {
    text-align: right;
    margin-bottom: 15px;
}

/* Social login buttons */
.social-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.social-login-button {
    width: 100%;
    max-width: 240px;
}

.google-btn,
.facebook-btn {
    flex: 1;
    padding: 10px;
    margin: 0 5px;
    border: 1px solid var(--text-color);
    background-color: transparent;
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.google-btn:hover,
.facebook-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.google-btn img,
.facebook-btn img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}


/* Utility Classes */
.age-disclaimer {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.8;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    #app {
        padding: 0 20px 0 20px;
    }

    #logo {
        width: 150px;
    }

    #loginStatus {
        font-size: 20px;
    }

    .tab {
        margin: 0 10px;
    }

    .tab i {
        font-size: 1.4em;
        margin-bottom: 3px;
    }

    .tab span {
        font-size: 1.3em;
    }

    .tab.active::after {
        height: 2px;
    }

    #word {
        font-size: 24px;
    }

    #definitionForm textarea {
        font-size: 14px;
    }

    .main-button {
        font-size: 16px;
    }



    .social-login {
        margin-top: 0;
    }

    .google-btn,
    .facebook-btn {
        margin: 5px 0;
    }

    .definition-card {
        padding: 10px;
    }

    .definition-medal {
        font-size: 20px;
    }

    .definition-text {
        font-size: 14px;
    }

    .vote-info {
        font-size: 12px;
    }

    .past-words-table th,
    .past-words-table td {
        padding: 6px;
    }


    .response-option {
        flex: 0 0 100%;
        scroll-snap-align: start;
    }
    .carousel-nav {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }
    .carousel-nav button {
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
    }




}

@media (max-width: 480px) {
    #app {
        padding: 0 20px 0 20px;
    }



    .modal h2 {
        font-size: 20px;
    }

    .modal input[type="text"],
    .modal input[type="password"],
    .modal input[type="email"] {
        padding: 10px;
        font-size: 14px;
    }

    .modal button[type="submit"] {
        padding: 10px 15px;
        font-size: 16px;
    }

    .social-login {
        flex-direction: column;
    }

    .google-btn,
    .facebook-btn {
        margin: 5px 0;
    }

    .debug-toggle {
        top: 5px;
        right: 5px;
        font-size: 12px;
    }

    button, .button, input[type="submit"] {
        min-height: 44px;
        padding: 5px 0;
        font-size: 16px;
    }

    input[type="radio"] + label {
        margin-bottom: 0;

    }

    .header-logo {
        max-height: 60px;
        max-width: 150px;
    }

    .response-option {
        padding: 0;
        margin-bottom: 0;
    }

    #tab-titles-container h4 {
        font-size: 12px;

    }






}

    /* Intro Page Styles */
.intro-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.intro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    flex-grow: 1;
}

.intro-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px; /* Reduced from 40px */
}

.intro-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.intro-cta-button {
    display: block;
    width: 100%;
    max-width: 350px;
    margin: 10px auto;
}

.intro-cta-button img {
    width: 100%;
    height: auto;
}

.intro-coming-soon {
    margin-top: 5px;
    font-size: 0.9em;
    color: black;
}

.intro-footer {
    margin-top: 20px; /* Reduced from 40px */
    text-align: center;
}

.social-links {
    margin-bottom: 10px; /* Reduced from 15px */
}

.social-icon {
    color: black;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.intro-copyright {
    font-size: 0.8em;
    margin: 0;
    color: black;
}

@media (max-width: 767px) {
    .intro-page {
        padding-top: 10px;
        justify-content: flex-start;
    }

    .intro-container {
        justify-content: flex-start;
        padding-top: 20px;
    }

    .intro-logo {
        margin-bottom: 20px;
    }

    .intro-cta-button {
        max-width: 250px;
    }

    .social-icon {
        font-size: 20px;
        margin: 0 8px;
    }

    .intro-footer {
        margin-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-height: 700px) {
    .intro-logo {
        max-width: 80%;
        margin-bottom: 10px;
    }

    .intro-cta-button {
        max-width: 300px;
    }

    .intro-footer {
        margin-top: 10px;
    }

    .social-links {
        margin-bottom: 5px;
    }

    .social-icon {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .intro-page {
        padding-top: 10px;
        justify-content: space-between;
    }

    .intro-container {
        justify-content: flex-start;
        padding-top: 20px;
    }

    .intro-logo {
        margin-bottom: 15px;
    }

    .intro-cta-button {
        max-width: 250px;
    }

    .social-icon {
        font-size: 20px;
        margin: 0 8px;
    }

    .intro-footer {
        margin-top: 15px;
        padding-bottom: 15px;
    }
}

@media (max-height: 600px) {
    .intro-logo {
        max-width: 70%;
    }

    .intro-cta-button {
        max-width: 250px;
    }

    .intro-footer {
        margin-top: 5px;
    }
}
/* Auth Buttons */
.auth-buttons {
    margin-top: 20px;
}

.auth-button {
    background-color: #DB9507;
    color: #FEF9EB;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-button:hover {
    background-color: #C08006;
}

.login-to-submit-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;

}

/* Debug Styles */
.debug-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.debug-info {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 10000;
    font-size: 12px;
}

#debugInfo {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    max-height: 50vh;
    overflow-y: auto;
    font-size: 12px;
    z-index: 10000;
}

#toggleDebug {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10001;
    background: #f0f0f0;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
}

/* Auth Container Styles */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.auth-logo {
    display: block;
    max-width: 200px;
    margin: 0 auto 20px;
    height: auto;
}


.auth-container h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.auth-container .form-group {
    margin-bottom: 15px;
}

.auth-container label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.auth-container .main-button {
    width: 100%;
    margin-top: 20px;
}

.auth-container p {
    text-align: center;
    margin-top: 20px;
    color: var(--text-color);
}

.auth-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-container a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-bottom: 15px;
}

#username-availability {
    font-size: 0.9em;
    margin-left: 10px;
}

.success-message {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 15px;
}

/* Header Styles */
.site-header {
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between; /* This ensures space between the left and right sections */
    align-items: center;
    padding: 10px 20px;
    max-width: 100%;
}

.tabs-container {
    display: flex;
    align-items: center;
}


.header-logo {
    max-height: 40px;
    width: auto;
}

.submit-daily-logo {
    max-height: 150px; /* Adjust as needed */
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.login-link, .avatar-link {
    display: inline-block;
    padding: 5px;
}

.login-link img {

}

/* Sticky Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    transition: transform 0.3s ease-in-out;
}

.sticky-header.hidden {
    transform: translateY(-100%);
}

/* Tab Header Styles */
.tab-header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-radius: 10px;
}

/* Responsive adjustments for tab header */
@media (max-width: 768px) {
    .tab-header-container {
        flex-direction: column;
        align-items: center;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .logo-container {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .header-logo {
        max-height: 120px;
    }

    #tabContainer {
        width: 60%;
    }

    .tab {
        margin: 0 10px;
    }

    .tab i {
        font-size: 1.4em;
        margin-bottom: 3px;
    }

    .tab span {
        font-size: 1.3em;
    }

    .tab-container {
        order: 3;
        width: 100%;
        justify-content: space-around;
        margin: 10px 0 0 0; /* Reset margin for mobile view */
    }



}

/* Lexicon Container Styles */
#lexiconContainer {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

#lexicon {
    font-size: 16px;
    color: var(--text-color);
    font-style: italic;
}

#wordContent {
    flex: 0 0 60%;
    text-align: center;
}

#wordContent h2 {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#word {
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}



#audioPronounciation {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

#audioPronounciationPastWinners {
    display: flex;
    align-items: center;
    justify-content: center;
}

.audioPronounciationPastWinners {
    display: flex;
    align-items: center;
}

#pronunciationIcon {
    font-size: 18px;
    color: var(--secondary-color);
    cursor: pointer;
    margin-right: 5px;
    transition: color 0.3s ease;
}

#pronunciationIconPastWinners {
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    margin-right: 8px;
    height: 32px;
    width: 32px;
}

#phoneticSpelling {
    font-size: 18px;
    color: var(--secondary-color);
    font-style: italic;
}

img#pronunciationIcon {
    max-width: 48px;
    max-height: 48px;
}


#writtenPronunciation {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

#partOfSpeech {
    font-size: 14px;
    color: var(--secondary-color);
    font-style: italic;
}

/* User Submitted Definition Styles */
#userSubmittedDefinition {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 10px 20px 10px;
}

#userVoteSubmission {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 10px 20px 10px;
}

#nextActionSections {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 10px 20px 10px;
}



#userSubmittedDefinition h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#userVoteSubmission h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}


.definition-container {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 15px;
}

.definition-container p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.5;
}

.helpIcon{
    position:absolute;

}

#helpIconPopup {
    display: none; /* Hidden by default */
    position: fixed; /* Positions popup near the help icon */
    top: 44%; /* Adjust as needed */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* Adjust width as necessary */
    padding: 16px;
    background-color: #fdeadb; /* Background color */
    border: 1px solid #ddd; /* Border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    border-radius: 8px; /* Rounded corners */
    z-index: 1000; /* Ensures it’s on top of other content */
}

/* Show class to toggle visibility */
#helpIconPopup.show {
    display: block; /* Show when .show is added */
}

/* Optional styling for content within the popup */
#helpIconPopup h3 {
    margin-top: 0;
    font-size: 18px;
    color: #333; /* Adjust color to match the page */
}

#helpIconPopup p {
    margin: 8px 0;
    font-size: 14px;
    color: #555; /* Adjust color to match the page */
}

#helpIconPopup .close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* Share Icon styles */
#shareIcon {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

#shareIconWordContainer {
    font-size: 32px;
    color: black;
    cursor: pointer;
    transition: color 0.3s ease;
}


#shareIcon:hover {
    color: var(--accent-color);
}

#pronunciationIcon:hover {
    color: var(--accent-color);
}


#shareIconWordContainer:hover {
    color: var(--accent-color);
}

/* Help Icon styles */
#helpDailySwoggleIcon {
    position: absolute;
    top: 15px;
    right: 65px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

#homeDailySwoggleIcon {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}



#helpDailySwoggleIcon:hover {
    color: var(--accent-color);
}

/* Help Modal Styles */
#helpDailySwoggleModal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

#helpDailySwoggleModal .modal-content {
    background-color: var(--secondary-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--primary-color);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

#helpDailySwoggleModal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

#helpDailySwoggleModal h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

#helpDailySwoggleModal ol {
    padding-left: 20px;
    color: var(--text-color);
}

#helpDailySwoggleModal li {
    margin-bottom: 5px;
}




/* Share Popup styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 300px;
    width: 90%;
}

.popup.show {
    display: block;
}

.popup-content {
    text-align: center;
}

.popup-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.popup-content p {
    margin-top: 0;
    color: var(--primary-color);
}

.share-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-btn:hover {
    background-color: var(--accent-color);
}

.share-btn i {
    margin-right: 10px;
}

/* Definition Styles */
.actual-definition-container {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.actual-definition-container h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.top-definitions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.winning-definition {
    margin-top: 20px;
}



.winner-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
}

.winner-avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 0;

}

.winner-avatar {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 44%;
}

.winner-avatar-past-winners {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 5px;
}

a.past-winner-username {
    color: white;
    font-size: 1.0em;
    text-decoration-line: none;
}


.trophy-overlay {
    position: absolute;
    bottom: 5px;
    right: -16px;
    font-size: 60px;
    color: #dc911e;
}

.winner-username {
    display: block;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-align: center;
}

.winner-username:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.vote-percentage {
    color: #DB9507;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .winner-avatar-container {
        width: 150px;
        height: 150px;
    }

    .trophy-overlay {
        font-size: 30px;
        bottom: 5px;
        right: -25px;
    }

    .winner-title {
        font-size: 24px;
    }

    .vote-percentage {
        font-size: 1.2em;
        font-weight: bold;
        color: var(--primary-color);
    }

}

.definition-medal {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 24px;
}

.definition-medal .gold {
    color: gold;
}

.definition-medal .silver {
    color: silver;
}

.definition-medal .bronze {
    color: #cd7f32;
}


.vote-info {
    display: flex;
    justify-content: center;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

/* Past Words Styles */
.past-words-container {
    background-color: #1F3038;
    border-radius: 10px;
    padding: 15px;
}

.past-words-container h3 {
    color: #DB9507;
    margin-bottom: 20px;
    text-align: center;
}

.past-winners-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.past-words-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.past-words-table th {
    color: #DB9507;
    padding: 10px;
    text-align: left;
}

.past-words-table td {
    padding: 10px;
}

.past-words-table a {
    color: var(--text-color);
    text-decoration: none;
}

.past-words-table a:hover {
    color: var(--primary-color);
}

.winner-entry,
.response-entry {
    background-color: rgba(255, 255, 255, 0.05);
}

winner-entry td {
    padding: 10px 10px 5px 10px;
}

.response-entry td {
    padding: 5px 10px 10px 10px;
}

.winner-entry td:first-child {
    border-top-left-radius: 10px;
}

.winner-entry td:last-child {
    border-top-right-radius: 10px;
}

.response-entry td:first-child {
    border-bottom-left-radius: 10px;
}

.response-entry td:last-child {
    border-bottom-right-radius: 10px;
}


/* Response Option Styles */
/*
.response-option.selected {
    border: 2px solid #4CAF50;
    background-color: #E8F5E9;
}
*/

.response-option {
    transition: all 0.3s ease;
}

.vote-count {
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Google Sign-In Container */
.google-signin-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

#loginForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loginForm input,
#loginForm button {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--text-color);
}

.login-divider span {
    padding: 0 10px;
    color: var(--text-color);
    font-size: 14px;
}

/* Google Sign-In Button */
#googleSignInButton {
    display: flex;
    justify-content: center;
}

/* Facebook Login Button */
.fb-login-button {
    width: 100% !important;
}

.fb-login-button span,
.fb-login-button iframe {
    width: 100% !important;
}

.fb-login-button iframe {
    height: 40px !important;
}

/* Placeholder for missing images */
.google-btn::before,
.facebook-btn::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-color: var(--text-color);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.google-btn::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 488 512'%3E%3Cpath d='M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 488 512'%3E%3Cpath d='M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z'/%3E%3C/svg%3E");
}

.facebook-btn::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'/%3E%3C/svg%3E");
}

/* Additional Responsive Adjustments */
@media (max-width: 480px) {
    .login-divider {
        margin: 15px 0;
    }

    .login-divider span {
        font-size: 12px;
    }

    .social-login-button {
        max-width: 100%;
    }

    #wordContainer {
        padding: 12px;
    }

    #word {
        font-size: 26px;
    }

    #phoneticSpelling,
    #writtenPronunciation {
        font-size: 14px;
    }

    #partOfSpeech {
        font-size: 12px;
    }

    #pronunciationIcon {
        font-size: 16px;
    }

    #helpIconPopup {

        width: 300px; /* Adjust width as necessary */
    }

    .helpIcon{
        top:5px;
        left: 10px;
    }

}


/* Avatar styles */






/* Avatar Modal */
#avatarModal .modal-content {
    max-width: 90%;
    width: 400px;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

#avatarModal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Avatar Grid */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Avatar Option */
.avatar-option {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: border-color 0.3s ease, transform 0.2s ease;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-option:hover {
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-color);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Save Avatar Button */
#saveAvatarBtn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

#saveAvatarBtn:hover:not(:disabled) {
    background-color: var(--accent-color);
}

#saveAvatarBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* User Menu Container */


/* Avatar Menu and Login Icon */
.avatar-menu{
    transition: opacity 0.3s ease-in-out;
}



.avatar-menu {
    position: relative;
}

.avatar-wrapper {
    cursor: pointer;
}

/* Avatar Flyout */
.avatar-flyout {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--secondary-color);
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.avatar-menu:hover .avatar-flyout {
    display: block;
}

.flyout-option {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.flyout-option:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Login Icon */
.login-icon {
    display: flex;
    justify-content: center;
    align-items: center;

}

.login-icon i {
    font-size: 1.2em;
}

.login-icon:hover {
    color: var(--accent-color);
}

/* Upload Section */
.upload-section {
    margin-top: 20px;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .avatar-display {
        width: 64px;
        height: 64px;
        margin-right: auto;
    }

    #avatarModal .modal-content {
        width: 90%;
    }

    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }



    .avatar-flyout {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .avatar-menu:hover .avatar-flyout {
        display: none;
    }

    .avatar-flyout.show {
        display: block;
    }

    .flyout-option {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .avatar-display {
        width: 64px;
        height: 64px;
        margin-right: auto;
    }

    #avatarModal .modal-content {
        width: 95%;
        padding: 15px;
    }

    .avatar-grid {
        grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    }



    #shareIconWordContainer {
        font-size: 20px;
    }
}

/*
#goToVoteButton {
    margin-top: 5px;
    background-color: lightgray;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#goToVoteButton:hover {
    background-color: var(--accent-color);
}

#goToWinnerButton {
    margin-top: 20px;
    background-color: var(--red-orange);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#goToWinnerButton:hover {
    background-color: var(--accent-color);
}
*/

 .past-winners-table {
     width: 100%;
     border-collapse: collapse;
 }

.past-winners-table th,
.past-winners-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.past-winners-table th {
    background-color: #f2f2f2;
}


.past-winner-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.pronounce-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

.pronounce-button:hover {
    opacity: 0.7;
}

.winner-row,
.response-row {
    background-color: rgba(255, 255, 255, 0.05);
}

.winner-row td {
    padding: 10px 10px 5px 10px;
    border-bottom: none;
}

.response-row td {
    padding: 5px 10px 10px 10px;
    border-top: none;
}

.winner-row td:first-child {
    border-top-left-radius: 10px;
}

.winner-row td:last-child {
    border-top-right-radius: 10px;
}

.response-row td:first-child {
    border-bottom-left-radius: 10px;
}

.response-row td:last-child {
    border-bottom-right-radius: 10px;
}

.word-response {
    font-style: italic;
    color: #FEF9EB;
    padding: 5px 0;
}

.winner-entry {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0 10px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.winner-info {
    display: grid;
    grid-template-columns: 10% 30% 60%;
    gap: 10px;
    max-width: 100%;
    align-items: center;  /* Ensures items are aligned properly */
}

.word-pronunciation {
    grid-column: 1 / 2;  /* First column for pronunciation */
    display: flex;
    align-items: center;
    gap: 10px;
}

.past_winner-user {
    grid-column: 3 / 4;  /* Span across second and third columns */
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.past-winner-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.date, .word, .winner{
    color: #FEF9EB;
}

.word {
    margin-right: 0;
}

.pronunciationIcon {
    color: #DB9507;
    margin-left: 5px;
    cursor: pointer;
    height: 32px;
    width: 32px;
}

.pronunciationIconPastWinners {
    color: #DB9507;
    cursor: pointer;
    font-size: 1.2em;  /* Adjust size as needed */
    height: 28px;
    width: 28px;
}



@media screen and (max-width: 600px) {
    .past-words-table,
    .past-words-table thead,
    .past-words-table tbody,
    .past-words-table th,
    .past-words-table td,
    .past-words-table tr {
        display: block;
    }

    .past-words-table thead {
        display: none;
    }

    .past-words-table tbody {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .winner-row, .response-row {
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .response-row {
        background-color: transparent;
        box-shadow: none;
        padding-top: 0;
    }

    .past-words-table td {
        border: none;
        padding: 5px 0;
    }

    .past-words-table td:before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--primary-color);
        margin-right: 10px;
    }

    .word-response {
        margin-top: 10px;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.02);
        border-radius: 5px;
    }

    .winner-entry,
    .response-entry {
        margin-bottom: 10px;
    }

    .winner-entry td,
    .response-entry td {
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .winner-entry td:before,
    .response-entry td:before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #DB9507;
    }

    .winner-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .winner-info > * {
        margin-bottom: 5px;
    }


    .past-winner-avatar {
        width: 40px;
        height: 40px;
    }

    .word-pronunciation {
        width: 100%;
        justify-content: space-between;
    }

    .winner, .vote-percentage {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .vote-percentage-winner {
        width: 100%;
    }

    .audioPronounciationPastWinners {
        justify-content: space-between;
    }

    .pronunciationIconPastWinners {
        font-size: 1.2em;
    }

    .vote-percentage {
        align-self: flex-end;
    }
}

/* CSS for Google IMA ads */
.ad-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ad-content {
    position: relative;
    max-width: 640px;
    width: 90%;
    margin: 0 auto;
}

#adContainer {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000; /* Add a background color to make it visible even when empty */
}

#adElement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#closeAdBtn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#closeAdBtn:hover:not(:disabled) {
    background-color: #45a049;
}

#closeAdBtn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .ad-content {
        width: 95%;
    }

    #adContainer {
        /* Ensure the container is visible even on very small screens */
        min-height: 200px;
    }
}


/* Definition rating styles. */
#rateOtherDefinitions {
    margin-top: 20px;
    padding: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

#rateOtherDefinitions h3 {
    margin-bottom: 15px;
    color: #333;
}

.definition-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/*
.definition-content {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}
*/

.definition-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/*
.definition-text {
    flex-grow: 1;
    font-size: 16px;
    color: #333;
    margin: 5px 10px;
    text-align: center;
}
*/

.definition-text {
    font-size: 16px;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 10px 5px 20px 5px;
}

/*
.rating-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap;
}
*/

.rating-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.rating-btn::before {
    content: '';
    position: absolute;
    top: -5px; bottom: -5px; /* Extend clickable area */
    left: -5px; right: -5px;
    background: transparent; /* Invisible area */
    z-index: -1;
}

.rating-btn:hover {
    background-color: rgba(255, 212, 59, 0.2); /* Highlight button */
    border-radius: 8px; /* Optional visual cue */
}

.rating-btn i {
    font-size: 32px;
    margin-bottom: 5px;
    margin-top: 15px;
    pointer-events: none;
}

.rating-btn span {
    pointer-events: none; /* Same as above */
}

.rating-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rating-buttons span{
    font-size:14px;
}
/*
.rating-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 32px;
    transition: transform 0.2s;
}
*/

.rating-btn {
    background-color: transparent;
    border: none;
    font-size: 16px;
    transition: transform 0.2s;
    display: flex;
   flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure button takes up entire container */
    height: 100%; /* Fill container */
    cursor: pointer;

}

.rating-btn:hover {
    transform: scale(1.1);
}

.skip-btn {
    color: #9e9e9e;
    margin-right: 10px;
    margin-left: 0;
}

.like-btn {
    color: black;
}

.dislike-btn {
    color: black;
}

#loadMoreDefinitions {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: #DB9507;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#loadMoreDefinitions:hover {
    background-color: #C08006;
}

.no-more-definitions {
    text-align: center;
    color: #666;
    font-style: italic;
}

@media (max-width: 480px) {
    .definition-content {
        align-items: center;
    }

    .skip-btn {
        font-size: 16px;
    }

    .definition-text {
        font-size: 14px;
    }

    .response-option.selected::after {
        /*content: '🤠'; *//* Cowboy emoji */
        position: absolute;
        top: 0;
        left: 0;
        font-size: 16px;
        animation: bounce 0.5s infinite alternate;
    }

    #todaysWord h2:last-of-type,
    #yesterdaysWord h2:last-of-type,
    #pastResults h2:last-of-type {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .rating-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .rating-btn {
        font-size: 14px;
    }

    .rating-btn i {
        font-size: 28px;
    }

    .rating-btn span {
        font-size: 12px;
        pointer-events: none;
    }
}


.toggle-definition {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.toggle-definition i {
    transition: transform 0.3s ease;
}

.actual-definition {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-style: italic;
}






@media (min-width: 768px) {
    .next-step-wrapper .next-step-grid {
        border-radius: 1rem;
        padding-bottom: 1.5rem;
    }
}




.next-step-wrapper .next-step-grid {
    grid-template-rows: auto;
    padding: 0.5rem 1rem 1rem;
    width: 100%;
    max-width: unset;
    background-color: rgb(250, 250, 250);
}

.next-step-wrapper .next-step-content {
    background-color: rgb(255, 255, 255);
}

.next-step-wrapper {
    margin-top: 20px;
    border-radius: 10px;
}

.next-step-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 0.5rem;
    align-items: center;
    border: 1px solid rgb(229, 229, 229);
    border-radius: 1rem;
    cursor: pointer;
    padding: 1rem 1.5rem;
    text-decoration: none;
}

.next-step-grid {
    display: grid;
    grid-template-rows: repeat(3, auto);
    row-gap: 1rem;
    margin: auto;
    max-width: 27rem;
    height: auto;
}

.next-step-heading {
    grid-area: 1 / 1 / auto / -1;
    text-align: center;
    margin: 0;
    font-family: TNYAdobeCaslonPro, "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 900;
    color: rgb(0, 0, 0);
}

.next-step-text-wrapper {
    display: grid;
    grid-area: 1 / 1 / -1 / 10;
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
}

.next-step-title {
    font-family: NeutrafaceNewYorker, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.23077em;
    font-size: 13px;
    font-weight: 400;
    color: rgb(0, 0, 0);
    padding-right: 1rem;
    text-align: left;
}

.next-step-cta {
    font-family: Graphik, "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: -0.0125em;
    line-height: 1.27em;
    font-size: 15px;
    font-weight: 800;
    color: rgb(8, 121, 191);
    text-align: left;

}

.next-step-image-wrapper {
    display: grid;
    grid-area: 1 / 11 / 3 / 12;
    justify-content: flex-end;
    margin: auto;
}



.next-step-icon {
    display: inline-block;
    position: relative;
    width: -webkit-fill-available;
}

@media (min-width: 768px) {
    .next-step-wrapper .next-step-content-wrapper {
        max-width: unset;
    }
}

.next-step-wrapper .next-step-content-wrapper {
    margin: auto;
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}


.next-step-wrapper {
    border-radius: 10px;
}

.next-step-grid {
    border-radius: 1rem;
}

.next-step-content {
    border-radius: 1rem;
}

@media (max-width: 767px) {
    .next-step-wrapper,
    .next-step-grid,
    .next-step-content {
        border-radius: 0.5rem; /* Slightly smaller radius for mobile */
    }
}


.icon-word-social {
    width: 36px;
    height: 36px;
}


.toast-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #DB9507;
    color: #1F3038;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.toast-banner.show {
    opacity: 1;
}

/* Policy Page Styles */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.policy-container h1 {
    color: var(--primary-color);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

.policy-container section {
    margin-bottom: 40px;
}

.policy-container h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.policy-container h3 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-container p, .policy-container ul, .policy-container ol {
    line-height: 1.6;
    margin-bottom: 15px;
}

.policy-container ul, .policy-container ol {
    padding-left: 20px;
}

.policy-container li {
    margin-bottom: 5px;
}

.policy-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-container a:hover {
    text-decoration: underline;
}

.policy-container footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .policy-container {
        padding: 15px;
    }

    .policy-container h1 {
        font-size: 2em;
    }

    .policy-container h2 {
        font-size: 1.5em;
    }

    .policy-container h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .policy-container {
        padding: 10px;
    }

    .policy-container h1 {
        font-size: 1.8em;
    }

    .policy-container h2 {
        font-size: 1.3em;
    }

    .policy-container h3 {
        font-size: 1.1em;
    }
}

/* Add to your existing CSS */
.load-more-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.winners-count {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.load-more-winners-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-winners-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.load-more-winners-btn.loading {
    position: relative;
    color: transparent;
}

.load-more-winners-btn.loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s linear infinite;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #DB9507;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

.spinner.visible {
    display: block;
}

.definition-box {
    opacity: 1;
    transition: opacity 0.1s ease-out;
}

.definition-box.fading-out {
    opacity: 0.5;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}