body {
    font-family: Arial, sans-serif;
    max-width:100vw;
}

h3 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        color:white;
    font-size: 1.5em;
}



select 
{
    padding: 5px;
    margin: 5px;
    width:20%;
    border-radius:5px;
}

.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.salsa-regular {
    font-family: "Salsa", cursive;
    font-weight: 400;
    font-style: normal;
  }
  

input[type="number"], button {
    margin-bottom: 10px;
    padding: 5px;
}

button {
    cursor: pointer;
}

#result {
    margin-top: 20px;
}

#mileageTiles {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#evMileageTiles
{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height:80%;
    justify-content: center;
    width:auto;
    
    
}

.mileageTile, .evmileageTile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 150px;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-shadow: 1px 1px 5px 1px rgb(1, 1, 1, 0.5);
    
}

.evmileageTile {
    background: linear-gradient(to bottom right, #4ca745, #6CD96B);
color:white;
    border: 1px solid #80ff77;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

    

}

.mileageTile {
    background: linear-gradient(to bottom right, #923737, #ff5050);
    border: 1px solid #ff8080;
}

.mileageTile h2, .evmileageTile h2 {
    margin: 0;
    font-size: 1em;
}
.mileageTile h3, .evmileageTile h3 {
    margin: 0;

    font-size: 2em;
}

.mileageTile p, .evmileageTile p {
    margin: 0;
    font-size: 0.8em;
}

.display-main {
    display: grid;
    width: 80%;
    grid-template-columns: 49% 49%;
    align-items: center;
    justify-items: center;
    margin: 20px auto 20px auto;
    background: linear-gradient(to bottom left, #1a65bb, #125aa5);
    border-radius: 15px ;padding-left: 30px;
    padding-top: 25;
  

}
.display-left, .display-right {
    width: 100%;    text-align: right;
}

.tile-display {
margin: 20px 0;
}

.mileageTile:hover {
    background: linear-gradient(to bottom left, #919237, #f3ff50);
    border: 1px solid #757575;
    cursor: pointer;
    
}

.selected {
    background: linear-gradient(to bottom left, #919237, #f3ff50);
    border: 1px solid #a4b12f; /* Green border for selected tiles */
    
}

.display-2 {
    display:grid;
    width:auto;
    width:100%;
    grid-template-columns: 50% 50%;
    align-items:center;
    justify-items: center;
    background-color:aliceblue;

}

.display-2-left, .display-2-right {
    display:flex;
    flex-direction: column;
}

.display-left {
    color:white;
    margin-bottom: 20px;
}

.ann-savings {
    font-weight:bold;
}

.blk-line {
    display:block;
    background-color: rgba(0, 0, 0, 0.1);
    height:2px;
    width: 80%;
    margin:20px auto 0 auto;
}

.head-display {
    display: grid;
    grid-template-columns: 30% 30% 15%;
    width: 90%;
    height: auto;
    column-gap: 0.5%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #388033, #6CD96B);
    color: white;
    border-radius: 15px 15px 100px 100px;
    overflow: visible;
    margin: 50px auto -30px auto;
    box-shadow: 0px 8px 15px 0.1px rgb(1, 1, 1, 0.5);
    z-index: 9;
    position: relative;
    border:#6CD96B solid 3px;
}

#Savings-Head {
    font-size: 1.5em;
    font-weight: bold;
}

.vehicle-img-circ {
    height: 230px;
    width: 230px;
    border: 20px solid #1a65bb;
    border-radius: 50%;
    background-color: white;
    margin-top: -35px;
    
}

#vehicle-img  {
    display: block;
    max-height: 200px;
    width: auto;
    max-width:375px;
    margin-left:-60px;
    margin-top: 10px;


}
.vehicle-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
justify-content: center;
}



.head-content {
    display:flex;
    flex-direction: column;
    margin:0;
    
}

.head-content h3 {
    margin:0px;
}   

.right-head {
    justify-content: flex-end;

}


.white-divider {
    display:block;
    background-color: white;
    height:2px;
    width: 30%;
    margin:20px 0;
    opacity: 0.35;
}

#selected-model-details {
    display:flex;
    align-content: center;
align-content: center;
font-size: 0.8em;
}

.saving-price {
    rotate: -1deg;
    font-size: 2.5em;
    color:rgb(255, 255, 92);
}

#openModalBtn {
    background-color: white;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 20px 0;
    cursor: pointer;
    border:none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);


}

