/* General Styles */
* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f7fa;
}

h1 {
    font-size: 40pt;
}

.nav {
    max-width: 1050px;
    margin: auto;
    display: flex; 
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-right: 30px;
    margin-right: auto;
}

.nav a {
    padding-right: 30px;
    text-decoration: none;
    color: #0097b2;
}

.nav a:hover {
    color: #000;
    transition: 0.3s ease;
}

.nav img {
    margin-right: auto;
}

button {
    color: #fff;
    background: linear-gradient(to right, #0097b2, #7ed957);
    border: none;
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
}

button:hover {
    transition: 0.6s ease;
    color: #000;
}

.footer { 
    font-size: 9pt;
    color: lightslategray; 
    width: 100vw;
    bottom: 2vh; 
    text-align: center;
    z-index: 10;
    position: relative; 
}

.styled-divider {
    opacity: 0;
    border: 0;
    border-top: 2px solid lightgray;
    width: 80%;
    margin: 20px auto;
    max-width: 1050px;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.6s;
}

/* ALERTS */
.alert-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alert-message {
    background-color: red;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease-out;
    transition: opacity 0.5s ease;
}

.alert-message.success {
    background-color: green;
}

.alert-message.warning {
    background-color: yellow;
    color: black;
}

.alert-message.fade-out {
    opacity: 0;
}


input[type="text"] {
    width: 90%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="password"] {
    width: 90%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    overflow-y: hidden;
    min-height: 50px;
    box-sizing: border-box;
}



/* Home Page */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 55vh;
    padding-top: 20vh;
    animation: fadeUp 0.5s ease-in-out forwards;
}

.welcome-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}


/* Login/Signup Page */
.auth-container {
    padding-top: 10vh;
    padding-bottom: 20vh;
}

.auth-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-buttons {
    opacity: 0;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.2s;
}

.auth-buttons a {
    text-decoration: none;
}

form {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
}

/* Welcome Page */
.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
    padding-bottom: 20vh;
    padding-left: 10vw;
    padding-right: 10vw;
    animation: fadeSlideIn 1.0s forwards;
}

.welcome-container h1 {
    margin: 10px;
}

.welcome-container h2 {
    color:#0097b2;
    margin: 0;
    padding-bottom: 20px;
}

.welcome-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding-bottom: 1vh;
}

.welcome-content-container {
    opacity: 0;
    padding: 40px;
    margin: 20px;
    max-width: 1050px;
    width: 70%;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.3s;
    background-color: #fff;
    border-radius: 20px;
    transition: 0.3s ease-in-out;
}

.acknowledgement-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    margin: 20px;
    max-width: 1050px;
    width: fit-content;
    animation: fadeSlideIn 1.0s forwards;
    background-color: #fff;
    border-radius: 20px;
    transition: 0.3s ease-in-out;
}

.acknowledgement-box button {
    transition: 0.3s ease-in-out;
    animation: fadeSlideIn 1.0s forwards;
}

@media (prefers-color-scheme: light) {
    .welcome-content-container {
        background-color: #fff;
        color: #222;
    }
    .acknowledgement-box {
        background-color: #fff;
        color: #222;
    }
}

@media (prefers-color-scheme: dark) {
    .welcome-content-container {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    .acknowledgement-box {
        background-color: #1a1a1a;
        color: #fff;
    }
}

.welcome-content-container:hover,
.acknowledgement-box:hover {
    scale: 1.05;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

.welcome-content-container p {
    line-height: 2; 
    margin: 0;
}

.welcome-content-container li {
    padding: 10px;
}

/* FAQs Page */
.faq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20vh;
}

.faq-container p {
    font-size: larger;
}

.question-container {
    padding-top: 20px;
    padding-left: 10vw;
    padding-right: 10vw;
    max-width: 1050px;
    width: 80%;
    animation: fadeSlideIn 1.0s forwards;
}

.question-container h2 {
    color:#0097b2
}


/* About Page */

.about-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20vh;
}

.about-container h2 {
    color: #0097b2;
}

