/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */

/* ==========================================================================
   Base styles: opinionated defaults
========================================================================== */

/*
* Remove text-shadow in selection highlight:
* https://twitter.com/miketaylr/status/12228805301
*
* Vendor-prefixed and regular ::selection selectors cannot be combined:
* https://stackoverflow.com/a/16982510/7133471
*
* Customize the background color to match your design.
*/

::-moz-selection {
    background-color: rgb(158, 158, 158);
    color: white;
    text-shadow: none;
}

::selection {
    background-color: rgb(158, 158, 158);
    color: white;
    text-shadow: none;
}

/*
* Remove the gap between audio, canvas, iframes,
* images, videos and the bottom of their containers:
* https://github.com/h5bp/html5-boilerplate/issues/440
*/

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/* Remove default fieldset styles. */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

/* ==========================================================================
   YOUR STYLES GO HERE ...
========================================================================== */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling: touch;
    color: white; 
}

html {
    width: 100%;
    height: 100%;
    font-size: 1em;
    line-height: 1.4;
    background-color: white;
}

body {
    display: flex;
    flex-flow: column nowrap;
    width: 100%;
    min-height: 100%;
    background: linear-gradient(rgb(48, 160, 197), rgb(4, 66, 87));
    font-family: helvetica;
    overflow-x: hidden;
}

.searchbarOutterContainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column nowrap;
    width: 100%;
    padding: 5rem 0;
}

.searchbarOutterContainer > p {
    position: absolute;
    top: 7.6rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    transition: 0.3s all ease;
    text-align: center;
    color: rgb(221, 221, 221);
}

.searchbarInnerContainer {
    position: relative;
    width: fit-content;
    height: fit-content;
}

.input {
    outline: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.6rem;
    width: 60vw;
    color: grey;
    transition: 0.3s all linear;
}

.addCityBtn1 {
    position: absolute;
    outline: none;
    border: none;
    background-color: transparent;
    right: 0;
    top: 0.55rem;
    cursor: pointer;
    transition: all linear 0.2s;
    pointer-events: none;
}

.addCityBtn1 i {
    color: transparent;
    transition: all linear 0.2s;
}

.placeholder {
    pointer-events: none;
}

.placeholder span {
    color: rgb(170, 170, 170);
    position: absolute;
    left: 0.6rem;
    top: 0.45rem;
    transition: all linear 0.2s;
}

.weatherOutterContainer {
    display: flex;
    flex-flow: nowrap column;
    gap: 2.5rem;
    transition: 0.3s all linear;
}

.weatherInnerContainer {
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    width: 90%;
    margin: auto;
    padding: 0.5rem 0;
    transition: 0.3s all linear;
}

.addCityBtn2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    margin: 2.5rem auto 5rem auto;
    font-size: 3.3rem;
}

.cityToRemove {
    position: absolute;
    right: 0;
    top: -1rem;
    font-size: 1.2rem;
    transition: 0.3s all linear;
}

.fa-map-marker-plus,
.fa-map-marker-minus {
    color:rgba(187, 187, 187, 0.35);
    cursor: pointer;
    transition: all linear 0.2s;
}

.fa-map-marker-plus:hover {
    color:white;
}

.fa-map-marker-minus:hover {
    color: tomato;
}

.weatherInfo {
    flex: 2.5;
}

.timeZone {
    font-size: 1.3rem;
}

.fahrenheit,
.humidity {
    margin-left: 1.3rem;
}

.weatherLogo {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    flex: 1.75; 
}

.weatherLogo figure {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

.weatherLogo figure > img {
    margin-top: -1.65rem;
}

.weatherLogo figure > figcaption {
    text-align: center;
    margin-top: -1.33rem;
}

#locationOffAlert {
    display: none;
}

#locationOffAlert p {
    text-align: center;
    color: rgb(187, 187, 187);
}

/* Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 576px) {

    .weatherInnerContainer {
        width: 70%;
        padding: 1rem 2rem;
    }

    .cityToRemove {
        right: 2rem;
        top: -0.5rem;
    }

    .addCityBtn2 {
        width: 70%;
    }

    .input {
        width: 50vw;
    }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .weatherInnerContainer,
    .addCityBtn2 {
        width: 65%;
    }

    .input {
        width: 40vw;
    }
}

/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    .weatherOutterContainer {
        flex-flow: row wrap;
        justify-content: center;
    }

    .weatherInnerContainer,
    .addCityBtn2 {
        width: 40%;
        margin: 0;
    }

    .input {
        width: 30vw;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    .weatherOutterContainer {
        display: grid;
        grid-template-columns: auto auto;
    }

    .weatherInnerContainer,
    .addCityBtn2 {
        width: 28rem;
    }
    
    .input {
        width: 25rem;
    }
}

/* ==========================================================================
   Helper classes
========================================================================== */

/* Hide visually and from screen readers */

.hidden,
[hidden] {
    display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
* Extends the .sr-only class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
    visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}


/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
========================================================================== */

@media print {
    *,
    *::before,
    *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
    * Don't show links that are fragment identifiers,
    * or use the `javascript:` pseudo protocol
    */

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
    * Printing Tables:
    * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
    */
   
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

