/* Styling the out modal */

/* 
    Styling source from w3schools:
    https://www.w3schools.com/howto/howto_css_modals.asp
*/

#out-modal {
    display: none;
    font-family: Arial, Helvetica, sans-serif;
    position: fixed; 
    z-index: 1; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
  
/* Modal Content */
#out-modal  .modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 100%;
    max-width: 900px;
    font-family: 'roboto', sans-serif;

    /* 
        Fire-watch google image source
        https://hdwallpaperim.com/wp-content/uploads/2017/08/23/459518-illustration-Firewatch-video_games-748x468.jpg
    */
    background-image: url("../images/weather-bg.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 0.4s;
    animation-name: animatebottom;
    animation-duration: 0.4s
}

/* The Close Button */
#out-modal .close {
    color: white;
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
}

#out-modal .close:hover,
#out-modal .close:focus {
    color: #66ff00;
    text-decoration: none;
}

/* Add Animation */
@-webkit-keyframes animatebottom {
    from {bottom:-500px; opacity:0} 
    to {bottom:0; opacity:1}
}

@keyframes animatebottom {
    from {bottom:-500px; opacity:0}
    to {bottom:0; opacity:1}
}

/* styling for modal header */
  
#out-modal .modal-header {
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: white;
}

/* styling the modal body and content  */
#out-modal .modal-body {
    background: transparent;
    padding: 5px 16px;
    overflow: auto;
    height: 80vh;
    color: #fff;
    text-align: center;
}



#out-modal .container{
    display: flex;
    flex-direction: column;
}

#out-modal header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 15px 15px;
}

#out-modal header input {
    width: 100%;
    max-width: 280px;
    padding: 10px 15px;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);    
    border-bottom: 3px solid #DF8E08;
    color: #313131;
    font-size: 20px;
    font-weight: 300;
    transition: 0.2s ease-out;
}


#out-modal input[type="submit"]{
    padding: 15px 10px;   
    border: none;
    background: #e7e7e7;
    border-radius: 16px 0px 16px 0px;
    margin: 0 0 0 10px;
    font-weight:bold;
    font-size: 20px;
    cursor: pointer;
}

#out-modal input[type="text"]{
    height: 55px;
    padding: 10px 10px;
    background: #e7e7e7;
    border: none;
    border-radius: 10px;
    font-weight:bold;
    font-size: 20px;
}


#out-modal .main{
    flex: 1 1 100%;
    padding: 25px 15px 50px;
    display: flex;
    flex-direction: column;
    align-items:  center;
    text-align: center;
}

#out-modal .city{ 
    color: #FFF;
    font-size: 32px;
    margin-bottom: 5px;
}

#out-modal .date {
    color: #FFF;
    font-size: 16px;
}

#out-modal .weather{
    color: #FFF;
    font-size: 32px;
    font-weight: 700;
    margin: 20px;
    text-shadow: 0 3px rgba(0, 0, 0, 0.4);
}
 
#out-modal .temp{
    color: #FFF;
    font-size: 102px;
    font-weight: 900;
    margin: 30px 0px;
    text-shadow: 2px 10px rgba(0,0,0,0.6);
}

#out-modal .t_range{
   color: #FFF;
   font-size: 24px;
   font-weight: 500;
   text-shadow: 0px 4px rgba(0, 0, 0, 0.4);
}



/* ========= Responsive design with media queries ============== */

@media screen and (max-width: 500px) { 
    #out-modal .container header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    } 

    #out-modal input[type='text'] {
        margin: 15px;
    }

    #out-modal .modal-header h2 {
        font-size: 20px;
    }
}
