body {
    background-color: whitesmoke;
    color: #286090;
    font-family: Montserrat;
    font-size: 16px;
    margin: 0;
    padding: 0;
}
/*.navbar-default{*/
/*    background-color: #fff;*/
/*    border-color: #fff;*/
/*    padding: 15px 0;*/
/*}*/

/*.navbar-default .nav li a {*/
/*    color: #676a6c;*/
/*}*/
.text-blue{
    color: #1e3961;
}
.eys-container {
    background-color: #fff;
    border: 5px solid #28ABE3;
    outline:5px solid #337ab7;
    border-radius: 5px;
    overflow: hidden;
    padding: 20px;
    width:80%;
    margin:auto;
}
.lifetime-savings, .monthly-savings, .annual-savings{
    /*font-weight: bold;*/
    /*color:#1e612f;*/
    text-shadow:#1dc5a3;
}
.border-green{
    border-bottom: solid 10px #6BCDDC !important;
}

.main-header {
    /*border-bottom: solid 15px #789B78;*/
    text-align: center;
    vertical-align: bottom;
    font-size: max(2.5vw, 18px);
    padding: 2px 0;
    color: #FFF;
    font-weight: bold;
    background-color: #1e3961;
    margin-top:0 !important;
    margin-bottom:0 !important;


}
li{

}

iframe {
    width:100%;
    height:100%;
    border:none;
    overflow-x: hidden;
    overflow-Y: hidden;

}

h2 {
    color: #333;
    font-size: 3rem;
    text-align: center;
    font-weight: normal;
    margin-top: 15px;
}

h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
table {
    color: #333;
    width: 100%;
    border-collapse: collapse;
    margin: auto;
}
.why-savings{
    background-color: inherit;
}
.text-large {
    font-size: x-large;
    text-align: left;
    color: #333;

}
li.savings-list{
    font-size: xx-large;
    text-align: left;
    color: #333;
}
li.savings-list-how{
    font-size: x-large;
    text-align: left;
    color: #333;
}

table, th {
    border: 1px solid black;
    font-size: x-large;
}

th, td {
    padding: 15px;
    text-align: left;
    border-right: 1px solid black;
}

th {
    background-color: #f2f2f2;
}
td {
    vertical-align: top;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 50%;
}

.question {
    display: none;
    top: 0;
    left: 100%;
    width: 80%;
    margin: auto;
}

.response {
    display: none;
    top: 0;
    left: 100%;
    width: 100%;
}

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

input[type="radio"] {
    display: none;
    cursor: pointer;
    margin: 15px;
}
input[type="radio"]:checked + .label {
    background-color:#1e3961;;
    color:white;
}
.answers-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap:wrap;
    align-items: center;
    width:70%;
    margin:15px auto;
}
.answers label {
    position:relative;
}

.answers label .label {
    background-color: rgba(40, 171, 227, 0.25);
    border: solid 2px rgba(40, 171, 227, 0.35);
    cursor: pointer;
    /*border-color:#28ABE3*/
    padding: 25px;
    width:fit-content;
    height: auto;
    outline: none;
    color: black;
    display: inline-block;
    /*transition: ease-out 0.3s;*/
    text-align: center;
    text-wrap:balance;
    transition: ease-out 0.3s;
    font-size: 2.0rem;
    font-weight: normal;
    border-radius: 14px;
    position: relative;
    z-index: 1;
    box-shadow: 3px 6px 15px 0px rgba(46, 61, 73, 0.2);
    margin: auto;

}

#estimate-your-savings label .label{
    color:dimgrey;
}

.answers label .label:hover {
    cursor: pointer;
    color: #fff;

}

.answers label .label::before {
    transition: 0.5s all ease;
    position: absolute;
    border-radius: 12px;
    top: 0%;
    right: 50%;
    bottom: 0%;
    opacity: 0;
    content: "";
    background-color: rgba(40, 171, 227,1);
    color: white;
}


