@import url('https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: 'Mona Sans', sans-serif;
    background: #ffffff;
    color: #000000;
}

body {
    overflow-x: hidden;
}

#app {
    width: 100%;
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#app.fade-out {
    opacity: 0;
}

#app.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.screen {
    width: 100%;
    min-height: 100vh;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

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

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Mona Sans', sans-serif;
}

.btn-primary {
    background: red;
    color: #fff;
}

.input {
    width: 100%;
    min-height: 56px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#loader.show {
    opacity: 1;
    pointer-events: auto;
}

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

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px auto;
    border: 4px solid #ddd;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 16px;
}

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    z-index: 10001;
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    margin: 0;
    color: #000;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #f0f0f0;
}

.modal-body {
    padding: 20px;
    color: #333;
    line-height: 1.5;
}

.modal-body p {
    margin: 0;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer .btn {
    width: auto;
    min-width: 100px;
    padding: 12px 24px;
}

/* Submission Overlay Styles */
.submission-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.submission-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.submission-overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.submission-overlay .spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #ddd;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.overlay-text {
    font-size: 18px;
    font-weight: 500;
    color: #000;
}

/* Login Overlay Styles */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    pointer-events: auto;
}

.login-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.login-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.login-overlay-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    text-align: center;
}

.login-overlay h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #000;
}

.login-divider {
    font-size: 16px;
    color: #666;
    margin: 20px 0;
}

.login-subtitle {
    font-size: 16px;
    color: #333;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.login-overlay .form-group {
    margin: 0 0 20px 0;
}

.login-form-content {
    width: 100%;
}

.login-not-found-content {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-not-found-content.hidden {
    display: none !important;
}

.not-found-message {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

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

.countdown-timer {
    font-size: 24px;
    font-weight: 700;
    color: #d32f2f;
    min-width: 60px;
    text-align: center;
}

/*
  -----------------------------------------------
  Landing Screen: Start
  -----------------------------------------------
  */
#landing-screen {
    height: 100vh;
    background-color: #fff;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#landing-screen .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

#landing-welcome-back {
    font-size: 24px;
    color: #fff;
    text-align: center;
    display: none;
}


#landing-screen .landing-welcome-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
}

#landing-screen .landing-top-img {
    width: 100%;
    max-width: 360px;
}

#landing-screen .btn {
    text-transform: uppercase;
}

/*
  -----------------------------------------------
  Landing Screen: End
  -----------------------------------------------
  */



/*
  -----------------------------------------------
  Form Screen: Start
  -----------------------------------------------
  */
#form-screen {
    height: 100vh;
    background-color: #fff;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#form-screen h1 {
    margin: 0 auto;
    color: #fff;
    text-align: center;
}



/*
  -----------------------------------------------
  Form Screen: End
  -----------------------------------------------
  */



/*
  -----------------------------------------------
  Game Screen: Start
  -----------------------------------------------
  */
#game-screen {
    background-color: #fff;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



#game-screen h1 {
    color: #fff;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 10px;
}


#game-screen .game-subtitle {
    color: #fff;
    font-size: 18px;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 30px;
    line-height: 1.5;
}

#game-screen .carousel-container {
    margin-top: 30px;
}

#game-screen .carousel-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

#game-screen .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

#game-screen .carousel-loading p {
    color: #666;
    font-size: 16px;
}

#game-screen .carousel-error {
    text-align: center;
    padding: 40px 20px;
    background: #ffebee;
    border-radius: 8px;
}

#game-screen .carousel-error p {
    color: #d32f2f;
    font-size: 16px;
    margin-bottom: 20px;
}

#game-screen .carousel-wrapper {
    position: relative;
    margin-bottom: 20px;
}

#game-screen .carousel-inner {
    overflow: hidden;
    border-radius: 8px;
}

#game-screen .carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

#game-screen .carousel-item {
    flex: 0 0 100%;
    padding: 30px 20px;
    background-color: #f2f2f2;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 400px;

    background-image: url('../images/jersey.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#game-screen .match-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-grow: 1;
}

#game-screen .flag-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 14px #f2f2f2;
}

#game-screen .flag-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

#game-screen .flag-button.selected {
    border-color: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    background: rgba(76, 175, 80, 0.1);
}

#game-screen .flag-emoji img{
    width: 80px;
    height: auto;
    margin: 0 auto;
}

#game-screen .country-name {
    font-size: 14px;
    text-align: center;
    max-width: 80px;
}

#game-screen .vs-text {
    font-size: 24px;
    font-weight: bold;
    opacity: 0.8;
    color: #4d4c4c;
}

#game-screen .match-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #4d4c4c;
}

#game-screen .input-label {
    text-align: center;
    font-size: 14px;
    width: 70%;
    margin: 0 auto;
}

#game-screen .player-number-input {
    padding: 15px;
    font-size: 20px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    max-width: 200px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 0 14px #f2f2f2;
}

#game-screen .player-number-input::placeholder {
    color: rgba(84, 84, 84, 1);
}

#game-screen .player-number-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

#game-screen .vote-button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    background: #0633ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
}

#game-screen .vote-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#game-screen .vote-button:disabled {
    background: #ccc;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

#game-screen .carousel-progress {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

#game-screen .error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    min-height: 20px;
}

/*
  -----------------------------------------------
  Game Screen: End
  -----------------------------------------------
  */



/*
  -----------------------------------------------
  Thankyou Screen: Start
  -----------------------------------------------
  */

#thankyou-screen
{
    background-color: #fff;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: grid;
    place-items: center;
}
#thankyou-screen h1
{
    width: 100%;
    margin: 0 auto;
    text-align: center;    
}
#thankyou-screen  .container p
{
    width: 80%;
    margin: 0 auto;
    text-align: center;
}


/*
  -----------------------------------------------
  Thankyou Screen: End
  -----------------------------------------------
  */