@font-face
{
    font-family: RobotoFallback;
    font-style: normal;
    font-weight: 300;
    src: local("Roboto Light"),local("Roboto-Light"),url("fonts/Roboto-300.woff2") format("woff2"),url("fonts/Roboto-300.woff") format("woff"),url("fonts/Roboto-300.ttf") format("truetype")
}

@font-face
{
    font-family: RobotoFallback;
    font-style: normal;
    font-weight: 400;
    src: local("Roboto"),local("Roboto-Regular"),url("fonts/Roboto-400.woff2") format("woff2"),url("fonts/Roboto-400.woff") format("woff"),url("fonts/Roboto-400.ttf") format("truetype")
}

@font-face
{
    font-family: RobotoFallback;
    font-style: normal;
    font-weight: 500;
    src: local("Roboto Medium"),local("Roboto-Medium"),url("fonts/Roboto-500.woff2") format("woff2"),url("fonts/Roboto-500.woff") format("woff"),url("fonts/Roboto-500.ttf") format("truetype")
}

@font-face
{
    font-family: RobotoFallback;
    font-style: normal;
    font-weight: 700;
    src: local("Roboto Bold"),local("Roboto-Bold"),url("fonts/Roboto-700.woff2") format("woff2"),url("fonts/Roboto-700.woff") format("woff"),url("fonts/Roboto-700.ttf") format("truetype")
}

html
{
    font-family: Roboto, RobotoFallback, "Noto Kufi Arabic", Helvetica, Arial, sans-serif;
    font-size: 14px;
    min-height: 100%;
    position: relative;
}

@media (min-width: 768px)
{
  html
  {
    font-size: 14px;
  }
}

body, html
{
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

header
{
    align-items: start;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    height: 150px;
    justify-content: center;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header a img
{
    height: 50px;
    padding-top: 25px;
    pointer-events: auto;
}

main
{
    align-items: stretch;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding-bottom: 110px;
    padding-top: 110px;
}

footer
{
    align-items: end;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    bottom: 0;
    display: flex;
    height: 120px;
    justify-content: left;
    padding-left: 10%;
    pointer-events: none;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

footer div:first-child
{
    opacity: 0.5;
    padding-bottom: 20px;
}

footer div:nth-child(2)
{
    display: flex;
    flex: auto;
    flex-direction: row;
    justify-content: center;
    padding-bottom: 5px;
}

footer div a
{
    color: #80a0ff;
    filter: brightness(75%);
    pointer-events: auto;
}

footer div img
{
    border-radius: 5px;
    height: 32px;
    margin: 10px;
    pointer-events: auto;
    width: 48px;
}

.form-grid
{
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    margin: 0 25px;
}

.form-caption
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
    text-align: center;
}

.form-group
{
    align-items: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px;
}

.form-input
{
    display: flow;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.form-input div input
{
    border-bottom-style: solid;
    border-color: black;
    border-left-style: none;
    border-radius: 5px;
    border-right-style: none;
    border-top-style: none;
    font-size: 20px;
    font-weight: bold;
    margin: 10px;
    padding: 10px;
    text-align: center;
    width: 90%;
}

.form-input > div
{
    display: inline-block;
    vertical-align: middle;
}

.form-validation
{
    align-items: center;
    color: darkred;
    display: flex;
    flex-direction: column;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-buttons
{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 20px;
}

.form-button
{
    align-items: center;
    background: #6496C8;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 4px 4px 6px rgba(0,0,0,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-size: 20px;
    height: 80px;
    justify-content: center;
    padding: 15px 20px;
}

.form-button img
{
    display: flex;
    height: 16px;
    justify-content: center;
    margin-right: 10px;
    width: 16px;
}

.form-row
{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.form-label
{
    align-content: center;
    flex: 1;
    text-align: left;
}

.form-value
{
    align-content: center;
    flex: auto;
    height: 30px;
    text-align: right;
}

.amount-red, .amount-green
{
    align-items: center;
    border-radius: 100px;
    border-width: 0;
    display: flex;
    height: 50px;
    justify-content: center;
    margin: 10px 20px 10px 20px;
    padding: 25px;
    width: 50px;
}

.amount-red
{
    background-color: #C86464;
}

.amount-green
{
    background-color: #649664;
}

.card
{
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 4px 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: 160px;
    justify-content: space-between;
    overflow: hidden;
    padding: 10px 25px;
}

.card-link
{
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
}

.card-caption
{
    color: #404040;
    font-size: 14px;
}

.card-image
{
    flex-grow: 1;
    max-height: 100px;
}

.card-caption
{
    align-items: center;
    display: flex;
    height: 50px;
    justify-content: center;
    padding: 0;
    text-align: center;
}

.result_form
{
    display: flex;
    padding: 30px;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.result_header
{
    opacity: 0.7;
    font-size: 30px;
    margin: 10px;
    text-align: center;
}

.result_text
{
    font-size: 25px;
    margin: 10px;
    text-align: center;
}