.vot-generator {
    background-color: white;
    box-shadow: 0px 2px 8px rgb(0 0 0 / 20%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-radius: 10px;
    max-width: 400px;
    position: relative;
    padding-top: 40px;
}

.vot-generator,
.vot-results {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 40px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.vot-results {
    text-align: center;
    max-width: 600px;
    display: none;
    margin-top: 2rem;
    border: 1px dashed;
    border-radius: 10px;
    padding-top: 20px;
}

.vot-results .korean-text {
    font-size: large;
}

.vot-results .hangul {
    font-size: x-large;
    font-weight: 600;
}

.vot-results .romanizan {
    font-style: italic;
}

.vot-generator .vot-row {
    display: flex;
    width: 100%;
    gap: 20px;
}

.vot-generator .vot-group-text {
    font-weight: 700;
}

.vot-generator .vot-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vot-generator .sub-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vot-generator .sub-column {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.vot-generator .vot-box {
    border: 1px solid;
    border-radius: 5px;
    padding: 0px 10px;
    background-color: #f8fcff;
    cursor: pointer;
    border-color: #e2f2ff;
    color: #2e2ba5;
}

.vot-generator .vot-box:hover,
.vot-generator .overlay-inner div:hover {
    color: #ff486a;
    border-color: #ff486a;
}

.vot-generator .center {
    justify-content: center;
}

.vot-generator .btn {
    padding: 10px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
}

.vot-generator .btn:hover {
    background-color: #45a049;
}

/* Radio Style */

.vot-generator .container-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.vot-generator .container-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.vot-generator .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.vot-generator .container-radio:hover input~.checkmark {
    background-color: #ccc;
}

.vot-generator label {
    margin-right: 20px;
}

/* When the radio button is checked, add a blue background */
.vot-generator .container-radio input:checked~.checkmark {
    background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.vot-generator .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.vot-generator .container-radio input:checked~.checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.vot-generator .container-radio .checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.vot-generator .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: none;
    justify-content: center;
    z-index: 9;
}

.vot-generator .overlay-content {
    background-color: white;
    padding: 20px;
    position: relative;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.vot-generator .overlay-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.vot-generator .overlay-inner div {
    width: 25%;
    padding: 3px 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    text-wrap: nowrap;
    border-radius: 5px;
    display: grid;
    align-items: center;
}

.vot-generator .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    border: 1px solid;
    padding: 1px 5px;
    margin: 0;
    line-height: 1;
    background-color: #0000003d;
    color: white;
}

.vot-generator .pagination {
    width: 100%;
    display: none;
    justify-content: space-between;
}

.vot-generator .pagination button {
    padding: 2px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    height: 2rem;
}

.vot-generator .pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media only screen and (max-width: 600px) {

    .vot-generator,
    .vot-results {
        padding: 20px;
        width: unset;
    }

    .vot-generator .btn {
        padding: 5px 20px !important;
    }
}