/* styles.css */

body {
    font-family: "Silkscreen", sans-serif;
    font-weight: normal;
    font-style: normal;
    background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgba(255,25,25,1) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

#game-container {
    width: 80%;
    max-width: 1200px;
    background-color: white;
    padding: 60px 20px 20px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

#attempts {
    font-size: 1.2em;
    color: #ff4500;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: center;
}


.game-section {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

h1 {
    font-family: "Boogaloo", sans-serif;
    font-size: -webkit-xxx-large;
}

h2 {
    font-family: "Boogaloo", sans-serif;
}

input[type="text"] {
    padding: 10px;
    font-size: 1em;
    width: calc(100% - 20px);
    margin-bottom: 10px;
}

button {
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

#connections-list div, #letters div {
    padding: 5px;
    border: 1px solid #ddd;
    margin: 5px 0;
    cursor: pointer;
    background-color: #e6e6e6;
    border-radius: 3px;
}

#connections-list div.selected {
    background-color: #c6f1d6;
}

#wordle-feedback, #connections-feedback, #word-find-feedback, #correct-word-list {
    margin-top: 10px;
    font-size: 0.9em;
}

#wordle-grid {
    display: block;
    gap: 10px;
    margin-bottom: 20px;
	text-transform: uppercase;
}

.guess-row {
    display: grid;
    grid-template-columns: repeat(5, 40px);
    gap: 10px;
  	margin: 10px;
}

.guess-row div {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 24px;
}

.correct-position {
    background-color: green;
    color: white;
    border-radius: 5px;
}

.wrong-position {
    background-color: yellow;
    color: black;
    border-radius: 5px;
}

.no-match {
    background-color: grey;
    color: white;
    border-radius: 5px;
}

#letters {
    display: flex;
    flex-direction: row;
    font-size: x-large;
    gap: 10px; /* Adjust the gap between letters if needed */
}

#correct-word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Space between words */
    margin-top: 10px;
    font-size: 1em;
    max-width: 100%;
    word-wrap: break-word; /* Ensure words break if necessary */
    overflow-wrap: break-word;
}

/* Responsive grid layout for Connections */
#connections-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* Add responsive breakpoints */
@media (max-width: 1200px) {
    #connections-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on medium screens */
    }
}

@media (max-width: 900px) {
    #connections-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

@media (max-width: 600px) {
    #connections-list {
        grid-template-columns: 1fr; /* 1 column on very small screens */
    }
}

/* Optional: Adjust font sizes and padding for better readability on smaller screens */
@media (max-width: 600px) {
    #connections-list div {
        font-size: 0.8em; /* Smaller font size on very small screens */
        padding: 8px; /* Reduce padding */
    }
}

/* Optional: Adjust button sizes and padding for small screens */
@media (max-width: 600px) {
    button {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

#connections-list div {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #e6e6e6;
    border-radius: 8px; /* Add border-radius */
    text-align: center;
    cursor: pointer;
    font-size: 1em;
}

#connections-list div.selected {
    background-color: #c6f1d6;
}

mark.yellow {
    color: black;
    background: yellow;
    border-radius: 2px;
}

mark.green {
    color: white;
    background: green;
    border-radius: 2px;
}


.silkscreen-regular {
  font-family: "Silkscreen", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.silkscreen-bold {
  font-family: "Silkscreen", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.boogaloo-regular {
  font-family: "Boogaloo", sans-serif;
  font-weight: 400;
  font-style: normal;
}
