body {
    font-family: 'Arial', sans-serif;
    background-color: #FAFAFA;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

header {
    margin-bottom: 20px;
}

header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3em;
    color: #6a1b9a;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hexagon-grid {
    position: relative;
    width: 212px;
    height: 202px;
}

.letter-input, .center-letter {
    position: absolute;
    width: 68px;
    height: 78px;
    padding: 0;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    background-color: #E0E0E0;
    color: #333;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-color 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.letter-input:focus, .center-letter:focus {
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.7));
    background-color: #d0d0d0;
}

.center-letter {
    background-color: #FDD835;
}

.center-letter:focus {
    background-color: #FBC02D;
}

/* Hexagon positions: top row (2), middle row (3), bottom row (2) */
#letter1 { left: 36px; top: 0; }
#letter2 { left: 108px; top: 0; }
#letter6 { left: 0; top: 62px; }
#centerLetter { left: 72px; top: 62px; }
#letter3 { left: 144px; top: 62px; }
#letter5 { left: 36px; top: 124px; }
#letter4 { left: 108px; top: 124px; }

.solve-button {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.solve-button:hover {
    background-color: #388E3C;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

button {
    font-size: 18px;
    padding: 10px 20px;
    background-color: #af634c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

button:hover {
    background-color: #af634c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.solutions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
}

.solution-container {
    flex: 1;
    background-color: #F5F5F5;
    border: 1px solid #E0E0E0;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.solutionList {
    overflow-y: auto;
    margin-top: 10px;
    max-height: 300px;
    flex-grow: 1;
    padding: 10px 0;
}

.solutionList ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.solutionList li {
    padding: 5px 0;
}

.solution-container h2 {
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 10px;
    color: #6a1b9a;
}

.count-display {
    font-size: 0.85em;
    font-weight: normal;
    color: #666;
}

footer {
    margin-top: 20px;
    color: #666;
    font-size: 24px;
    text-align: center;
    width: 100%;
    font-weight: bold;
}

.emoji {
    font-size: 24px;
    margin: 0 4px;
}

.solution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:focus + .slider {
    box-shadow: 0 0 1px #4CAF50;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.solutionList.hidden {
    display: none;
}