.answers label .label:hover::before {
    transition: 0.5s all ease;
    left: 0%;
    right: 0%;
    opacity: 1;
    background-color: #1e3961;
    border-color: #1e3961;
    z-index: -1;

}

.eys-answers input[type="radio"] {
    display: inherit;
    cursor: pointer;
    margin: 5px;
    float:left;
}

.question-card {
    background-color: rgba(255, 255, 255);
    border: 2px solid #2b3455;
    padding: 30px 0 30px 0;
    margin:2% 4%;
    border-radius: 10px;

}

.tool-card {
    text-align: center;
    /*border-radius: 10px 100px;*/
    margin: auto;
    background-color: whitesmoke;
    padding:4% 10%;

}
.error{
    font-weight: bold;
    color: #1e3961;
    margin-left:100px;
}

.badge{
    z-index: 5;
    font-weight: bold;
    /*transform: rotate(45deg); !* Rotate badge *!*/
    transform-origin: top right; /* Origin of rotation */
    box-shadow: 0px 0px 5px #666; /* Slight shadow for depth */
    width: fit-content;
    position: absolute;
    top: -12px;
    right: -20px;
    background-color: #6BCDDC; /* Green background */
    color: white; /* White text */
    padding: 5px;
    border-radius: 5px;
    font-size: 0.75em;
}
.green{
    /*font-weight: bold;*/
    /*transform: rotate(45deg); !* Rotate badge *!*/
    box-shadow: 0px 0px 5px #666; /* Slight shadow for depth */
    width: fit-content;
    background-color: #1e612f; /* Green background */
    color: whitesmoke; /* White text */
    padding: 0px 5px;
    border-radius: 5px;
}

.badge-text {
    display: block;
    transform: rotate(-45deg); /* Counter-rotate the text */
    text-align: center;
}



.navigation-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    gap:4px;
    margin-top: -4%;
}


#savings-bar {
    margin-top: 30px;
}

.filled {
    border-radius: 30px;
    position: absolute;
    min-width: fit-content;
    /*height: 20px;
    /*background-color: #1e3961; !* More prominent color for the filled part *!*/
    /*border-radius: 50px;*/
    /*padding: 15px;*/
    z-index: 2; /* Ensures it's on top of the track */
    font-size: x-large;
}

.track {
    position: absolute;
    width: 100%; /* Track spans the full width of the container */
    height: 1px; /* Track spans the full height of the container */
    background-color: #000000; /* Light color for the track */
    border-radius: 15px;
    z-index: 1; /* Ensure the track is below the filled bar */
    top: 50%;
}
.track-label {
    position: absolute;
    left: 0px;
    top:-25px;/* Adjust as needed to align the label as you like */
    width:10%;
    /*padding: 2px 5px;*/
    font-size: 12px; /* Adjust based on your design */
    /*white-space: nowrap; !* Prevents the text from wrapping *!*/
    color:black;
    /*transform: translateY(-100%); !* Ensures the label sits just above the track, adjust if needed *!*/
    z-index: 2; /* Ensure the label is above the track */
}
input[type="text"] {
    font-size:x-large;
    box-shadow:inset .1rem .1rem .15rem #dadada, inset -.1rem -.1rem .15rem #7a7a7a;
    border-radius: 5px;
    border:none;
}

.blue {
    background-color: #1e3961;
}
.bill-img {
    width: auto;
    height: auto;
    max-width: -webkit-fill-available;
}
form{
    margin:auto;
}

/* Add any additional styling for the markers here */
.percentage-container {
    width: 100%;
    height: 60px; /* Set a fixed height for the container */
    border-radius: 40px;
    position: relative; /* Needed for absolute positioning of children */
    /*padding: 0 20px 0 20px; !* Adjust as needed *!*/
}

.percentage-bar {
    width: 100%;
    /*background: linear-gradient(to right, #a2b6b9, #ffffff);*/
    /*box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);*/
    border-radius: 30px;
    text-align: center;
    color: white;
    height: fit-content;
    margin-bottom: 20px;

}

