﻿body {
    font-family: "Lucida Sans", sans-serif;
    font-size: 12px;
    overflow-x: hidden;
}
p {
    line-height: 1.5;
}


.logo {
    background-color:#00165f;
    height:80px;
}

.logo img {
    margin-left:5px;
    margin-top:15px;
}


h1 {
    text-align: center;
    color: #337AB7;
}

a {
    color: #42719C;
}

ul {
    margin: 0px;
    padding-left: 13px;
    font-weight: bold;
}


.calculator {
    display: flex;
    width: 100%;
    max-width: 800px;
    gap: 5%;
    position: relative;
}

.right-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.date-format {
    margin-left: 8px;
    font-size: 10px;
    white-space: nowrap;
    vertical-align: middle;
}


.right-section {
    margin-left: 10px;
    display: flex;
    flex-direction: column;
}

.right-section label {
    width: 220px;
    display: inline-block;
    text-align: right;
}

.right-section input {
    width: 134px;
}




.form-row {
    display: flex;
    margin-bottom: 5px;
    align-items: center;
}
.form-row:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

.form-row input {
    margin-left: 5px;
}

.red {
    color: #B30000;
}

.buttons {
    width: 83%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding-top: 0;
}

button {
    color: #f0cf08;
    background-color: #00165f;
    border-radius: 5px;
    width: 63px;
    font-size: 11px;
    border: none;
    height:44px;
    margin-left: 15px;
    margin-top: 10px;
}

    button:hover {
        background-color: #183cc4;
    }

i {
    margin: 0 2px;
}

.rolls {
    text-align: center;
}

    .rolls a {
        color: #35597E;
    }


.error-wrapper {
    opacity: 0;
    position: absolute;
    top: -120px;
    left: 40%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: -1;
    justify-content: center;
    width: 300px;
    pointer-events: none;
}
.inner {
    background-color: white;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    border: 1px solid black;
    border-radius: 5px;
    width: 200px;
    min-height: 60px;
    display: flex;
    flex-direction: column-reverse;
    align-items: start;
}

    .inner ul {
        font-size: 12px;
        margin-top: 0;
    }
.error-wrapper.open {
    opacity: 1;
    z-index: 999;
    pointer-events: auto;
}

#closeError {
    width:60px;
    font-size:12px;
    position:static;
    margin-top:20%;
    margin-bottom:5px;
    margin-left:0;
}

.footer {
    background-color: #00165f;
    color: #f0cf08;
    text-align: center;
    font-size: 12px;
    padding: 15px;
    height: 30px;
}

    .footer p {
        position: relative;
        bottom: 25px;
    }



    @media(max-width:800px){
        
        .calculator{
            gap:1rem;
        }
  
    }

    @media(max-width:600px) {
        body {
            width:100%;
            font-size: 9px;
        }
        .logo{
            width:100%;
        }
        .footer{
            width:100%;
        }

        .calculator {
            display: flex;
            width: 100%;
            max-width: 100%;
            gap: 0;
        }
        .form-row {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        
        .right-section label{
            text-align:center;
        }

        .right-section {
            gap: 0.5rem;
        }

        .left-section, .right-section {
            margin-left: auto;
            margin-right: auto;
            align-items: stretch;
        }

            .right-section input {
                max-width: 30vw;
            }

        button {
            width: 30%;
            font-size: 9px;
        }

        .buttons {
            width: 80%;
            display: flex;
            flex-direction: row;
            margin-top: 10px;
        }

        .inner {
            max-width: 95vw;
            width:150px;
        }

            .inner ul {
                font-size: 10px;
            }

        #closeError {
            width: 50px;
            font-size: 10px;
        }

        .error-wrapper {
            bottom: 150px;
            left: 50%;
        }

    }