/* ======================================================== */
/* General body styling */
/* ======================================================== */
body {
    color: #333;
    background-color: #FFEBD8;
    font-family: 'Lato', 'Arial', 'Helvetica', sans-serif;
    font-size: 1.2em;
    min-height: 100vh;
    margin: 0 auto;
    padding-top: 50px;
    display: flex;
    justify-content: flex-start;
    text-align: center;
    align-items: center;
    flex-direction: column;
}

h1 {
    margin: 0 auto;
}

/* Inherit font settings for form elements */
button,
input,
textarea,
select {
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}

/* Subtitle styling */
p.subtitle {
    font-family: 'Lora', serif;
    margin-bottom: 20px;
}

/* ======================================================== */
/* Form container styling */
/* ======================================================== */
form {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    margin: 20px 0 40px;
}

/* Image styling */
img {
    width: 80%;
    height: auto;
}

/* Label styling */
label {
    margin-bottom: 10px;
    display: block;
}

/* Text input field styling */
input[type="text"] {
    width: 80%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
}

input[type="text"]:focus {
    border-color: #ccc;
    outline: none;
}

/* -------------------------------------------------------- */
/* Suggestions list styling */
/* -------------------------------------------------------- */

ul.suggestions {
    list-style: none;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-height: 30vh;
    overflow-y: auto;
}

ul.suggestions li {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

ul.suggestions li:hover {
    background-color: #FFEBD8;
}

/* -------------------------------------------------------- */
/* Tab styling */
/* -------------------------------------------------------- */

.Tab-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;
    flex-direction: row;
}

button.Tab {
    flex: 0 1 auto;
    padding: 10px 20px;
    margin: 0 5px;
    border: 2px solid #ff7800;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

button.Tab:hover {
    background-color: #ffe2c2;
}

button.Tab.active-tab {
    background-color: #ff7800;
    color: #fff;
}

button.Tab.active-tab::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #ff7800 transparent transparent transparent;
    position: absolute;
    bottom: -10px;
    left: 50%;
    margin-left: -10px;
}

/* -------------------------------------------------------- */
/* Input form of gene lists */
/* -------------------------------------------------------- */
textarea.geneList {
    max-width: 1200px;
    height: 120px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 10px;
    resize: both;
}

textarea.geneList:focus {
    border-color: #ccc;
    outline: none;
}

/* -------------------------------------------------------- */
/* Submit button styling */
/* -------------------------------------------------------- */
button.submitBtn {
    padding: 12px 20px;
    color: #fff;
    background-color: #ff7800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.submitBtn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

button.submitBtn:hover:enabled {
    background-color: #e66900;
}


/* ======================================================== */
/* Resources Section */
/* ======================================================== */

.resources-container {
    max-width: 800px;
    margin: 0 auto 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.resource-section {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.resource-section h3 {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
    font-weight: normal;
}

.resource-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #555;
    padding: 10px 16px;
    border: 2px solid #ccc;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
}

.resource-btn:hover {
    color: #333;
    border-color: #ff7800;
    background-color: rgba(255, 120, 0, 0.05);
}

.resource-btn i {
    margin-right: 6px;
    font-size: 0.9em;
}

/* ======================================================== */
/* Info Tooltip Styles */
/* ======================================================== */
.info-tooltip-container {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.info-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #555;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.info-tooltip-icon:hover {
    background-color: #333;
}

.info-tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    text-align: left;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 300px;
    white-space: normal;
}

.info-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.info-tooltip-container:hover .info-tooltip-content,
.info-tooltip-container.active .info-tooltip-content {
    visibility: visible;
    opacity: 1;
}

.info-tooltip-content a {
    color: #4fc3f7;
    text-decoration: underline;
}

.info-tooltip-content a:hover {
    color: #81d4fa;
}

/* ======================================================== */
/* Footer styling */
/* ======================================================== */

footer {
    margin: 20px 0 10px;
    padding: 20px;
    width: 100%;
    color: #666;
    font-size: 0.9em;
}

footer p {
    margin: 5px 0 0;
}

footer i {
    margin-right: 8px;
}

footer a {
    color: #666;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}



/* ======================================================== */
/* Responsive design for mobile devices */
/* ======================================================== */
@media screen and (max-width: 600px) {
    body {
        font-size: 1em;
        padding-top: 20px;
    }

    form {
        width: 90%;
    }

    button.Tab {
        padding: 8px 10px;
        font-size: 0.9em;
        margin: 2px;
        min-width: 30px;
        white-space: nowrap;
    }

    .resources-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }

    .resource-section {
        min-width: auto;
    }
}