.about-container p,
.about-container li {
    font-size: larger;
    
}

.about-section {
    padding-top: 20px;
    max-width: 1050px;
    width: 80%;
    display: flex;
    flex-direction: row;
    
}

.about-sub-section {
    max-width: 950px;
    opacity: 0;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.2s;
}

.about-images {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideIn 1.0s forwards;
    padding-bottom: 2vh;
}

.about-images img {
    height: 200px; 
    width: 200px;
    transition: transform 0.3s ease;
    margin: 3vw;
    margin-bottom: 1vh;
}

.Demo_SS {
    height: 450px; 
    margin: 30px;
    margin-right: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.4s;
}
.atomic-habits,
.alquist-2020 {
    height: 350px; 
    margin: 30px;
    margin-left: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.4s;
}

.chatbot-img {
    height: 200px;
    border-radius: 50%;
    margin: 30px;
    margin-right: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeSlideIn 1.0s forwards;
    animation-delay: 0.4s;
}

.about-section p {
    
}

.mhk_pfp:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 30px #7ed957;
}

.saw_pfp:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 30px #0097b2;
}

.profile {
    text-align: center;
}

.name {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.role {
    color:#45a049;
}



/* myEverest Page */
.dashboard-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20vh;
}

.dashboard-container form {
    background: none;
    padding: 0;
}

.createGoals-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    padding-bottom: 3vh;
    justify-content: center; 
}

.createGoals_buttons {
    opacity: 0;
    animation: fadeUp 0.5s ease-in-out forwards;
    animation-delay: 0.4s;
}

.group-reminder {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}


.SMART {
    display: none; 
    overflow: hidden;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    animation: fadeSlideIn 0.5s forwards;
    background-color: lightgray;
}

.SMART label {
    font-weight:bold;
    font-size: medium;
}

.collapsible {
    color: white;
    width: 100%;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0px 5px #000;
    margin: 5px; 
} 

.collapsible.active {
    background-color: #45a049; 
}

.prevGoals-container {
    width: 80%;
    display: flex;
    flex-direction: column;
    padding-bottom: 5vh;
    gap: 20px;
}

.main-goal-box {
    background-color: #fff; 
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 50%;
    max-width: 600px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 0.5s ease-in-out forwards;
    opacity: 0;
} 

.goal-label {
    font-size: 30px;
    color: #000;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.goal-input {
    text-align: center;
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid #a5d6a7;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

.goal-input::placeholder {
    color: #000000;
    font-style: normal;
}

.goal-input:focus {
    border-color: #66bb6a;
    background-color: #ffffff;
    box-shadow: 0 0 10px #66bb6a77;
}

#subGoalContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.subGoalInput h2 {
    display: inline;
    font-weight:lighter;
}

.subGoal-wrapper {
    align-items: center;
    gap: 20px;
}

.subGoal-box {
    display: flex;
    flex-direction: column;
    display: flex;
    padding: 30px;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    margin: 10px;
    animation: fadeSlideIn 0.05s forwards;
    transition: all 0.3s ease;
    max-width: 350px;
}

.subGoal-label {
    font-weight: bold;
}
  

.input-specific,
.input-measurable,
.input-achievable,
.input-relatable,
.input-time {
    width: 100%;
    height: 80px;
    font-size: 15px;
    padding: 5px;
    margin: 5px;
    margin-left: 0px;
    border-radius: 10px;
}

.SMART label[for="start-date"],
.SMART label[for="end-date"] {
    margin-right: 10px;
}

.SMART input[type="date"] {
    padding: 8px 10px;
    margin: 5px 0 10px 0;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 200px;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.05);
    transition: border-color 0.2s ease;
}

.SMART input[type="date"]:focus {
    border-color: #0097b2;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 151, 178, 0.5);
}

.SMART .countdown-message {
    margin-top: 10px;
    font-weight: bold;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    padding-bottom: 0;
    margin-bottom: 0;
}

.stepContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
}

.stepContainer p {
    margin: 0;
    margin-top: 20px;
}

.reorder-btn-div {
    display: flex;
    flex-direction: column;
}

