/* Base and Reset Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Inter", ui-sans-serif;
    font-weight: 600;
    background: #f2f5f7;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #414141;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 50%;
    margin: 0 auto;
    padding: 5px 0;
    position: relative;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

header::before {
    content: "";
    position: absolute;
    height: 1.3px;
    width: 100%;
    background-color: #d4d8de;
    top: 100%;
    left: 0;
    z-index: -1;
}

.logo, .menu-items {
    font-family: 'Inter', sans-serif;
    z-index: 1;
}

.logo {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0;
    color: #949ba6;
    padding: 3px 6px;
    border-radius: 5px;
    transition: background-color 0.1s ease-in, color 0.1s ease-in;
}

.logo-link:hover .logo {
    background-color: #d6e3f8;
    color: #5c9cf5;
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 25px;
    font-weight: 400;
}

.menu-link,
.github-icon {
    color: #949ba6;
    font-size: 1em;
    padding: 2px 4px;
    border-radius: 5px;
    transition: background-color 0.1s ease-in, color 0.1s ease-in;
}

.menu-link:hover,
.github-icon:hover {
    background-color: #e7ebed;
    color: #67717f;
}

/* Main Content Styles */
.main-content-wrapper {
    width: 50%;
    margin: 0 auto;
}

.info-text {
    max-width: 80%;
    font-size: 4em;
    color: #44474b;
    font-weight: 600;
    line-height: 1.4;
}

.highlight-text {
    background-color: #d6e3f8;
    padding: 4px 7px;
    border-radius: 8px;
    color: #5c9cf5;
}

/* Condition Options Styles */
.conditions {
    width: 50%;
    margin: 40px auto;
}

.condition-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1.5em;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    margin-bottom: 20px; /* Increase vertical spacing */
    transition: all 0.3s ease-in-out, border-color 0.3s ease-in-out;
    text-decoration: none;
}

.condition-title {
    font-size: 1.4em;
    margin-right: 20px; /* Space between title and blurb */
    color: #2c3138;
    font-weight: 700;
    flex: 1; /* Allow it to grow and fill space if needed */
}

.condition-option[data-condition="psoriasis"]:hover {
    border-color: #5c9cf5 !important;
    background-color: #eff5fe;
}

.condition-option[data-condition="psoriasis"]:active {
    background-color: #deebfd;
}

.condition-option[data-condition="eczema"]:hover {
    border-color: #ff7ea3 !important;
    background-color: #fff2f6;
}

.condition-option[data-condition="eczema"]:active {
    background-color: #ffe5ed;
}

.condition-option[data-condition="acne"]:hover {
    border-color: #f8e892 !important;
    background-color: #fefdf4;
}

.condition-option[data-condition="acne"]:active {
    background-color: #fefae9;
}

.condition-title {
    font-size: 1.4em;
    margin-bottom: 20px; /* Existing margin for spacing between title and blurb */
    color: #2c3138;
    font-weight: 700;
}

.condition-blurb {
    flex: 2; /* Allow it to grow and take up more space than title */
    font-size: 0.8em;
    color: #44474b;
    font-weight: 400;
    text-align: right; /* Align blurb to the right */
}


/* Footer */
footer {
    padding: 15px 0;
    text-align: center;
    font-size: 1.2em;;
    font-family: "Inter", ui-sans-serif;
}

footer a {
    color: #fff;
    border: 1px solid #5c9cf5;
    background-color: #5c9cf5;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in, all 0.3s ease-in;
    font-weight: 600;
}

footer a:hover {
    background-color: #7db0f7; /* light gray background */
}

footer a:active {
    border: 3px solid #9dc4f9;
}

/* Markdown Content Styles */
#markdown-content {
    font-weight: 400;
}

#markdown-content h1 {
    font-size: 2em;
    background-color: #d6e3f8;
    padding: 10px 15px;
    border-radius: 8px;
    color: #5c9cf5;
}

#markdown-content h2 {
    font-size: 2em;
    color: #44474b;
    border-bottom: 2px solid #d6e3f8;
}

#markdown-content p,
#markdown-content ul,
#markdown-content ol {
    margin-top: 20px;
}

#markdown-content li {
    margin-bottom: 10px;
}

#markdown-content a {
    color: #5c9cf5;
    padding: 2px 4px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

#markdown-content a:hover {
    background-color: #d6e3f8;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .conditions {
        width: 90%;
    }
    .condition-option {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .conditions {
        width: 95%;
    }
}

/* Image Upload Styles */
.image-upload-section {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 50%;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#skinImages {
    padding: 10px;
    margin-top: 20px;
}

#analyzeButton {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f8e892;
    border: transparent;
    font-weight: 600;
    color: #000;
    border-radius: 5px;
    font-size: 1em;
    font-family: "Inter", ui-sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#analyzeButton:hover {
    background-color: #dfd183; /* light gray background */
}