progress {
    width: 100%;
    height: 20px;
    border-radius: 10px;
}

progress::-webkit-progress-bar {
    background-color: #ddd;
    border-radius: 10px;
}

progress::-webkit-progress-value {
    background-color: #007aff;
    border-radius: 10px;
}

#answers {
    background-color: #fff;
    border: 2px solid #28ABE3;
    border-radius: 5px;
    margin: 20px auto;
    max-width: 800px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

#answers > div {
    animation: fade-out 1s forwards;
    color: #337ab7;
    font-size: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.previous-answer {
    animation: fade-out 1s forwards;
    font-size: 16px;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-bar {
    background-color: #28ABE3;
    height: 20px;
    margin: 20px 0;
    width: 0%;
    transition: width 0.5s ease;
}

.question-show {
    animation: slide-in 10s forwards;
}

.question-hide {
    animation: slide-out 10s forwards;
}



@keyframes slide-in {
    from {
        left: 100%;
    }
    to {
        left: 0;
    }
}

@keyframes slide-out {
    from {
        left: 0;
    }
    to {
        left: -100%;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
.fa.fa-leaf.leaf1 {
    font-size: 80px; /* Adjust size as needed */
    color: #789B78; /* Icon color */
    transform: rotate(45deg);
    padding: 10px; /* Adjust padding as needed */
    position: absolute;
    top: 153px; /* Adjust positioning as needed */
    left: auto; /* Adjust positioning as needed */
    z-index: 5;
}
.fa.fa-leaf.leaf1b {
    font-size: 80px; /* Adjust size as needed */
    color: #b84a62; /* Icon color */
    transform: rotate(45deg);
    padding: 10px; /* Adjust padding as needed */
    position: absolute;
    top: 155px; /* Adjust positioning as needed */
    left: auto; /* Adjust positioning as needed */
    z-index: 4;
}
.fa.fa-leaf.leaf2 {
    font-size: 130px; /* Adjust size as needed */
    color: #789B78; /* Icon color */
    transform: rotate(45deg);
    padding: 10px; /* Adjust padding as needed */
    position: absolute;
    top: 153px; /* Adjust positioning as needed */
    left: 92%; /* Adjust positioning as needed */
    z-index: 5;
}

@media only screen and (max-width: 768px) {
    .container, .eys-container {
        width: 95%; /* Adjust the width on smaller screens for better readability */
    }
    .percentage-container{
        display:flex;
        flex-direction: column-reverse;
    }
    li.savings-list{
        font-size:medium;
    }
    .track-label{
        font-size:medium;
        position:relative;
        left:auto;
        width: auto;
        padding:inherit;
        display: none;
    }
    .track{
        display: none;
    }
    .savings-filled{
        padding:15px !important;
    }

    .filled{
        border-radius: 30px;
        font-size:medium;
        position: static;
        margin:auto !important;
    }


    .row, .navigation-buttons {
        justify-content: center; /* Stack elements vertically on smaller screens */
        margin-right:auto;
    }

    .column {
        flex: 100%; /* Allow columns to take full width on smaller screens */
    }

    label, input[type="text"], button[type="submit"], button[type="button"] {
        font-size: small; /* Adjust font size for better readability on mobile */
    }

    .fa.fa-leaf.leaf1, .fa.fa-leaf.leaf2 {
        font-size: 60px; /* Adjust leaf icon size for mobile */
    }

    .answers label .label {
        font-size: 1.2rem; /* Adjust label font size for better readability */
    }



    h2, h3, li {
        font-size: 1.5rem !important; /* Adjust heading sizes for mobile */
    }
}

@media only screen and (max-width: 480px) {
    .main-header {
        padding: 15px 0; /* Reduce padding on very small screens */
    }

    .badge-text, .question-card, .tool-card, .percentage-bar {
        font-size: small; /* Further adjust font sizes for smaller displays */
    }

    .navigation-buttons {
        margin-top: 10%; /* Adjust navigation button spacing */
    }
}
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}