* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/*Header section*/
.headerdiv {
    display: flex;
    justify-content: space-between;  
    align-items: center;
    background-color: rgb(252, 252, 252); 
    height: 150px; 
    width: 100%;  
}
.navclass{
    display: flex;
    justify-content: space-evenly;  
    align-items: center; 
    height: 100%; 
}
.logoimg {
    height: 300px;
    width: 450px;
    
}
.profileicon{
    height: 100px;
    width: 100px;
    border-radius: 60px;
    margin-left: 10px;
    cursor: pointer;
}
.home-loginlogout{
    color: #428bd0;
    font-family: 'Times New Roman', Times, serif;
    height: 35px;
    width: 80px;
    border: solid 1px #428bd0 ;
    background-color:  rgb(252, 252, 252);
    font-size: 20px;
    padding: 5px 5px 9px 5px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 12px;
}
.home-loginlogout:hover {
    color: rgb(252, 252, 252); 
    background-color: #428bd0;
    border-radius: 12px;
    padding: 5px 5px 5px 5px;      
}
/*home page section*/
.calculationslist a{
    text-decoration: none; 
    color: inherit;        
}
.calculationslist a:visited, 
.calculationslist a:active, 
.calculationslist a:focus {
    text-decoration: none;
    color: inherit;
    outline: none; 
}
.navclass ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#calculatorlink{
    border: solid 1px rgb(3, 11, 13);
    height: 44px;
    width: 98%; /* Use percentage so it shrinks nicely on smaller windows */
    max-width: 700px;
    margin-top: 5px;
    padding-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
    border-radius: 16px;
}
.calculationslist{
    display: flex;
    justify-content: space-evenly;  
    align-items: flex-start; 
    padding-top: 20px;

}
.calculationslist ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#calculatorlink:hover {
    color: rgb(252, 252, 252); 
    background-color: #428bd0;
    border-radius: 12px;
    padding: 5px 5px 5px 5px;      
}
/*Footer section*/
.footerarea{
    display: flex;
    flex-direction: column;   /* Stacks them vertically */
    justify-content: center;  /* Aligns the stack to the vertical center */
    background-color: rgba(207, 205, 205, 0.68); 
    height: 150px; 
    width: 100%;
    margin-top: 20px;
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
}
.footerarea a{
    text-decoration: none; 
    color: inherit;   
}
.footerarea a:visited, 
.footerarea a:active, 
.footerarea a:focus {
    text-decoration: none;
    color: inherit;
    outline: none; 
}
.footerarea-1 {
    display: flex;
    justify-content: space-between;  
    align-items: center;
    margin-bottom: 20px;
}
.footertags{
    margin-left: 20px;
}
.footertags {
    color: #428bd0;
    font-family: 'Times New Roman', Times, serif;
    height: 35px;
    background-color: transparent;
    border: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: 12px;
}
.footertags:hover {
    color: rgb(252, 252, 252); 
    background-color: #428bd0;
    border-radius: 8px;
    padding: 8px;      
}
.followbuttons{
    color: #428bd0;
    font-family: 'Times New Roman', Times, serif;
    height: 35px;
    background-color: transparent;
    border: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: 12px;
    margin-right:10px;
}

/*.followbuttons:hover {
    color: rgb(252, 252, 252); 
    background-color: #428bd0;
    border-radius: 12px;
    padding: 5px 5px 5px 5px;      
}*/
.followus_area{
    display: flex;
    text-align: center;
    justify-content: center;
    background-color:rgba(12, 11, 11, 0.68) ;
    height: 80px;
    padding-top:25px;

}
.followwebsites-div{
    display: flex;
    text-align: center;
    justify-content: center;
}
.followustext-div{
    margin-top:6px;
    margin-right: 50px;
}
#fb-icon:hover {
    background-color: #0866FF; /* Official FB Blue */
    color: white;
    width: 100px;
    font-family: "Franklin Gothic Medium", Arial, sans-serif;
}
#insta-icon:hover {
    /* Layout */
    width: 150px;
    cursor: pointer;
    border: none;
    border-radius: 12px; /* IG uses slightly more rounded corners */
    
    /* The Iconic Instagram Gradient */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #FFFFFF;
    
    /* Font Styles */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    
    /* Spacing & Effects */
    padding: 7px 15px 15px 15px;
    text-decoration: none;
    transition: opacity 0.2s ease; /* Gradients don't animate well, so we use opacity */
}
#youtube-icon:hover{
    /* Layout */
    width: 120px;
    cursor: pointer;
    border: none;
    border-radius: 12px; /* YouTube often uses very sharp or slightly rounded corners */
    
    /* Colors & Font */
    background-color: #FF0000; /* Official YouTube Red */
    color: #FFFFFF;
    font-family: "Roboto", "Arial", sans-serif; /* YouTube's signature font style */
    font-weight: 500; /* Medium boldness */
    font-size: 16px;
    padding: 10px 10px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
/*FORMS*/
/* This targets every <p> tag that is a direct child of a <form> */
form p {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;                      
    align-items: center;
    margin-bottom: 1rem;
    max-width: 800px;               
}


