@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    color: #fff;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.landing-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #020307, #1a1a40);
    color: white;
    font-family: 'Courier New', monospace;
}

.landing-container {
    text-align: center;
    border: 2px solid cyan;
    padding: 40px;
    border-radius: 20px;
    background-color: #0d0d1a;
    box-shadow: 0 0 15px cyan;
}

.landing-container button {
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 18px;
    background-color: #ff0066;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.landing-container button:hover {
    background-color: #ff3385;
}


.container {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 750px;
    box-shadow: 0 0 20px #00f0ff;
    text-align: center;
    border: 4px solid #00f0ff;
}

h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 2px 2px 0 #000;
}

#sentence-display {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
    padding: 15px;
    background-color: #222;
    border-radius: 10px;
    border: 2px solid #00f0ff;
    box-shadow: 0 0 10px #00f0ff80;
}

#input-box {
    width: 100%;
    height: 120px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75em;
    padding: 10px;
    border: 3px solid #ffcc00;
    border-radius: 10px;
    background: #222;
    color: #fff;
    resize: none;
    outline: none;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#input-box:focus {
    border-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.7em;
}

.info p {
    margin: 10px;
}

button {
    padding: 15px 25px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7em;
    background-color: #ff0066;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px #b3004c;
    transition: transform 0.1s ease;
}

button:hover {
    background-color: #e6005c;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px #b3004c;
}

.correct {
    color: #00ff00;
}

.incorrect {
    color: #ff4d4d;
}

/* Untuk efek fade saat kalimat baru muncul */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Efek shake/getar untuk input salah */
.shake {
    animation: shake 0.3s;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}