@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

:root {
    --Very-Dark-Gray: hsl(0, 0%, 17%);
    --Dark-Gray: hsl(0, 0%, 59%);
}

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


body {
    font-family: 'Rubik', sans-serif;
}

  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}  

.header {
    background-image: url(/images/pattern-bg-mobile.png);
     background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 2rem 0;
    width: 100%;
}

h1 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

form {
    display: flex;
    flex-direction:row;
    align-items: center;
    justify-content: center;
}

input {
    width: 70%;
    padding: 1rem;
    border: none;
    border-radius: 1rem 0 0 1rem;
}

input::placeholder {
    color: var(--Dark-Gray);
    font-weight: 500;
    font-size: .7rem;
}
button {
    background-color:var(--Very-Dark-Gray);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 0rem 1rem 1rem 0rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}

button:hover {
    background-color: var(--Dark-Gray);
}

.ip-info{
    color: var(--Dark-Gray);
    font-size: .7rem;
    background: #ffffff;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: -38.5rem;
    z-index: 1000;
    } 

    .ip-info h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    #map {
        width: 100%;
        height: 100vh;
        background-color: var(--Very-Dark-Gray);
    }
    /* Desktop */

    @media (min-width: 768px) {
        
        .header {
            background-image: url(/images/pattern-bg-desktop.png);
            padding: 4rem 0;
        }

        h1 {
            font-size: 1.5rem;
            margin-bottom: 2rem;
        }

       

        input {
            width: 40%;
        }

        input::placeholder {
            font-size: .8rem;
        }

        button {
            font-size: 1.2rem;
        }

        .ip-info {
            flex-direction: row;
            text-align: left;
            padding: 3rem 10rem 3rem 10rem;
            margin-top: -44rem;
            gap: 2rem;

        }

        span{
            display: inline-block;
            height: 50px; 
            padding: 0 1rem;
        }

        span:not(:first-child) {
            border-left: 1px solid var(--Dark-Gray);
        }
        

        .ip-info h2 {
            font-size: 1rem;
            margin-bottom: 2rem;
        }
    }

   /* Tablet view */
@media (min-width: 500px) and (max-width: 1024px) {
    .ip-info {
        flex-direction: row;
        text-align: left;
        padding: 3rem 5rem; 
        margin-top: -44rem; 
    }

    span{
        display: inline-block;
        height: 50px; 
        padding: 0 1rem;
    }

    span:not(:first-child) {
        border-left: 1px solid var(--Dark-Gray);
    }
    

    .ip-info h2 {
        font-size: .8rem;
        margin-bottom: 2rem;
    }
}

 