:root {
    color-scheme: light dark;
    --SectionOdd: rgb(239, 239, 239);
    --SectionEven: rgb(205, 205, 205);
    --MenuBackground: rgba(229, 229, 229, 0.7);
    --Background: rgb(229, 229, 229);
    --Text: rgb(19, 19, 19);
    --SemiTransparent: rgba(44, 44, 44, 0.202);
    --Shadow: none;
    --SectionRadius: 20px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --MenuBackground: rgba(28, 28, 28, 0.7);
        --SectionOdd: rgb(32, 32, 32);
        --SectionEven: rgb(24, 24, 24);
        --Background: rgb(39, 39, 39);
        --Text: rgb(231, 231, 231);
        --SemiTransparent: rgba(254, 254, 254, 0.194);
        --Shadow: #0000002e 10px 10px 10px;
    }
}

a{
    text-decoration: none;
    color: var(--Text);
}

dialog{
    display: none;
}

dialog[open]{
    display: block;
}

.metalvalorLogo {
    font-family: century-gothic;
    font-weight: bold;
    color: gray;

    & span {
        color: red;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 3em;
}

button,
.MVButton {
    border: none;
    border-radius: 2em;
    padding: .5em;
    padding-inline: 1.5em;
    background-color: var(--SemiTransparent);
    cursor: pointer;
    text-decoration: none;
    font-size: 1.1rem;
    color: var(--Text);
    --Background: white;
}

button:hover,
.DialogLink:hover {
    outline: 1px var(--Text) solid;
}

::-webkit-scrollbar {
    width: 00px;
    height: 00px;
    margin-left: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.445);
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

@media print {

    .bgPlaceholder {
        display: none;
    }

    * {
        font-size: 13px;
        color: black !important;
        background-color: white;
        padding: 0px !important;
        border: none !important;
        padding-inline: 0px !important;
        max-width: 100%;
    }

    .highlight {
        margin: 0px !important;
    }

    button {
        display: none !important;
    }

    nav {
        display: none !important;
    }

    .DialogLink {
        display: none !important;
    }

    .SpectroImage {
        display: none !important;
    }

    section {
        padding: 0px;
        margin: 0px;
        padding-bottom: 5em;
    }

    #Main {
        gap: 0px;
    }
}

body {
    font-family: system-ui;
    margin: 0px;
    font-size: 1.2rem;
    cursor: default;
    background-color: var(--Background);
}

nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: var(--MenuBackground);
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    left: 0px;
    right: 0px;
    padding: 1em;
    gap: .2em;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    border-bottom: solid 1px rgba(255, 255, 255, 0.162);
}


.LangLink {
    padding-inline: .2em;
    border: var(--Text) solid 1px;
    border-radius: .2em;
    margin-bottom: 8px;
    margin-top: .2em;
    padding-bottom: .1em;
    width: 1.4em;
    text-align: center;
    text-transform: uppercase;
}

.DesktopLink {
    display: none;
}

.MobileLink {
    display: block;
}

#Menu {
    min-width: 100vw;
}

.MenuItems {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1em;

    & a {
        padding: .7em;
        border-radius: .5em;
        text-decoration: none;
        color: var(--Text);
    }

    & a:hover {
        background-color: var(--SemiTransparent);
    }
}

#Main {
    scroll-behavior: smooth;
    padding-top: 5em;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    gap: 5em;
}

.CountriesPresence {
    display: none;
}

dialog:focus {
    outline: none;
}

.DialogLink {
    border-radius: .7em;
    padding: 1em;
    cursor: pointer;

    & h3 {
        margin-top: 0px;
    }
}

.FadeinText {
    background: linear-gradient(to bottom, white 0%, transparent 100%);
    ;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ClickForMore {
    margin-inline: auto;
    margin: 1em;
    padding: .2em;
    font-size: .8em;
    text-align: center;
    border-radius: 1em;
    border: solid 1px var(--Text);
    display: none;
}

#History,
#Testimonial,
#Ask {
    background-color: var(--Background);
    padding: 1em;
}

#InterviewLink,
#HistoryLink {
    color: white;
    background-color: rgb(53, 53, 53);
}

h2 {
    font-size: 2em;
}

#Spectrometer {
    background-size: contain;
    background-image: url(resources/spectrodarkbg.webp), linear-gradient(12deg, rgb(34, 136, 195) 0%, rgba(71, 146, 192, 1) 57%, rgb(19, 87, 121) 100%);
    background-position: top right;
    background-repeat: no-repeat;
    --Text: white;
    color: var(--Text);

    & button {
        border: solid 1px var(--Text);
    }

    & h2 {
        display: inline-block;
        margin-bottom: 1em;
        font-size: 2.5em;
    }
}

