* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    font-weight: 1000;
}

.logo {
    padding-left: 1.5rem;
}

.logo img {
    width: 70px;
}

nav a{
    text-decoration: none;
    color: #333;
}

nav ul{
    padding-top: 1rem;
    list-style-type: none;
    display: flex;
    gap: 50px;
}

.login {
    padding-top: 1rem;
    padding-right: 3rem;
}

.login a {
    text-decoration: none;
    color: #333;
}

.logout button {
    margin-top: 0.5rem;
    margin-right: 2rem;
    background: url('images/power.png') no-repeat center center/contain;
    width: 35px;
    height: 35px;
    border: none;
    cursor: pointer;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #FDFAF6;
    color: #333;
    height: 100%;
}

.wrapper {
    padding: 2rem 3rem 0 3rem;
    display: flex;
}

.wrapper-feature {
    flex-direction: column;
}

.wrapper h1, p{
    padding-right: 2rem;
}

h1 {
    font-size: 60px;
    font-weight: 1000;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

h3 {
    margin-bottom: 1rem;
}

h4 {
    margin-bottom: 1rem;
}

.green {
    color: #5EB47C;
}

p {
    font-size: 22px;
    margin-bottom: 2rem;
    color: #444;
    line-height: 2rem;
}

.homeimg img {
    margin-top: 0;
    float: right;
    max-width: 640px;
}

.aboutimg img {
    float: left;
    max-width: 640px;
    padding-top: 2rem;
    padding-right: 2rem;
    margin-bottom: 0.5rem;
}

.contactpage img {
    float: left;
    position: absolute;
    max-width: 510px;
    bottom: -140px;
}

button {
    background-color: #5EB47C;
    color: white;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 2rem;
}

button:hover {
    background-color: #579c77;
}

.aboutpage p {
    font-size: 19.5px;
    margin-bottom: 1.2rem;
}

.aboutpage h1 {
    margin-bottom: 1.8rem;
}

.italic {
    font-style: italic;
}

.center {
    width: 100%;
    margin-bottom: 1.4rem;
}

.center p {
    text-align: center;
    padding-right: 0;
}

.features {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2.1rem;
    padding: 1rem;
}

.features img {
    max-width: 150px;
    float: left;
}

.feature-box {
    flex: 0 0 50%;
    padding: 2rem;
}

.green-box {
    background: linear-gradient(to left, #007D6E, #5EB47C);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 2rem;
}

.green-box p, 
.green-box h3 {
    color: #FFFF;
}

.features p, 
.features h3 {
    padding-left: 200px;
}

.features p {
    font-size: 19px;
    margin-bottom: 0;
    padding-right: 0;
}

.contactpage {
    width: 50%;
    padding-left: 1rem;
    padding-right: 2rem;
}

.contactpage h2 {
    font-size: 50px;
    margin-bottom: 2rem;
    text-align: left;
}

.contact-form {
    background-color: #ffff;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 70%;
    height: 70%;
    margin-bottom: 120px;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.input {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input label,
.input-whole label {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 23px;
}

input,
textarea {
  padding: 20px;
  border: 1px solid #000;
  border-radius: 30px;
  font-size: 17px;
  font-family: inherit;
  height: 50px;
}

textarea {
    margin-top: 1rem;
    border-radius: 20px;
    resize: none;
    height: 200px;
    width: 100%;
}

.input-whole {
    width: 100%;
}

.login_class {
    background: url('images/background.png') no-repeat;
    background-color: #FDFAF6;
}

.login-container {
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 6rem;
}

.login-box {
    max-width: 550px;
    padding: 3rem;
    margin-top: 50px;
}

.login-box label {
    font-weight: 600;
    font-size: 1rem;
}

.login-box input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: 15px;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.login-btn {
    border-radius: 15px;
    width: 100%;
    height: 50px;
    cursor: pointer;
    margin-top: 1.5rem;
}

.signup-text {
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0;
    text-align: center;
}

.signup-text a {
    font-weight: 600;
    text-decoration: underline;
    color: #333;
}

#back_button {
    background: url('images/button.png') no-repeat center center/contain;
    width: 100px; 
    height: 50px;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;  
    left: 20px;  
}

.login-container footer {
    position: absolute;   
    bottom: 20px;
    right: 285px;
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
}

.container {
    max-width: 700px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.container h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.container label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.mood-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.mood-options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mood-options label.custom-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 1rem 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
  font-weight: 500;
  user-select: none;
}

.mood-options div[id$="img"] {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mood-label {
    margin-bottom: 30px;
}

#dejectedimg {
  background-image: url('images/dejected.png');
}

#dimimg {
  background-image: url('images/dim.png');
}

#neutralimg {
  background-image: url('images/neutral.png');
}

#mellowimg {
  background-image: url('images/mellow.png');
}

#cheerfulimg {
  background-image: url('images/cheerful.png');
}

.mood-options input[type="radio"]:checked + label.custom-radio {
  border-color: #5EB47C;
  background-color: #e9f5ed;
  font-weight: 700;
  color: #5EB47C;
}

.sleep-exercise {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.cards {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    box-shadow: 0 0 0 1px #eee;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}
  
output {
    font-weight: bold;
}
  
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
  
.slider {
    position: absolute;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: 0.4s;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
  
input:checked + .slider {
    background-color: #5EB47C;
}
  
input:checked + .slider:before {
    transform: translateX(22px);
}

.hydration {
    margin-bottom: 30px;
}
  
.meals-social {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
  
.checkbox-group label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
}
  
.notes textarea {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
}
  
.submit-mood {
    text-align: center;
    margin-top: 20px;
}
  
.submit-mood button {
    background-color: #5EB47C;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}
  
.submit-mood button:hover {
    background-color: #3c6e4d;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 50px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex: 1 1 300px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3,
.faq h3 {
    margin-bottom: 10px;
    color: #5EB47C;
    font-size: 25px;
}

.card .subtitle {
    color: #6b7280;
    margin-bottom: 12px;
    font-style: italic;
    font-weight: 400;
}

.card ul,
.faq ul {
  padding-left: 20px;
  margin-top: 8px;
}

.card li,
.card p {
    font-size: 20px;
}

.card ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.video {
    display: flex;
    flex-wrap: wrap;
    background-color: #ffffff;
    padding: 30px 20px;
    margin: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    gap: 30px;
}

.youtube {
  flex: 1 1 500px;
  min-width: 300px;
}

.video-frame {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
}

.description {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.description h2 {
  font-size: 1.5rem;
  color: #4b5563;
  font-style: italic;
  margin-bottom: 80px;
}

.description p {
  font-size: 20px;
  padding-left: 20px;
}

.guide-table,
.faq {
    background-color: #FFFF;
    padding: 30px 20px 20px 20px;
    margin: 20px 50px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.guide-table h3 {
    padding-left: 12px;
    font-size: 25px;
}

.mental-health-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.mental-health-table caption {
    font-style: italic;
    caption-side: bottom;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: gray;
}

.mental-health-table thead {
    text-align: left;
}

.mental-health-table th,
.mental-health-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.mental-health-table th {
    border-bottom: 1px solid #ccc;
}

.faq {
    padding: 30px 40px;
    margin-top: 40px;
}

.faq h4 {
    font-size: 21px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.faq p,
.faq li {
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
    padding-left: 20px;
}

footer {
    text-align: center;
    font-size: 0.7rem;
    font-style: italic;
    color: #777;
    padding-bottom: 1.5rem;
}