.arrow_div {
    padding: 10px;
}

/* Progress Bar & Message */

.countdown-message {
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.countdown-message.success {
    background-color: #e8f5e9;
    color: green;
}

.countdown-message.fail {
    background-color: #ffebee; 
    color: red;
}

.countdown-message.warning {
    color: orange;
}

.countdown-message {
    color: #0097b2;
    font-size: 16px;
    text-align: center;
}

.progress-bar {
    width: 200px;
    height: 10px;
    background-color: #eee;
    border-radius: 10px;
    margin: 10px auto 0 auto;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #45a049;
    transition: width 0.3s ease;
}

/* ChatBot */
#chatbot-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    font-family: system-ui, sans-serif;
}

#chatbot-bubble {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    transition: transform 0.3s ease;
}

#chatbot-bubble:hover {
    transform: scale(1.2);
}

#chatbot-message {
    position: absolute;
    bottom: 120px;
    right: 8px;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    width: 400px;
    height: 500px;
    transition: none;
    display: none;
    opacity: 0;
}

#chatbot-message.show {
    display: block;
    animation: fadeSlideIn 0.4s ease forwards;
}

#chatbot-message.hide {
    animation: fadeSlideOut 0.4s ease forwards;
}

/* myEverest Page Buttons */
.dashboard-container button {
    color: #fff;
    background: #0097b2;
    border: none;
    border-radius: 5px;
    padding: 10px;
    text-decoration: none;
    max-width: max-content;
}

.dashboard-container button:hover {
    color: #000;
    background: #7ed957;
}

.prevGoals-container button:hover {
    color: #fff;
    background: red;
}

button.reorder-btn {
    background: #eee;
    border: none;
    font-size: 16px;
    padding: 2px 3px;
    border-radius: 4px;
    cursor: pointer;
}

button.reorder-btn:hover {
    background: gray;
}


#subGoalDeleteBtn {
    margin: 5px;
    margin-left: 10px;
    color: red;
    background-color: #fff;
    box-shadow: 0px 0px 5px #000;
    padding: 5px;
}

#subGoalDeleteBtn:hover {
    background-color: red;
    color: #fff;
    border: none;
}

#stepAddBtn {
    background-color:#0097b2;
    margin: 5px;
    padding: 5px;
    box-shadow: 0px 0px 5px #000;
}

#stepAddBtn:hover {
    background-color:#7ed957;
    color: #000;
}

#stepDeleteBtn {
    margin: 5px;
    /* margin-left: 80px; */
    color: red;
    background-color: #fff;
    box-shadow: 0px 0px 5px #000;
    padding: 5px;
}

#stepDeleteBtn:hover {
    background-color: red;
    color: #fff;
    border: none;
}

.step-text {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    min-width: 150px;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1;
}



/* Custom Checkbox Styles */
input[type="checkbox"] {
    width: 20px; 
    height: 20px;
    appearance: none; 
    background-color: white;
    border: 2px solid gray;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

input[type="checkbox"]:checked {
    background-color: #000;
    position: relative;
}

input[type="checkbox"]:checked::after {
    content: "✔";
    color: white;
    font-size: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Animations */ 
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }   
}

/* @keyframes backgroundColorChange {
    0% {
      background-color: #fafafa;
    }
    25% {
      background-color: #f0f0f0;
    }
    50% {
      background-color: #e0e0e0;
    }
    75% {
      background-color: #dcdcdc;
    }
    100% {
      background-color: #fafafa;
    }
  } */

.animated-goal-box {
    animation-delay: 0.2s;
}

.letter {
    opacity: 0;
    display: inline-block;
    animation: fadeSlideIn 0.5s forwards;
}

#animated-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 70px;
    color: #000;
    /* text-shadow:
        0 0 5px rgb(255, 255, 255),
        0 0 10px rgb(126, 229, 176),
        0 0 20px rgb(118, 246, 246); */
    text-align: center;
    margin-bottom: 40px;
}

.fade-out {
    animation: fadeSlideOut 0.2s forwards;
}


