@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');
*,
*::after,
*::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --VeryDarkGray: hsl(0, 0%, 17%);
    --Dark-Gray: hsl(0, 0%, 59%);
    --white: hsl(0, 0%, 100%);
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-bold: 700;
}

body {
    position: relative;
    font-family: 'Rubik', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

h1 {
    color: var(--white);
    font-size: 1.625rem;
    font-weight: var(--fw-medium);
    text-align: center;
    margin-block-end: 1rem;
    @media (min-width: 768px) {
        font-size: 2rem;
        margin-block-end: 1.625rem;
    }
}

h2 {
    font-size: 1.125rem;
    color: var(--VeryDarkGray);
    @media (min-width: 768px) {
        font-size: 1.5rem;
    }
}

.input-sec {
    width: 100vw;
    height: 35rem;
    background-image: url(images/pattern-bg-mobile.png);
    background-size: cover;
    background-repeat: no-repeat;
    padding-block-start: 1.875rem;
    @media (min-width: 768px) {
        background-image: url(images/pattern-bg-desktop.png);
    }
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

input {
    background-color: var(--white);
    border: transparent;
    outline: none;
    padding: 1.5rem;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    width: 70%;
    max-width: 32.8125rem;
    &::placeholder {
        color: var(--Dark-Gray);
        font-weight: var(--fw-normal);
        font-size: 1rem;
    }
}

button {
    background-color: var(--VeryDarkGray);
    display: block;
    padding: 1.5rem 2rem;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    border: transparent;
    cursor: pointer;
}

.map-sec {
    position: relative;
    height: 100%;
}

#map {
    width: 100%;
    position: relative;
    height: 100%;
}

.output {
    position: absolute;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 70rem;
    width: 90%;
    margin-inline: auto;
    padding: 1.5rem;
    border-radius: 20px;
    top: 0;
    left: 50%;
    translate: -50% -50%;
    isolation: isolate;
    z-index: 2000000;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    &>div {
        flex-basis: 100%;
        text-align: center;
        display: grid;
        gap: 0.3rem;
        min-height: 3rem;
        & small {
            font-size: 0.8rem;
            text-transform: uppercase;
            color: var(--Dark-Gray);
        }
    }
    @media (min-width: 768px) {
        align-items: initial;
        flex-direction: row;
        gap: 0;
        width: 90%;
        &>div {
            text-align: start;
            padding: 2rem;
            gap: 0.5rem;
            & small {
                font-size: 1rem;
                text-transform: uppercase;
                color: var(--Dark-Gray);
            }
            &:not(:last-of-type) {
                border-right: 1px solid hsla(0, 0%, 59%, 0.3)
            }
        }
    }
}

.current_ip_address {
    color: var(--white);
    text-align: center;
    margin-top: 1rem;
}