*{
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}
html, body {
    height: 100%;
    margin: 0;
}
body{
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: #0b1220;
    color: #e5e7eb;
    margin: 0;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.Terminology_container section{
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 10px;
    margin: 20px;
    width: fit-content; 
    box-shadow: 2px 2px 4px #100011;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.Terminology_container p{
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
}

.About_container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    margin: 10px auto;
    margin-bottom: 20px;
    border: 1px solid #334155;
    background-color: #111827;
    max-width: 650px; 
    width: 100%;
    box-shadow: 2px 2px 4px #100011;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
}
.About_container section {
    background-color: #111827;
   color: #9ca3af;
}

header{
    text-align: center;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;

    padding: 10px 16px;
    border-radius: 10px;

    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

nav a:hover {
    background: #1e293b;
    color: white;
}

nav a:active {
    background: #2563eb;
    color: white;
}

footer{
    text-align: center;
    padding: 5px;
    margin-top: 50px ;
    background-color: #0d0c21;
    border-top: 2px solid #0c0c0c;
    color: #ffffff;
}
footer a{
    color:#ffffff;
}
.portrait-img{
    display: block;
    margin: 0 auto 20px; 
    margin-top: 20px;
    width: 140px;
    height: 140px;
    border-radius: 50%; 
    object-fit: cover;
}   
#yahoo-link{
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    color: #9ca3af;
}
#linkedin-link:hover{
    color: #741111;
}
form {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
form:hover {
    border-color: #3b82f6;
    transition: 0.2s ease;
}
#forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#graph-forms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

#single-forms{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    max-width: 50%;
    justify-content: center;
    margin: 30px auto;
}
form h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #d3dbe4;
    letter-spacing: 0.3px;
}
form{
    min-height: 260px;
}

@media (max-width: 700px) {
    #forms {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    #graph-forms {
        grid-template-columns: 1fr;
    }
}
button {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 6px;
}
#clear-graph-button{
    display: flex;
    align-items: center;
    margin: 15px auto;
}
#interval-btn-display {
    display: flex;
    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);

    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0;
    margin: 0 auto;

    margin-bottom: 30px;
}

#interval-btn-display button {
    margin: 0;
    border: none;
    background: transparent;

    padding: 10px 20px;
    color: white;
    
    line-height: 1;
}
#interval-btn-display button:hover {
    transform: none !important;
    box-shadow: none !important;
}

#interval-btn-display button.active {
    background: rgba(59, 130, 246, 0.25);
   
}

#riskReturnChart {
    display: block;
    width: max-content;
    height: 500px;
    margin: 0 auto;
    margin-top: 30px;
    background-color: #111827;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.3);
}
input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #374151;
    background: #0f172a;
    color: white;
    margin-bottom: 4px;
}
.metric-card {
    
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    border: 1px solid #1f2937;
    margin-top: 8px;
}
.metric-card-row{
    font-size: 12px;
}
.close-btn{
    font-size: 12px;
    padding: 4px;
    
}
label {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}
#hero{
    margin: 30px 0 50px;
    padding: 30px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 20px;
}

#hero h1{
    font-size: 36px;
    margin-bottom: 14px;
}

#hero p{
    color: #9ca3af;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 20px;
}

#hero ul{
    padding-left: 20px;
    color: #d1d5db;
}