/* This main css file contains the default rules and is geared toward the small/phone view */


body {
    
    line-height: 32px;
    font-family: Kavivanar;
    color: #230044;
}

header, nav, main, footer { 
    margin: 1.25rem auto;
    padding: .5rem;
    max-width: 90%;
    text-align: center;
}

/*-------------- HEADER -----------------*/
header {}

header h1 {
    font-size: 36px;
    text-align: center;
    color: #230044;
    }

header img {
    display: flex;
    margin-right: 20px;
}

header.subheading {
    font-size: 20px;
    text-align: center;
}

/*-----------------NAV -----------------*/

nav {
    text-align: left;
}

nav button {
    margin: .2rem 2%;
    background-color: #D5C9EF;
    border: none;
}

nav ul {
    border-radius:.8em;
    border: #230044 solid 2px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #D5C9EF;
}

nav ul li a {
    display: block;
    text-align: center;
    color: #230044;
    padding: 1px 20px;
    text-decoration: none;
    border-top: 1px solid rgba(0,0,0,0.3);
}

nav ul li.active a {
    background-color: #AB74CD;
}

nav ul li a:hover {
    background-color: #5B23CE;
    color: white;    
}

nav ul.hide {
    display:none;
}

/*--------------- MAIN ------------------*/

main {
    padding: 0;
    max-width: 90%;
}

.weatherpho {
    display: grid;
    grid-template-rows:  1fr;
    grid-gap: 1rem;
    margin-left: 5px;
    margin-right: 5px;
}


.weapic {
    display: grid;
    max-width: 90%;
}

 h2 {
    font-size: 26px;       
}

h3, h4, h5 {
    font-size: 22px;     
}


section.overview {
    background-color: white;
    border-radius:.8em;
    margin:1.5em 0;
    border: #230044 solid 2px; 
    box-shadow: 4px 4px 10px #230044;
}

section.mainPicture {
    justify-content: center;
    max-width: 240px;
    margin-right: 20%;
    margin-left: 20%;
}

.townpic {
    display: none;
    
}

main figure img { 
    width: 100%;
    height: 260px;
}

/*--------------- SECTION ---------------*/
section {}

section.forecast { 
    display: none; 
}

section.forecast table {
        border: 1px solid #230044;
        border-collapse: collapse;
        margin: 7%;
        width: 85%;
    }
    
section.forecast table th, td {
        border: 1px solid #230044;
    }

article div.town-article img { 
    display: flex;
    width: 40%;
    max-height: 40%; 
    margin-right: auto;
    margin-left: auto;
    padding: 1px 1px 12px 1px;
}
/*----------------FORM-------------------*/

fieldset {
    background-color: #D5C9EF;
    border-radius:.8em;
    margin:1.5em 0;
    border: #230044 solid 2px;
    
}

legend {
    margin-left: 6%;
    padding: .5em;
    border: #230044 solid 2px;
    background-color: whitesmoke;
    border-radius: .4em;
   box-shadow: 4px 4px 10px #5B23CE;
}

label {
    display:grid;
    grid-gap: 1rem;
    grid-template-columns:1fr 1fr;
    font-size: 18px;
     
}

input, option, textarea, select {
    background-color: whitesmoke;
    
}

input.submitButton {
    -webkit-appearance: none; /*remove the apple movile default styling*/
    border: solid 2px #230044;
    border-radius: 5px;
    color: #230044;
    background: #AB74CD; /*old brousers*/
    box-shadow: 4px 4px 10px #5B23CE;
    width: 20%;
    margin: .5em 0;
    font-size: 1em;
    padding: .6em;
}

/*--------------- FOOTER ----------------*/

footer {
    border-radius:.8em;
    text-align: center;
    background-color: #D5C9EF;
    border: #230044 solid 2px;
}
footer aside {
    line-height: normal;
    font-size: 15px;
    padding: 12px 0 0 0;
}
footer p {
    font-size: 12px;
} 