.SpectroImage {
    text-align: center;
    margin: auto;
    border-radius: 10px;
    aspect-ratio: 1321 / 809;
    background-size: cover;
    background-image: url(resources/spectrometer.webp);
    margin-top: 2em;
    margin-bottom: 2em;
    color: transparent;
}

.liCheck {
    list-style-type: none;

    & li::before {
        content: "✅";
    }
}

nav a {
    color: var(--Text);
    text-decoration: none;
    padding-bottom: 8px;
    padding-inline: 1em;

    &:visited {
        color: var(--Text);
    }
}

.VideoLink {
    background-image: linear-gradient(0deg, rgba(28, 80, 193, 0.90) 0%, rgba(28, 80, 193, 0.5) 83%), url('resources/thumbnail.webp');
    background-color: red;
    background-size: cover;
    border-radius: var(--SectionRadius);
    font-size: 2em;
    display: flex;
    aspect-ratio: 16/5;
    padding: 1em;
    align-items: flex-end;
    --Text: white;
    color: var(--Text);
    text-decoration: none;
    justify-content: center;
    border: solid 1px rgba(28, 80, 193, 0.90);

    &>div {
        display: flex;
        gap: 1em;
    }

    & .ExternalSite {
        font-size: .4em;
        padding-top: .5em;
    }

    & img {
        width: 5ch;
    }
}

.VideoLink:hover {
    background-image: linear-gradient(0deg, rgba(28, 80, 193, 0.90) 0%, rgba(28, 80, 193, 0.5) 83%), url('resources/thumbnail.webp');
}

nav a:hover {}

.Question {
    display: block;
    font-weight: bold;
}

.Response {
    display: block;
    padding-left: 2em;
}

.Timeline {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.Timeline>div {
    display: flex;
    border: 1px solid var(--Text);
    border-radius: 1em;
    align-items: center;
    flex-direction: column;

    & div:first-of-type {
        font-size: 2em;
        min-width: 4em;
        padding: .5em;
        text-align: center;
    }

    & div:nth-of-type(2) {
        font-size: 1em;
        padding: 1em;
        padding-left: 2em;
    }
}

#AskForm input[type='text'],
#AskForm input[type='tel'],
#AskForm textarea {
    font-size: 18px;
}

#Service {
    --Background: linear-gradient(0deg, #e51123 0%, rgb(162 28 40) 100%);
    background: var(--Background);
    --Text: white;
    color: var(--Text);

    & button {
        border: 1px solid var(--Text);
    }
}

#Contact {
    border-radius: var(--SectionRadius);
    display: flex;
    flex-direction: column;
    gap: 2em;
    overflow: hidden;

    & img {
        height: 5em;
    }
}

.Contacts {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.Contact {
    --Text: white;
    color: var(--Text);
    display: flex;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding: 1em;
    cursor: pointer;
}


.ContactMail {
    background-color: #115d6e;
}

.ContactPhone {
    background-color: rgb(228, 6, 47);
}

.ContactWhatsApp {
    background-color: #008a5b;
}

#AskForm {
    padding: 1em;
}

#AskForm label:has(input[type='radio']) {
    display: flex;
}

#Ask {
    max-width: 60ch;
    height: fit-content;
}

.LegalMentions {
    display: flex;
    flex-direction: row;
    gap: 2ch;
    justify-content: center;

    & a {
        text-decoration: none;
        color: var(--Text);
    }
}

.LocalLink {
    color: var(--Text);
    text-decoration: underline;
    text-decoration-style: dotted;
}

blockquote {
    margin: 1.5em 10px;
    padding: 0.5em 10px;
    quotes: "\201C" "\201D" "\2018" "\2019";
}

blockquote:before {
    content: open-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.4em;
}

blockquote:after {
    content: close-quote;
    font-size: 4em;
    line-height: 0.1em;
    margin-right: 0.25em;
    vertical-align: -0.6em;
}

.AutoFlow {
    flex-direction: column;
}

.AutoFlex {
    display: flex;
    flex-direction: column;
}

dialog:modal {
    max-width: 100vw;
    min-height: 100dvh;
}

#Footer{
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.dialogClose {
    position: absolute;
    padding: 10px;
    top: 10px;
    right: 10px;
    width: 3em;
    cursor: pointer;
}

.dialogClose>div {
    position: fixed;
}

dialog>.dialogContent {
    /* padding: 2em; */
}

.dialogClose>div>picture>img {
    width: 3em;
}

dialog {
    border-radius: 0px;
    border: 0px;
    padding: 0px;
}

dialog::backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(36, 36, 36, 0.8);
    cursor: pointer;
    pointer-events: all;
}

.highlight {
    background: url(resources/higlight.svg);
    margin: -2px -6px;
    padding: 0px 10px 6px 10px;
    color: rgba(0, 0, 0, 0.785);
}

dialog[open] {
    display: flex;
    flex-direction: column;
}

