/* Style the main content */

body {
    font-family: Georgia, serif;
    background-color: #e8f5e9;
    color: #2e7d32;
    text-align: center;
    margin: 0;
    padding: 20px;
}

/* JavaScript */
.converter, .sleep {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/*Sleep Checker Box */
.sleep {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #81c784;
    background: #f1f8e9; /* Light greenish box */
    border-radius: 10px;
}

/* Text Styling for titles */
h2 {
    font-weight: 600;
    color: #1b5e20; /* Darker green for titles */
}

/*Paragraphs*/
p {
    font-size: 18px;
    line-height: 1.6;
}

/* Form Elements */
input, select, button {
    padding: 10px;
    font-size: 16px;
    margin: 10px 0;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    outline: none;
    text-align: center;
}

/* Dropdown */
select {
    background: #f1f8e9;
    color: #1b5e20;
    font-weight: 500;
    border-radius: 8px;
}

/* Button Styling */
button {
    background-color: #66bb6a;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

button:hover {
    background-color: #388e3c;
}

/* Styled Message Box */
.sleepMessage {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: white;
    border: 2px solid #66bb6a;
    display: none;
}

/*Style the converted weight*/
.result {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
}

/* Style the navigation bar */
nav {
    background-color: #1b5e20;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navigate {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigate li {
    display: inline;
    margin: 0 15px;
}

.navigate a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

/*Footer Styling */
footer a {
    color: rgb(3, 77, 31); /* Keeps links readable */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

footer a:hover {
    color: #a5d6a7;
}

form {
    background: #f0fdf4;
    padding: 20px;
    border: 2px solid #a3d9a5;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

label, input, textarea, select {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
input, textarea, select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: white;
    box-sizing: border-box;
  }
  
input:focus, textarea:focus, select:focus {
    outline: 2px solid #81c784;
  }

input[type="submit"] {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
  }
  
input[type="submit"]:hover {
    background-color: #388e3c;
  }


.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 3px;
    margin-bottom: 10px;
    display: block;
  }
  
/* Welcome Message */
#welcomeMsg {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
    color: #2e7d32;
  }