* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: black;
    --dot-bg: black;
    --dot-color: white;
    --dot-size: 1px;
    --dot-space: 22px;
    background:
        linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
        linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
        var(--dot-color);
    font-family: Arial, sans-serif;
}

.container {
    display: grid;
    width: 350px;
    gap: 20px;
    border-radius: 20px;
    background: white;
    color: black;
    padding: 20px;
    font-size: 16px;
    box-shadow: 0px 0px 14px 9px gray;
}

.container header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.container p {
    color: grey;
    margin-bottom: 5px;
}

#captchaType {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid grey;
    margin-bottom: 10px;
}

#captchaContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

#captchaContainer .image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

#captchaContainer .image-option {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#captchaContainer .image-option:hover {
    background-color: #e0e0e0;
}

#playAudio {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#playAudio:hover {
    background-color: #45a049;
}

#playAudio:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.textcaptcha input {
    width: 100%;
    height: 50px;
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid grey;
}

.refresh {
    justify-self: end;
    height: 40px;
    width: 40px;
    background: grey;
    border: none;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
}

.result {
    text-align: center;
    font-weight: bold;
    color: grey;
    min-height: 20px;
}

.button {
    justify-self: center;
}

.button button {
    height: 45px;
    background: grey;
    color: white;
    width: 200px;
    font-size: 15px;
    border-radius: 15px;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button button:hover {
    background: rgb(71, 69, 69);
}

@media only screen and (max-width: 400px) {
    .container {
        width: 90%;
        padding: 15px;
    }
}