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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:#111827;
    --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: 26px;
    font-weight: bold;
}

.container p {
    color: black;
    font-size:16px;
    margin-bottom: 5px;
    text-align: center;
}

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

.captcha-types{
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.type-btn{
    width: 60px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #e5e5e5;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.type-btn:hover{
    background: #d1d1d1;
    transform: translateY(-2px) scale(1.08);
}
#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;
}

.image-option.selected{
    border: 3px solid #4CAF50;
    transform: scale(1.12);
    background: #dff5e1;
    box-shadow: 0 0 12px rgba(16, 90, 201, 0.912);
}

#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: all 0.3s ease;
}

#captchaContainer .image-option:hover {
    background-color: #e0e0e0;
    transform: scale(1.12);
}

#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;
}

.captcha-input-group{
    display: flex;
    align-items: center;
    gap: 10px;
}
.refresh {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 45px;
    width: 45px;
    background: black;
    border: none;
    border-radius:50%;
    font-size: 22px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.refresh:hover{
    transform: rotate(180deg) scale(1.1);
    background: #222;
}

.result {
    text-align: center;
    font-style: poppins;
    font-weight: bold;
    color: grey;
    min-height: 20px;
    letter-spacing: 0.3px;
    white-space: pre-line;
}

.button {
    justify-self: center;
    padding-bottom: 20px;
}

.button button {
    height: 45px;
    background: #4CAF50;
    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;
    }
}