@import url("https://fonts.googleapis.com/css?family=Open+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap");

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #74ebd5, #acb6e5);
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    width: 400px;
    font-family: "Open Sans", sans-serif;
    color: #333333;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 20px;
    margin-top: 10px;
    font-family: "DM Serif", sans-serif;
}

label {
    display: block;
    margin: 10px 0;
    font-size: 1.3em;
}

form {
    line-height: 40px;
}

input[type="number"] {
    padding: 4px 0 2px 5px;
    width: 50px;
    height: 100%;
    background-color: #f5f5f5;
    border: 2px solid #333333;
    font-size: 0.8em;
}

.main {
    display: block;
    position: relative;
    padding: 0 20px;
    margin-bottom: 1em;
    cursor: pointer;
    font-size: 15px;
}

.main input[type="checkbox"] {
    visibility: hidden;
}

.checkbox-container {
    position: absolute;
    top: 13px;
    left: 28%;
    height: 11px;
    width: 11px;
    border: 2px solid #000000;
    border-radius: 3px;
}

/* Hover effect */
.main:hover input ~ .checkbox-container {
    border: 2px solid #279451;
}

/* Checked effect */
.main input:checked ~ .checkbox-container {
    background-color: #279451;
    border: 2px solid #279451;
}

/* Checkmark */
.checkbox-container::after {
    content: "";
    position: absolute;
    display: none;
    left: 3px;
    top: 0px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Display checkmark when checked */
.main input:checked ~ .checkbox-container::after {
    display: block;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #14ca5a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}

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

#result {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1.2em;
    text-align: left;
}

.strong {
    font-weight: 800;
}
