/* CSS styling for the app */
body {
    direction: rtl;
    font-family: "Vazirmatn", "Lalezar", sans-serif;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    background-color: darkgrey;
    background-size: 600% 600%;
    background-color: #85FFBD;
    background: linear-gradient(to right, #dd5e89, #f7bb97);
}

ul {
    direction: rtl;
}

h1 {
    margin-bottom: 20px;
}

input,
select,
textarea {
    font-size: 16px;
    max-height: 2em;
    max-width: 100%;
    -webkit-user-select: none;
    /* Safari/Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+ */
    user-select: none;
    /* Standard syntax */
}

.error-message {
    color: #ff0000;
    margin-top: 20px;
    text-align: right;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.calculator {
    background-color: #f8f8f8;
    padding: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
}

.input-group-HIDE {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 16px;
    display: none;
}

.input-group label {
    
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    padding: 10px;
    width: calc(100% - 22px);
    text-align: center;
    outline: none;
    /*border: none;*/
}

input[type="text"]:focus {
    outline: none;
}

#result {
    margin-top: 30px;
    font-size: 16px;
    background-color: #ecf0f1;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    display: none;
    text-align: right;
    border-radius: 12px;
}

#head {
    font-family: "Lalezar", "Vazirmatn";
    margin-top: 30px;
    font-size: 25px;
    background-color: #f8f8f8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: grid;
    border-radius: 12px;
}

#result span {
    display: block;
    margin-bottom: 10px;
}

.btn-calculate {
    padding: 10px 20px;
    background-color: antiquewhite;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.created {
    color: #000000;
    text-shadow: 0 0 1px #efefef;
    font-size: 12px;
    margin: 8px 0;
}

#resultnumber {
    color: #009c15;
    font-weight: bold;
}

@media only screen and (max-width: 480px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .calculator,
    #result {
        max-width: 100%;
    }
}

/* table */
table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

th,
td {
    padding: 4.5px;
    text-align: right;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #e8e8e8;
}

td:first-child {
    width: 160px;
    /* Adjust the width as desired */
}