.vs-text {
    color:rgba(0, 0, 0, 0.4);
}
/* Modal container, hidden by default */
.modal {
    display: none; 
    position: fixed; 
    z-index: 99; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
  }
  
  /* Modal content */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-out;
  }
  
  /* Close button */
  .close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close-btn:hover,
  .close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Fade in animation */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @media screen and (max-width: 640px) {
    body {
        font-family: Arial, sans-serif;
        max-width: 100vw;
    }

    h3 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
        color: white;
        font-size: 1.2em;
    }

    h1 {
        font-size: 1em;
    }

    select {
        padding: 5px;
        margin: 5px;
        width: 100%;
        border-radius: 5px;
    }

    .container {
        max-width: 100%;
        margin: 20px auto;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .salsa-regular {
        font-family: "Salsa", cursive;
        font-weight: 400;
        font-style: normal;
    }

    input[type="number"], button {
        margin-bottom: 10px;
        padding: 5px;
        width: 100%;
    }

    button {
        cursor: pointer;
        width: 100%;
    }

    #result {
        margin-top: 20px;
    }

    #mileageTiles, #evMileageTiles {
        width: 90%;        column-gap: 2%;
        margin: auto;

    }

    .mileageTile, .evmileageTile {
        padding: 10px;
        margin: 10px 0;
        border-radius: 5px;
        box-shadow: 1px 1px 5px 1px rgba(1, 1, 1, 0.5);
        text-align: center;
        width: auto;    }

    .evmileageTile {
        background: linear-gradient(to bottom right, #4ca745, #6CD96B);
        color: white;
        border: 1px solid #80ff77;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .mileageTile {
        background: linear-gradient(to bottom right, #923737, #ff5050);
        border: 1px solid #ff8080;
    
    }

    .mileageTile h2, .evmileageTile h2 {
        margin: 0;
        font-size: 1em;
    }

    .mileageTile h3, .evmileageTile h3 {
        margin: 0;
        font-size: 1.5em;
    }

    .mileageTile p, .evmileageTile p {
        margin: 0;
        font-size: 0.8em;
    }

    .display-main {
        display: flex;
        width: auto;
        align-items: center;
        margin: 20px auto;
        background: linear-gradient(to bottom left, #1a65bb, #125aa5);
        border-radius: 15px;
        padding: 5px;
        column-gap: 3%;
    }

    .display-left, .display-right {
        width: 50%;        text-align: left;
    }

    .tile-display {
        margin: auto;
    }

    .mileageTile:hover {
        background: linear-gradient(to bottom left, #919237, #f3ff50);
        border: 1px solid #757575;
        cursor: pointer;
    }

    .selected {
        background: linear-gradient(to bottom left, #919237, #f3ff50);
        border: 1px solid #a4b12f;
    }

    .display-2 {
        display: flex;
        flex-direction: column;
        width: 100%;
        background-color: aliceblue;
    }

    .display-2-left, .display-2-right {
        display: flex;
        flex-direction: column;
        width: 40%;
    }

    .display-left {
        color: white;
        margin-bottom: 20px;
    }

    .ann-savings {
        font-weight: bold;
    }

    .blk-line {
        display: block;
        background-color: rgba(0, 0, 0, 0.1);
        height: 2px;
        width: 80%;
        margin: 20px auto 0 auto;
    }

    .head-display {
        display: flex;
        flex-direction: column;
        width: 90%;
        text-align: center;
        align-items: center;
        background: linear-gradient(to bottom right, #388033, #6CD96B);
        color: white;
        border-radius: 15px 15px 100px 100px;
        margin: 50px auto;
        box-shadow: 0px 8px 15px 0.1px rgba(1, 1, 1, 0.5);
        border: #6CD96B solid 3px;
    }

    #Savings-Head {
        font-size: 1.2em;
        font-weight: bold;
    }

    .vehicle-img-circ {
        height: 200px;
        width: 200px;
        border: 10px solid #1a65bb;
        border-radius: 50%;
        background-color: white;
        margin-top: -35px;
    }

    #vehicle-img {
        display: block;
        width: auto;
        margin-top: 10px;
    }



    .head-content {
        display: flex;
        flex-direction: column;
        margin: 0;
    }

    .head-content h3 {
        margin: 0px;
    }

    .right-head {
        justify-content: flex-end;
    }

    .white-divider {
        display: block;
        background-color: white;
        height: 2px;
        width: 30%;
        margin: 20px auto;
        opacity: 0.35;
    }

    #selected-model-details {
        display: flex;
        align-content: center;
        font-size: 0.8em;
    }

    .saving-price {
        rotate: -1deg;
        font-size: 1.9em;
        color: rgb(255, 255, 92);
    }

    #openModalBtn {
        background-color: white;
        color: black;
        padding: 10px 20px;
        border-radius: 5px;
        margin: 20px 0;
        cursor: pointer;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .vs-text {
        color: rgba(0, 0, 0, 0.4);
    }

    .modal-content {
        width: 90%;
    }
}
