* {
    margin: 0;
    padding: 0;
    color: #6c5ce7;
    font-family: "DM Sans", sans-serif;
}
::selection {
    background: #4834d4;
    color: #a29bfe;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body {
    background: #22a6b3;
}

/*? parant div */
.parent-parent {
    display: flex;
    justify-content: center;
    height: 100vh;
}
.parent {
    display: flex;
    justify-content: center;
    background: #7ed6df;
    padding: 80px 40px;
    width: 50vw;
    margin: auto;
    align-items: center;
    border-radius: 10px;
}

/*? result */
.parent h1 {
    text-align: center;
    background: #c7ecee;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5%;
}

/*? input fields */
.inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}
input {
    background: #c7ecee;
    border: none;
    padding: 12px 10px;
    border-radius: 5px;
    width: 200px;
}
input:focus {
    outline: none;
}
input::placeholder {
    color: #6c5ce7;
}
input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/*? buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5%;
    flex-wrap: wrap;
}
button {
    padding: 5px 20px;
    border-radius: 5px;
    background: #c7ecee;
    border: none;
    font-size: 25px;
    width: 80px;
    flex-basis: 25%;
    cursor: pointer;
}
.refresh {
    display: flex;
    justify-content: center;
    margin-top: 5%;
}
#refresh {
    padding: 10px 20px;
    font-size: 15px;
    width: 100px;
}

/*? responsive design */
@media (max-width: 420px) {
    .logo {
        margin-top: 15%;
        margin-bottom: 5%;
    }
    .logo img {
        width: 50px;
    }
    .logo p {
        font-size: 25px;
        margin-left: 3%;
    }
    .parant {
        width: 100vw;
        border-radius: 0;
        margin-top: 5%;
        padding: 60px 40px;
    }
    .parent h1 {
        margin-bottom: 10%;
    }
    .inputs {
        flex-direction: column;
        margin: 10% auto;
    }
    .buttons {
        flex-wrap: wrap;
    }
    button {
        flex-basis: 25%;
    }
    .refresh {
        margin-top: 10%;
    }
}