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

body {
    font-family: 'Heebo', sans-serif;
    background-color: #f0f8e6;
    color: #3a3a3a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

#app {
    padding: 20px;
    width: 100%;
}

h1 {
    color: #5a8a34;
    font-size: 2.5em;
}

#apple-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
}

#apple-image {
    width: 100%;
    height: 100%;
}

.apple {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -150px; /* Start above the container */
    will-change: transform;
}

.apple img {
    width: 100%;
    height: 100%;
}

.word-display {
    position: absolute;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    width: 80%;
    word-wrap: break-word;
    text-align: center;
    font-size: 2em; /* Default size for winner */
}

@keyframes fall {
    from {
        transform: translateY(0px) rotate(0deg);
    }
    to {
        transform: translateY(500px) rotate(720deg); /* Fall out of view and rotate */
    }
}

.controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

button {
    font-family: 'Heebo', sans-serif;
    padding: 12px 25px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#draw-button {
    background-color: #d9534f;
    color: white;
}

#draw-button:hover {
    background-color: #c9302c;
}

#edit-button {
    background-color: #5bc0de;
    color: white;
}

#edit-button:hover {
    background-color: #31b0d5;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    color: #5a8a34;
}

#word-list-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    font-family: 'Heebo', sans-serif;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#save-button {
    background-color: #5cb85c;
    color: white;
}

#save-button:hover {
    background-color: #449d44;
}

#cancel-button {
    background-color: #f0ad4e;
    color: white;
}

#cancel-button:hover {
    background-color: #ec971f;
}

#logo {
    width: 100px;
    height: auto;
    margin-top: 30px;
}