@import url('./reset.css');

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter.ttf") format('truetype');
}

:root {
    --clr-1: #ae50c3;

    --border-gray: rgba(0, 0, 0, 15%);
    --border-radius: .5em;

    --shadow: 0px 0px 1em rgba(0, 0, 0, 0.25);;

    --anim-dur: 200ms;
    --tile-padding: 1.25rem 1.5rem;
}

body {
    background: url("../images/background.svg");
    background-size: 20rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vh;
}

.main {
    display: flex;
    flex-direction: column;
    gap: 11rem;
    min-height: 80vh;
    width: 100%;

    padding: 0 .5rem;
    padding-top: 2vh;
    padding-bottom: 2vh;
}

.main > section {
    min-height: 50vh;
}

.tile {
    width: 100%;
    min-height: 100% !important;

    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);

    background-color: white;
    box-shadow: var(--shadow);
}

* {
    font-family: 'Inter';
    box-sizing: border-box;
}

.max-width {
    max-width: 960px;
}

.btn-anim, .btn-hide {
    transition-duration: var(--anim-dur);
}

.btn-hide {
    opacity: 50%;
}

.btn-hide > img {
    border-radius: .25rem;
}

.btn-anim:hover, .btn-1:hover, .btn-special:hover {
    filter: brightness(110%);
}

.btn-hide:hover {
    opacity: 100%;
}

.btn-anim:active, .btn-1:active, .btn-special:active {
    filter: brightness(150%);
}

.btn-hide:active {
    opacity: 30%;
}

.btn-1, .btn-special {
    background-color: var(--clr-1);
    border: 2px solid var(--clr-1);
    color: white;
    border-radius: var(--border-radius);

    width: fit-content;

    padding: 1rem 2rem;

    user-select: none;

    transition-duration: var(--anim-dur);
}

.btn-special {
    color: var(--clr-1);
    background-color: white;

    font-weight: 700;
}

.title-1 {
    font-size: 2em;
    line-height: 1em;
    font-weight: bold;
}

.title-2 {
    font-size: 1.5em;
    font-weight: bold;
}

.title-3 {
    font-size: 1.1em;
    font-weight: bold;
}

.title-special {
    font-size: 1.1em;
    font-weight: 600;

    color: var(--clr-1);
}

.title-special__hero {
    font-size: 1.25em;
}

.descr {
    color: #454545;
    line-height: 1.75em;
}

.modal__wrapper {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 500000;

    display: none;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background-color: rgba(0,0,0,70%);
}

.modal {
    background-color: white;

    border-radius: var(--border-radius);
}

.modal__wrapper.active {
    display: flex;
}

@keyframes appear {
    0% {
        display: none;
        opacity: 0;
    }
    100% {
        display: flex;
        opacity: 100%;
    }
}

.mobile {
    display: none !important;
}

.desktop {
    display: inherit !important;
}

@media screen and (max-width: 836px) {
    :root {
        --tile-padding: 1rem 1rem;
    }
    .mobile {
        display: inherit !important;
    }
    .desktop {
        display: none !important;
    }
    body {
        gap: 0 !important;
    }
    .max-width {
        max-width: initial;
    }
    .tile {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}