#Charity {
    --Text: white;
    background: url(resources/header.webp) bottom no-repeat, linear-gradient(0deg, rgba(29, 68, 93, 1) 0%, rgba(27, 19, 54, 1) 100%);
    background-size: min(100%, 1800px), 100%;
    color: var(--Text);

    & button {
        margin: auto;
        margin-top: 1em;
        border: solid 1px var(--Text);
    }

}

section>article {
    padding: 1em;
}

.SectionWithShadow>article {
    padding: 1em;
}

address {
    font-style: normal;
}

@media (width > 700px) {

    .VideoLink {
        background-image: linear-gradient(0deg, rgba(28, 80, 193, 0.90) 0%, rgba(92, 45, 180, 0) 83%), url('resources/thumbnail.webp');
    }

    .Contacts {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0px;
    }

    #Contact {
        flex-direction: row;
        justify-content: space-evenly;
        gap: 0px;
    }

    .SpectroImage {
        box-shadow: #122632 0em .5em 1em;
        max-width: 70%;
        background-image: linear-gradient(#183344d7, transparent 40%, #183344d7 100%), url(resources/spectrometer.webp);
        color: white;
        outline: solid 2px #1b4e73;
    }

    .ContactCard {
        display: flex;
        gap: 1em;
        justify-content: center;

        & img {
            height: 3em;
        }
    }
}

@media (width > 1050px) {

    html {
        scroll-padding-top: 3em;
    }

    #Menu {
        min-width: 50ch;
    }

    dialog:modal {
        max-width: 1200px;
        max-height: 90vh;
        min-height: 90vh;
        border-radius: 1em;
        background-color: transparent;
    }

    .hero {
        border-radius: 1em;
        background-image: url('resources/dentist.webp');
        min-height: 400px;
        display: flex;
        flex-direction: column;
        padding: 1em;
        --Text: black;
        color: var(--Text);
        font-size: 1.3em;

        & h3 {
            color: red;
        }

        & blockquote {
            max-width: 50%;
        }
    }

    #Top,
    #AboutUs {
        background-color: var(--SectionOdd);
        border-radius: var(--SectionRadius);
        padding: 2em;
    }


    .CountriesPresence {
        height: 500px;
        --Text: white;
        background: url('resources/europe.svg') right bottom no-repeat, linear-gradient(180deg, #004b3a 0%, #008a5b 100%);
        border: solid 1px #004b3a;
        display: flex;
        align-items: center;
        font-size: 2em;
        border-radius: var(--SectionRadius);

        & ul {
            color: var(--Text);
            list-style: none;
        }
    }

    .DialogLink {
        padding: 2em;
        box-shadow: var(--Shadow);
    }

    nav a.active {
        display: inline-block;
        position: relative;

        &::after {
            content: "";
            display: block;
            width: 50%;
            border-radius: 5px;
            border: solid var(--Text);
            background-color: var(--Text);
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            transition: all;
        }
    }

    #Spectrometer {
        border: solid 1px #21445c;
    }

    #CharityDetail {
        background: linear-gradient(0deg, rgba(29, 68, 93, .9) 0%, rgba(27, 19, 54, 1) 100%);
        border: solid 2px rgba(255, 255, 255, 0.3);
    }

    #CharityDetail::backdrop {
        backdrop-filter: blur(10px);
        cursor: pointer;
        pointer-events: all;
    }

    #Service {
        background: url(resources/service.webp) top right no-repeat, var(--Background);
    }

    #Jobs {
        border: solid 1px #fdbb2d;
    }

    .ServiceIntro {
        width: calc(100% - 300px);
    }

    .DesktopLink {
        display: block;
    }

    .MobileLink {
        display: none;
    }

    #TopThings {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2em;
        grid-template-rows: masonry;
    }

    .AutoFlow {
        flex-direction: row;
    }

    .AutoFlex {
        flex-direction: row;
    }

    #Main {
        padding-right: 1em;
        padding-left: 1em;
    }

    .SectionWithShadow {
        border-radius: var(--SectionRadius);
        box-shadow: var(--Shadow);
    }

    section>article {
        padding: 0em;
    }

    .SectionWithShadow>article {
        padding: 2em;
    }

    .Timeline>div {
        flex-direction: row;
        flex: 5em auto;
    }

    dialog[open] {
        border: solid 1px var(--Text);
    }
}

@media (prefers-color-scheme: dark) {
    .CountriesPresence {
        background: url('resources/europe.svg') right bottom no-repeat, linear-gradient(75deg, #115d6e 0%, #1a1e47 100%);
    }

    #Spectrometer {
        background-image: url(resources/spectrodarkbg.webp), radial-gradient(circle at 250px 500px, #10222e, #112330, #122735, #152c3c, #183344, #1b394d, #1e3e54, #20425a, #21445c);
    }
}