.StdText{
    text-align: center;
    width: 100%;
    margin: 0 auto;
    font-size: 1.2em;
    color: black;
}
.DiagramImage{
    display: block;
    width: 50%;
    height: auto;
    margin: 20px auto;
}
.result{
    text-align: center;
    font-size: 1.75em;
    font-weight: bolder;
    background-image: linear-gradient(to right, red, yellow);
    color: transparent;
    background-clip: text;
}
.sun_height_form{
    display: flex;
    flex-direction: column;
    width: 40%;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
}
.form_group{
    width: 100%;
    transition: transform 0.7s;
}
.form_group:focus-within{
    transform: scale(1.2);
}
.form_label{
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 1.25em;
    color: #4d4d4d;
    transition: all 0.7s;
}
.form_input{
    width: 100%;
    box-shadow: black 2px 2px 10px;
    border-radius: 5px;
    border-color: #ccc;
    border-style: none none solid none;
    border-width: 3px;
    outline: none;
    font-size: 1.25em;
    background-color: #E8F0FE;
    color: #4d4d4d;
    padding: 5px;
    resize: none;
    transition: all 0.7s;
}
.form_input:hover{
    box-shadow: none;
    outline: none;
    border-color: orange;
}
.form_input:focus{
    box-shadow: none;
    outline: none;
    border-color: orange;
}
.form_input:invalid:focus{
    border-color: red;
}
.form_input:valid:focus{
    border-color: green;
}
.form_input::placeholder{
    color: #b3b3b3;
}
.form_buttons{
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 50px;
}
.calculate_button{
    width: 45%;
    padding: 5px;
    box-shadow: black 2px 2px 10px;
    border-radius: 5px;
    border-color: #ccc;
    border-style: none none solid none;
    border-width: 3px;
    background-color: #E8F0FE;
    font-size: 1.25em;
    transition: all 0.7s;
}
.calculate_button:hover{
    border-color: orange;
    box-shadow: none;
    cursor: pointer;
}
.calculate_button:focus{
    border-color: orange;
    box-shadow: none;
    outline: none;
    transform: scale(1.2);
}
.reset_button{
    width: 45%;
    padding: 5px;
    box-shadow: black 2px 2px 10px;
    border-radius: 5px;
    border-color: #ccc;
    border-style: none none solid none;
    border-width: 3px;
    background-color: #E8F0FE;
    font-size: 1.25em;
    transition: all 0.7s;
}
.reset_button:hover{
    border-color: orange;
    box-shadow: none;
    cursor: pointer;
}
.reset_button:focus{
    border-color: orange;
    box-shadow: none;
    outline: none;
    transform: scale(1.2);
}

@media (max-width: 1600px){

    .sun_height_form{
        width: 45%;
    }
    
}

@media (max-width: 1400px){

    .sun_height_form{
        width: 50%;
    }
    
}

@media (max-width: 1200px){
    .std_text{
        width: 60%;
    }
    .sun_height_form{
        width: 60%;
    }
    .diagram_image{
        width: 60%;
    }

} 

@media (max-width: 1000px){
    .std_text{
        width: 70%;
    }
    .sun_height_form{
        width: 70%;
    }
    .diagram_image{
        width: 70%;
    }
}

@media (max-width: 800px){
    .std_text{
        width: 80%;
        font-size: 1em;
    }
    .sun_height_form {
        width: 80%;
    }
    .diagram_image{
        width: 80%;
    }
}

@media (max-width: 600px){
    .std_text{
        width: 90%;
    }
    .sun_height_form {
        width: 90%;
    }
    .diagram_image{
        width: 90%;
    }
    .form_group:focus-within{
    transform: scale(1.1);
    }
    .form_input{
        font-size: 0.9em;
    }
    .form_label{
        margin-top: 5px;
        font-size: 0.9em;
    }
    .form_buttons{
        margin-top: 25px;
    }
    .calculate_button{
        font-size: 0.9em;
    }
    .reset_button{
        font-size: 0.9em;
    }
}

@media (max-width: 400px){
    .std_text{
        font-size: 0.8em;
        width: 90%;
        padding: 10px;
    }
    .sun_height_form {
        width: 100%;
        padding: 10px;
    }
    .diagram_image{
        width: 100%;
        padding: 10px;
    }  
    .result{
        font-size: 1em;
    }
    .form_group:focus-within{
        transform: none;
    }
    .form_input{
        box-shadow: none;
        font-size: 0.8em;
    }
    .form_label{
        margin-top: 5px;
        font-size: 0.8em;
    }
    .form_buttons{
        flex-direction: column;
        margin-top: 20px;
    }
    .calculate_button{
        width: 100%;
        height: 30px;
        margin-bottom: 10px;
        box-shadow: none;
        font-size: 0.8em;
    }
    .reset_button{
        width: 100%;
        height: 30px;
        margin-bottom: 10px;
        box-shadow: none;
        font-size: 0.8em;
    }
}