body 
{
background-color: #bbdefb;
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 30px;
}

.container
{
    width: 850px; /* 850px on large screens... */
    max-width: 95%; /* ...but never wider than 95% of the window on small screens */
    margin: 0 auto;
    background-color: #fefdfb;
    border-radius: 8px;
    overflow: hidden; /* clips the nav bar's square corners to the container's rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-bar
{
    background-color: #1976d2;
    padding: 15px;
    text-align: center;
}

.nav-bar a
{
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    font-size: 16px;
}

.nav-bar a:hover {
    text-decoration: underline;
}

.content {
    padding: 35px;
}

h1
{
    color: #1976d2;
    text-align: center;
    margin-top: 0;
    font-size: 28px;
}

.student-img
{
    width: 130px;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 4px;
}

.divider
{
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.project-card 
{
    background-color: #fff;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.project-card h2
{
    color: #1976d2;
    margin-top: 0;
    font-size: 20px;
}

.project-images
{
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.project-img
{
    width: 260px;
    height: 160px;
    object-fit: cover; /* crops the image to fill the fixed 260x160 box instead of stretching it */
    border-radius: 6px;
    border: 1px solid #ccc;
}

.converter-result
{
    font-size: 24px;
    padding: 20px;
}

.btn-reset {
    margin-top: 10px;
}

.upper-part
{
    background-color: #1976d2;
    font-size: 28px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 25px;
    word-break: break-word; /* long results wrap onto a new line instead of overflowing the box */
    width: 30%;
    margin-left: 250px; /* pushes the box in from the left so it sits near the centre */
    border: solid;
    border-radius: 8px;
}

.bottom-part
{
    background-color: #fefdfb;
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
}

.bottom-part input,
.bottom-part select
{
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box; /* padding and border count inside the 100% width, so fields don't overflow */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.bottom-part label
{
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.bottom-part button
{
    width: 100%;
    padding: 10px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    margin-top: 5px;
}

.bottom-part button:hover {
    background-color: #115293;
}

/* !important lets this override the blue style from ".bottom-part button" */
.btn-reset
{
    background-color: #e0e0e0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

.btn-reset:hover {
    background-color: #d5d5d5 !important;
}

.checkbox-group {
    margin-bottom: 10px;
}

/* Undoes the bold labels from ".bottom-part label" so checkbox options look like normal text */
.checkbox-group label
{
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]
{
    width: auto; /* undoes "width: 100%" from ".bottom-part input" so checkboxes stay small */
    margin-right: 8px;
}

.birthday-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.birthday-inputs input {
    margin-bottom: 0 !important; /* !important beats the 15px margin from ".bottom-part input" */
}

.contact-success {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.contact-success ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.contact-error {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.bottom-part textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    resize: vertical;
}