@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;700&display=swap');

body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    background-color: #f5f7fa;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 1000px;
}

      .content-container {
        background-color: transparent;
    }
    
.clickable-word {
    display: inline-block;
    border: 1px solid #aaa;
    padding: 2px 5px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.clickable-word:hover {
    background-color: #f5f5f5;
}
.clickable-word, #checkFinalOrder {
    padding: 0.5em;   /* Adds space around words and buttons for easy tapping */
    display: inline-block; /* Makes the entire area clickable */
    font-size: 1em;
    margin: 0.5em 0; /* Adds vertical spacing */
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 128, 0, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

.shake {
  animation: pulse 0.6s ease-in-out;
}
  
  .correct-word {
    background-color: #28a745; /* green */
    color: #222; /* dark text for contrast */
    border: 1px solid #218838;
    font-weight: bold;
  }

  .incorrect-word {
      background-color: #dc3545;
      color: #222; /* dark text for contrast */
      border: 1px solid #bd2130;
      font-weight: bold;
  }
  #feedback {
    margin-top: 10px;
    padding: 5px;
    font-weight: bold;
    display: none; /* Initially hidden */
}
.tries{
    margin: auto;
    width: 50%;
    padding: 10px;
    text-align: center;
}
.try-dot {
    display: inline-block;
    width: 20px;  /* You can adjust this */
    height: 20px;
    border-radius: 50%; /* Makes it circular */
    background-color: #b69494;  /* Inactive dot color */
    margin: 0 5px;  /* Spacing between dots */
}

.try-dot.active {
    background-color:#7bae37;
}

.sentence {
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
    padding: 10px 15px;
    line-height: 1.75;
    font-size: 1.1rem;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.sentence:hover {
    background-color: #f2f2f2;
    cursor: pointer;
}

.sentence-number {
    top: 50%;
    transform: translateY(-50%);  /* vertically center the number */
    margin: 10px;
}
.hiddenPhrase {
    list-style-type: none;   /* removes bullet points */
    border: 1px solid #333;
    padding: 2px 5px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
    height: fit-content;
}
.correctPhrase {
    list-style-type: none;   /* removes bullet points */
    padding: 2px 5px;
    margin: 2px;
    height: 200px;
}

/* Just to make the selected word more distinct when sorting */
.ui-sortable-helper {
    background-color: #e0e0e0;
}

.ui-state-highlight {
    width: 50px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
}
.placeholder {
    display: inline-block;
    background-color: #e0e0e0;
    border-radius: 2px;
    padding: 2px 6px;
    margin: 0 2px;
}
.placeholder:empty::before {
    content: '______';  /* This will show the underline only when the placeholder is empty */
}
h1 {
    text-align: center;
    color: #666;
    font-size: 2em;
}
h2 {
    text-align: center;
    color: #666;
    font-size: 1.5em;
}
h3 {
    text-align: center;
    font-size: 1.25em;
    color: #2E5266;
    font-style: italic;
}

.hidden-word {
    background-color: #f9f9f9; /* Light gray background for empty boxes */
}
.pre-filled-word {
    background-color: #e9ecef; /* Light gray-blueish background for filled boxes */
}
.correct-word {
    background-color: #79e19f; /* Light gray-blueish background for filled boxes */
}
/* Modal Styles */
.modal {
    z-index: 1000;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto; /* Enable vertical scrolling */
    height: 100%;
    transition: all 0.3s ease;
  }
  /* Add this overlay style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* Use a z-index value lower than the modal */
  }
  .modal-content {
    background-color: #dedce4;
    padding: 20px;
    text-align: center;
    width: 80%;
    max-height: 80%; /* Limit the maximum height of the modal */
    overflow-y: auto; /* Enable vertical scrolling within the modal content */
  }

.modal-content h2 {
    font-size: 2em;  /* Style the heading inside the modal */
    margin-top: 0;   /* Remove the top margin */
}
.ui-state-highlight { height: 1.5em; line-height: 1.2em; }
/* Add styles for the drag handles */
.drag-handle {
    cursor: grab;
    margin-right: 5px;
}

/* Add styles for sortable elements */
.sortable-word {
    border: 1px solid #ccc;
    padding: 5px;
    margin: 5px;
    display: inline-block;
    background-color: #f7f7f7;
    cursor: pointer;
}

.sortable-placeholder {
    border: 1px dashed #ccc;
    padding: 5px;
    margin: 5px;
    display: inline-block;
    background-color: #f0f0f0;
}
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333; /* Background color of the footer */
    color: #dedce4; /* Text color of the footer */
    text-align: center; /* Center-align the content within the footer */
}
.share {
    text-align: center; /* Center-align the content within the footer */
    width: 100%;
}
@media (max-width: 768px) {
    /* Add styles specific to smaller screens here */
    body {
        background-color: #ffffff; /* Mobile-specific background override */
        font-family: 'Nunito Sans', sans-serif;
        font-size: 1rem;
    }
    .footer {
        position: fixed;
        left: 0;
        width: 100%;
        background-color: #333; /* Adjust the background color as needed */
        color: #dedce4; /* Adjust the text color as needed */
        padding: 10px; /* Add padding to the footer content */
        text-align: center; /* Center-align the content */
        z-index: 998; /* Ensure it's on top of other content */
        bottom: 0;
      }
    .main-wrapper {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .sentence {
        font-size: 1em;
    }

    .sortable-word {
        font-size: 0.9em;
        padding: 8px 10px;
        margin: 4px;
    }

    .check-phrase-button,
    .share-button {
        font-size: 0.95em;
        padding: 10px 14px;
    }
}
/* Style for the show/hide button */
.show-hide-button {
    background-color: #D3D0CB;
    color: #666;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family:Georgia, 'Times New Roman', Times, serif;
}
/* Style for the show/hide button */
.check-phrase-button {
    background-color: #8FC0A9;
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family:Georgia, 'Times New Roman', Times, serif;
}
/* Style for the share button */
.share-button {
    background-color: #005e38;
    color: #dedce4;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    font-family:Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5em;
}
.right_btn {
    right: 1px;
}
/* Style for the "how to play" content */
.how-to-play-content {
    display: none; /* Initially hidden */
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    /* Add any other styling you prefer for the content div */
}
/* Add this style for the close button */
.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.5em;
    color: #911738;
    z-index: 2;
}

/* Add these styles to make the "how to play" content clickable */
.how-to-play-content-clickable {
    cursor: pointer;
}


.main-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 15px;
}
#hiddenPhrasefeedback {
    display: block;
    text-align: center;
    font-size: 1.2em;
    margin-top: 10px;
    background-color: rgba(255, 0, 0, 0.05); /* subtle background for visibility */
}
.shown-word {
    background-color: #e7f9ec;
    color: #222;
    transition: all 0.3s ease;
}

.shown-word .checkmark {
    opacity: 0;
    animation: fadeInCheck 0.5s forwards;
    margin-right: 4px;
    display: inline-block;
}

@keyframes fadeInCheck {
    to {
        opacity: 1;
    }
}
/* Add styles for shown-word and checkmark */
.shown-word {
    background-color: #e7f9ec;
    color: #222;
    transition: all 0.3s ease;
}

.shown-word .checkmark {
    opacity: 0;
    animation: fadeInCheck 0.5s forwards;
    margin-right: 4px;
    display: inline-block;
}

@keyframes fadeInCheck {
    to {
        opacity: 1;
    }
}