form p label {
    grid-column: 1;
    text-align: left;
    font-weight: 600;
    background-color: #428bd0;
    color: white;
    margin-left:20px;
    padding-left: 8px;
    padding-top: 6px;
    padding-bottom: 6px;
    border-radius: 10px;
    border: solid 1px rgb(3, 11, 13);
    text-shadow: 
        -.5px -.5px 0 rgb(3, 11, 13),  
         .5px -.5px 0 rgb(3, 11, 13),
        -.5px  .5px 0 rgb(3, 11, 13),
         .5px  .5px 0 rgb(3, 11, 13);
}


form p input, 
form p select, 
form p textarea {
    grid-column: 2;
    width: 100%;                    
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.refreshbutton{
    color: #428bd0;
    font-family: 'Times New Roman', Times, serif;
    height: 35px;
    background-color: transparent;
    border: transparent;
    font-size: 20px;
    cursor: pointer;
    border-radius: 16px;
    margin-left: 40px;
}
.refreshbutton:hover {
    color: rgb(252, 252, 252); 
    background-color: #428bd0;
    border-radius: 8px;
    padding: 8px;      
}
.parkland_rules {
    margin-left: 20px;
    font-family: 'Times New Roman', Times, serif;
    color: #5881a8;
    size: 24px;
    font-style: italic;
}
.calculation_name{
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
    font-weight: 700;
    margin-left: 20px;
    margin-bottom: 20px;
    text-decoration: underline;
}
.result{
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
    font-weight: 700;
    margin-left: 20px;
    margin-bottom: 20px;
}
input[type="radio"] {
    margin-left: 20px;
    margin-bottom: 20px;
    margin-right: 10px; 
}

*{
    color: #0e487e;
    
}
table {
    margin-left: 25px;
    color: #0e487e;
    font-family: 'Times New Roman', Times, serif ;
    border: solid 1px red;
}

th, td {
    padding: 10px;
}
th {
    color:#FF0000;
}

/*hostory section*/
.calculationtype {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #c04974c2;
    font-weight: 900;
    margin-left: 20px;
    margin-bottom: 20px;
}

.keyvalueinprofile {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
    margin-left: 20px;
    margin-bottom: 20px;
}

.date_and_time {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
    margin-left: 20px;
    margin-bottom: 20px;
}

.no_calculations {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
    margin-left: 20px;
    margin-bottom: 20px;
}
.med-table {
    border-collapse: collapse;
    width: 100%;
    margin-left: 25px;
    color: #0e487e;
    font-family: 'Times New Roman', Times, serif ;
    border: solid 1px red;
}

.med-table th,
.med-table td {
    padding: 10px;
    text-align: left;
}

.med-table th {
    border-bottom: 2px solid red ;
    color: #FF0000;
    border-right:2px solid red ;
}

.med-table td {
    border-bottom: 1px solid red; /* light grey line */
    border-right:1px solid red ;
}
.input-key {
    font-weight: 600;
    color: #0f1c2e;
}

.input-value {
    color: #b190dd;
}

.input-pair {
    margin-bottom: 4px;
}
.profileresult{
    color: rgb(34, 173, 140);
}
.dateprofile{
    color: rgb(173, 48, 34);
}
.usernamedisplay{
    color:#156920;
    font-family: 'Times New Roman', Times, serif;
    size:20px;
    margin: 25px;
    font-weight: 600;
}
/*Mobile repsiveness */
/* --- Mobile Responsive Rules --- */
@media screen and (max-width: 768px) {
    
    /* 1. Stack Header Elements Vertically */
    .headerdiv {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .logoimg {
        width: 250px; /* Scaled down for mobile */
        height: auto;
    }

    .navclass {
        flex-direction: row; /* Keep buttons and profile side-by-side on mobile */
        width: 100%;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    /* 2. Style the "Ask AI" Button */
    .mobile-ai-btn {
        display: block; /* Shown only on mobile via media query logic */
        width: 90%;
        margin: 15px auto;
        padding: 12px;
        background-color: #428bd0;
        color: white;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 18px;
        cursor: pointer;
        order: 3; /* Places it below the nav area */
    }

    /* Hide AI Sidebar on mobile to use the button instead */
    #chat-sidebar {
        display: none !important; 
    }

    /* 3. Stack Calculations Vertically */
    .calculationslist {
        padding: 10px;
    }

    #callistul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #calculatorlink {
        width: 100%;
        font-size: 16px; /* Slightly smaller text for mobile */
	height: 100px;
	padding-left: 10px;
	padding-right: 5px;
	padding-top: 10px;
	padding-bottom: 5px;
    }

    /* 4. Stack Footer Buttons Vertically */
    .footerarea {
        height: auto;
        padding: 20px 0;
    }

    .footerarea-1 {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .footertags {
        width: 200px;
        text-align: center;
    }

    .followus_area {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .followwebsites-div {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hide the mobile AI button on Desktop */
@media screen and (min-width: 769px) {
    .mobile-ai-btn {
        display: none;
    }
}
/*End of mobile responsiveness */
.main-container {
    display: flex;
    min-height: calc(100vh - 300px);
    position: relative;
    padding: 20px;
    align-items: flex-start;
}

@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column; /* Stacks the calculator list and (hidden) sidebar */
        padding: 10px;
    }
}
.heading-about-text{
    font-family: 'Times New Roman', Times, serif;
    font-size: 30px;
    color: #093156;
    text-decoration: underline;
}
.about-text{
    font-family: 'Times New Roman', Times, serif;
    font-size: 20px;
    color: #0e487e;
}

