@import url('header.css');
@import url('footer.css');

/* -------------------------
    BASIC RESET
------------------------- */
@font-face {
    font-family: 'Borna';
    src: url('../fonts/Borna-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Borna';
    src: url('../fonts/Borna-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Borna';
    src: url('../fonts/Borna-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Borna';
    src: url('../fonts/Borna-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/*
From the design font sizes in px
h0 76
h1 58
h2 42
h3 34
h4 30

buttons 22
featuress 22

parraf negrita 20
parraf normal 18

menus 18
*/

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Borna', sans-serif;
}

h1 {
    font-size: 4.75rem;
    /* 76px / 16px = 4.75rem */
    font-weight: 400;
    line-height: 110%;

}

h2 {
    font-size: 3.625rem;
    /* 58px / 16px = 3.625rem */
    font-weight: 400;
}

h3 {
    font-size: 2.625rem;
    /* 42px / 16px = 2.625rem */
    font-weight: 700;
    letter-spacing: 2px;
}

h4 {
    font-size: 2.125rem;
    /* 34px / 16px = 2.125rem */
    font-weight: 500;
    letter-spacing: 2px;
}

h5 {
    font-size: 1.875rem;
    /* 30px / 16px = 1.875rem */
    font-weight: 400;
}

/* Buttons and Feature Lists */
button,
.features .feature-item p {
    /* Assuming these are classes or relevant elements */
    font-size: 1.375rem;
    /* 22px / 16px = 1.375rem */
    font-weight: 400;
    line-height: 90%;
}

button {
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 8px;
}

/* Paragraphs */
.paragraph-bold {
    font-size: 1.25rem;
    /* 20px / 16px = 1.25rem */
    font-weight: 600;
    line-height: 100%;
    letter-spacing: 0%;

}

.paragraph-normal {
    font-size: 1.125rem;
    /* 18px / 16px = 1.125rem */
    font-weight: 400;
    letter-spacing: 0%;
}

/* Menus */
.nav-bar li a,
.dropdown-content li a,
.site-footer .asoPMR-info .asoPMR-content-wrapper .column p {
    font-size: 1.125rem;
    /* 18px / 16px = 1.125rem */
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0%;
}

:root {
    --primary: #00BCD4;
    --secondary: #2C3E50;

    --light-bg: #F0F4F8; /* Very light, cool gray */
    --mid-bg: #E3E7ED; /* Slightly darker for contrast */
    --dark-text: #2C3E50; /* Dark blue-gray for text */
    --border-light: rgba(0, 0, 0, 0.08); /* Very subtle border */
    --shadow-light: rgba(0, 0, 0, 0.1); /* Soft shadow */

    --accent-teal: #00BCD4; /* Bright, clean teal */
    --accent-purple: #9C27B0; /* Soft purple for secondary accent */

    --form-field-bg: #FFFFFF; /* Pure white for input fields */
    --paragraph-color: #556270; /* Slightly softer dark text for paragraphs */
    --form-field-bg: #FFFFFF; /* Pure white for input fields */
    --paragraph-color: #556270; /* Slightly softer dark text for paragraphs */
    --gradient-start: #00BCD4; /* Teal for futuristic gradients */
    --gradient-end: #9C27B0; /* Purple for futuristic gradients */
    --glow-color: rgba(0, 188, 212, 0.6); /* For subtle glows */

    --white: #FFFFFF;

    --light-grey-bg: #f9f9f9;
    --dark-text: #333;
    --medium-grey-text: #555;

    --border-color: #1E4C50;

    --light-gray: #f7f7f7
}

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

body {
    font-family: 'Borna';
    background-color: var(--light-bg);
    color: var(--dark-text);
}

section {
    padding: 100px 5%;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light); /* Clean, subtle divider */
}

section:last-of-type {
    border-bottom: none;
}

/* Very subtle grid overlay in the background */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at center, rgba(0, 188, 212, 0.03) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
    animation: pulseSubtle 15s infinite alternate;
}

@keyframes pulseSubtle {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* -------------------------
    BUTTONS
------------------------- */
.language-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.language-main-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-main-button img {
    width: 30px;
    height: 20px;
}

.language-options {
    display: none;
    position: absolute;
    bottom: 50px;
    right: 0;
    background-color: #f9f9f9;
    min-width: 80px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 5px 0;
}

.language-options.show {
    display: block;
}

.language-option {
    color: black;
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.language-option img {
    width: 25px;
    height: 17px;
}

.language-option:hover {
    background-color: #ddd;
}


button {
    background-color: var(--third);
    color: var(--third);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Borna';
    transition: transform 0.2s ease-in-out;
    transform-origin: center;
    width: fit-content;
}

button:hover {
    transform: scale(1.05);
}

/* CONTACT BUTTON */
.contact-button {
    font-size: 100;
    letter-spacing: normal;
    outline: 2px solid white;
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
}

.contact-button:hover {
    color: black;
    background-color: white;
}

/* DONWLOAD APP BUTTON */
.download-app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-app-container button {
    margin-top: 3rem;
    background-color: transparent;
    color: var(--blue);
}

.download-app-container button:hover {
    transform: none;
}

.download-app-container button[disabled] {
    cursor: default;
}

.download-app-container .images {
    display: flex;
    flex-direction: row;
    position: relative;
}

.download-app-container .images img {
    padding: 10px 5px;
    width: 10rem;
    transition: transform 0.2s ease-in-out;
}

.download-app-container .images img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* -------------------------
    CONTACT FORMS
------------------------- */
.contact-form-container input {
    font-family: 'Borna';
}

/* -------------------------
    FEATURES LISTS
------------------------- */
.features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
}

.feature-item {
    padding-top: 3%;
    display: flex;
    align-items: center;
}

.feature-item img {
    width: 24px;
    height: auto;
    align-self: center;
    margin-right: 2rem;
}

.feature-item p {
    margin: 0;
}

/* -------------------------
    ACCESSIBILITY STYLES
------------------------- */
.accessibility-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    z-index: 1001;
}

.accessibility-button img {
    width: 40px;
    height: 40px;
}

.accessibility-panel {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    flex-direction: column;
    gap: 15px;
}

.accessibility-panel.active {
    display: flex;
}

.accessibility-panel h4 {
    margin-bottom: 10px;
    color: var(--blue);
}

.accessibility-panel button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: var(--yellow);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
    letter-spacing: normal;
}

.accessibility-panel button:hover {
    background-color: var(--dark-yellow);
    transform: none;
}

.accessibility-panel button.active {
    background-color: var(--blue);
}

/* Accessibility Modes */
body.font-large {
    font-size: 1.25em;
}

body.font-large h1 { font-size: 5.9375rem; /* 76 * 1.25 */ }
body.font-large h2 { font-size: 4.53125rem; /* 58 * 1.25 */ }
body.font-large h3 { font-size: 3.28125rem; /* 42 * 1.25 */ }
body.font-large h4 { font-size: 2.65625rem; /* 34 * 1.25 */ }
body.font-large h5 { font-size: 2.34375rem; /* 30 * 1.25 */ }
body.font-large button,
body.font-large .features .feature-item { font-size: 1.71875rem; /* 22 * 1.25 */ }
body.font-large .paragraph-bold { font-size: 1.5625rem; /* 20 * 1.25 */ }
body.font-large .paragraph-normal,
body.font-large .nav-bar li a,
body.font-large .dropdown-content li a,
body.font-large .site-footer .asoPMR-info .asoPMR-content-wrapper .column p { font-size: 1.40625rem; /* 18 * 1.25 */ }


body.high-contrast {
    background-color: #000 !important;
    color: #FFF !important;
}

body.high-contrast a {
    color: #BDF24B !important; /* Light green for links */
}

body.high-contrast button {
    background-color: #BDF24B !important;
    color: #000 !important;
    border: 1px solid #BDF24B !important;
}

body.high-contrast .accessibility-panel {
    background-color: #333 !important;
    border-color: #BDF24B !important;
}

body.high-contrast .accessibility-panel h4 {
    color: #BDF24B !important; /* Ensure visibility for header in high contrast */
}

body.white-text-mode {
    background-color: #000 !important;
    color: #FFF !important;
}

/* Target all elements that might have text color and override them for white text mode */
body.white-text-mode h1,
body.white-text-mode h2,
body.white-text-mode h3,
body.white-text-mode h4,
body.white-text-mode h5,
body.white-text-mode h6,
body.white-text-mode p,
body.white-text-mode span,
body.white-text-mode a,
body.white-text-mode li,
body.white-text-mode div:not(.accessibility-panel),
body.white-text-mode .feature-item img { /* Added img to ensure proper icon visibility if needed */
    color: #FFF !important;
}

/* Specifically target elements within the accessibility panel for white text mode to ensure contrast */
body.white-text-mode .accessibility-panel {
    background-color: #FFF !important; /* White background for the panel */
    border-color: #333 !important; /* Darker border for contrast */
}

body.white-text-mode .accessibility-panel h4 {
    color: #333 !important; /* Dark text for the header */
}

body.white-text-mode .accessibility-panel button {
    background-color: #555 !important; /* Darker buttons */
    color: #FFF !important; /* White text on buttons */
}

body.white-text-mode .accessibility-panel button.active {
    background-color: #1E4C50 !important; /* Green for active button */
}


body.readable-font {
    font-family: Arial, sans-serif !important;
}


/* Media queries for responsiveness */
/* Very small devices (phones, 620px and down) */
@media (max-width: 620px) {
    .contact-button {
        font-size: 1rem;
    }

    .accessibility-button {
        bottom: 10px;
        left: 10px;
    }

    .accessibility-button img {
        width: 30px;
        height: 30px;
    }

    .accessibility-panel {
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }
}


/* Media query for small screens (768px and below) */
@media (max-width: 768px) {
    button {
        font-size: 0.8rem;
        padding: 8px 10px;
    }


    .language-button img,
    .accessibility-button img
    {
        opacity: 70%;
    }
}

/* Media query for small screens (1080px and below) */
@media (max-width: 1080px) {

    h1 {
        font-size: 2.2rem;
        /* 76px / 16px = 4.75rem */

    }

    h2 {
        font-size: 1.8rem;
        /* 58px / 16px = 3.625rem */
    }

    h3 {
        font-size: 1.5rem;
        /* 42px / 16px = 2.625rem */

    }

    h4 {
        font-size: 1.3rem;
        /* 34px / 16px = 2.125rem */
    }

    h5 {
        font-size: 1.2rem;
        /* 30px / 16px = 1.875rem */
    }

    /* Buttons and Feature Lists */
    button,
    .features .feature-item {
        font-size: 1rem;
        /* 22px / 16px = 1.375rem */
    }

    /* Paragraphs */
    .paragraph-bold {
        font-size: 1rem;
        /* 20px / 16px = 1.25rem */

    }

    .paragraph-normal {
        font-size: 1rem;
        /* 18px / 16px = 1.125rem */

    }

    /* Menus */
    .nav-bar li a,
    .dropdown-content li a {
        font-size: 1rem;
        /* 18px / 16px = 1.125rem */
    }

    .download-app-container {
        width: 100%;
        align-items: center;
        gap: 12px;
        margin-top: 0rem;
    }

    .download-app-container button {
        font-size: 1rem;
    }

    .download-app-container .images {
        flex-direction: column;
        align-items: center;
    }

    body.font-large {
        font-size: 1.1em;
    }
}