/* General styles */
body {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    font-family: Arial, sans-serif;
    background-color: #f3f3f3;
    min-height: 100vh; /* Ensure full viewport height coverage */
    text-align: center; /* Center align all div elements */
}
a{
    text-decoration: none;
    color: #667eea;
}
h1, h3 {
    text-align: center;
    color: #764ba2;
}

/* Common styles for sections */
.d , .b  {
    width: 80%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    background-image: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    left: 15px;
}

.d input[type="text"],
.d input[type="number"] {
    width: 93%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.b button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    color: #333333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.section button:hover {
    background-color: #f3a83c;
    color: #ffffff;
}

.d, .b, .res {
    position: relative;
    left: 10%;
}

.b {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Ensure consistent spacing between items */
}

.res {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 440px;
}

#plot {
    left: 0%;
    width: 100%;
    max-width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    #plot {
        max-width: 100%;
        width: 300px;
    }
    .d, .b {
        position: relative;
        left: 5%;
    }
    .res{
        position: relative;
        left: 0%;
    }
}
