/*
Theme Name: Hastings Weather
Author: Malvolio
Version: 1.0
Tags: none
*/


/* =Reset default browser CSS. 
-------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


/* ----- FORMATTING ----- */

body {
    font-family: Montserrat, sans-serif;
	font-weight: 500;
    font-size:   16px;
    padding:     0px;
    margin:      0px;
	color: #ffffff;
    background: #033348;
}

p {
	padding: 0px 0px 20px 0px;
	margin: 0px;
	line-height: 1.5;
}

 
h1 {
	font-weight: 500;
	font-size: 64px;
    color: #ffffff;
	margin: 0px 0px 75px 0px;
	text-decoration: none;
	text-align: center;
}


h2 {
	font-weight: 500;
	font-size: 40px;
    color: #ffffff;
	margin: 0px 0px 40px 0px;
	text-decoration: none;
}


h3 {
	font-weight: 700;
	font-size: 24px;
    color: #ffffff;
	margin: 0px 0px 40px 0px;
	text-decoration: none;
}

a {
    color: #ffffff;
	text-decoration: underline;
}



a.button {
    background-color: #98d9ff;
    color: #004261; 
    display: inline-block;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
	transition: 0.5s ease;
	text-align: center;
}


a.button:hover {
    background: #cce6f8;
}


li {
	padding: 0px 0px 8px 0px;
}

ul {
	padding: 0px 0px 0px 15px;
	margin: 0px;
    list-style-type: circle;
}

hr {
	border: none;
	border-top: 2px solid #ffffff;
	margin: 18px 0px;
	clear: both;
}

b, strong {
	font-weight: 700;
}


/* ----- LAYOUT ----- */

#content {
	width: 90%;
	max-width: 1100px;
	padding: 100px 5% 50px 5%;
    margin: 0 auto;
	display: flex;
	flex-direction: column;
}



@media screen and (max-width: 600px) {
h1 {
	order: -2;
}
	
.weather_block {
	order: -1;
}

.advertising_block {
	margin-bottom: 35px;
}
}


.advertising_block {
	display: grid;
	gap: 35px;
	grid-template-columns: 1fr 1fr 1fr 1fr;
}


.fade div {
	background-size: cover;
	background-position: center;
}

.image-slider {
  position: relative;
}


.slick-slider {
  margin-bottom: 0px !important;
}



.weather_block {
    border: 7px solid #ffffff;
    background: #98d9ff;
	margin: 20px 0px;
}


.buttons_block {
    display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr); 
	margin-top: 20px;
}

.buttons_block div {
    padding: 20px;
    text-align: center;
    font-weight: 700;
}


.buttons_block a {
    text-decoration: none !important;
}


.buttons_block .div1 { 
    grid-area: 1 / 1 / 2 / 3; 
    background: #004261;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    font-weight: 700;
}

.buttons_block .div2 { 
    grid-area: 2 / 1 / 3 / 2; 
    background: #98d9ff;
    color: #033348;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buttons_block .div3 { 
    grid-area: 2 / 2 / 3 / 3;
    background: #98d9ff;
    color: #033348;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
} 


a.number {
    background: #98d9ff;
    color: #033348;
    border-radius: 50%;
    padding: 10px;
    display: inline-block;
    font-size: 22px;
    transition: 1s ease;
}

a.number:hover {
    background: #ffffff;
}



@media screen and (max-width: 900px) {
.advertising_block {
	grid-template-columns: 1fr 1fr;
}
}






#footer {
	font-size: 10px;
	text-align: center;
	margin-top: 30px;
}






/* ----- IMAGES ----- */


.alignleft, img.alignleft {
	display: inline;
	float: left;
	margin-right: 24px;
	margin-top: 4px;
}
.alignright, img.alignright {
	display: inline;
	float: right;
	margin-left: 24px;
	margin-top: 0px;
}
.aligncenter, img.aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}

a img {
	border: none;
}


img {
    max-width: 100%;
    height: auto;
}


ul.tml-links {
	list-style-type: none;
	padding: 0px !important;
}





/* ----- FreshWDL ----- */

#recordsTable {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

#recordsTable > th, td {
    border-bottom: 0.5vmin solid #ddd;
    vertical-align: middle;
}

.buttons {
    height: 100%;
    width: 12%;
    margin-left: 0.5%;
    margin-right: 0.5%;
    font-size: 1.8vmin;
    padding: 0;
}
/* Formating to ensure floating layout works */
#FWDLcontainer {
    display: block;
    margin: auto;
	width: 100% !important;
}

.widgetContainer {
    float: left;
    padding: 0;
    overflow: hidden;
}

.widgetContainer > canvas {
    display: block;
    float: left;
}

#top {
    width: 100%;
    height: 15%;
}

#MoonSun01 {
    float: right;
}

#Status01 {
    float: left;
}

#left {
    width: 9%;
    height: 81%;
}

#leftTop {
    width: 100%;
    height: 40%;
}

#leftBottom {
    height: 60%
}

#leftBottom > canvas {
    width: 100%;
}

#center {
    width: 44%;
    height: 81%;
}

#centerTop {
    width: 100%;
    height: 68%;
}

#centerBottom {
    width: 100%;
    height: 32%
}

#leftCenterBottom {
    width: 50%;
    height: 100%;
}

#leftCenterBottom > canvas {
    float: right;
}

#rightCenterBottom {
    width: 50%;
    height: 100%;
}

#rightCenterBottom > canvas {
    float: center;
    margin: 0 auto;
}

#right {
    width: 47%;
    height: 81%;
}

#rightLeft {
    width: 50%;
    height: 100%;
}

#rightRight {
    width: 50%;
    height: 100%;
}

#bottom {
    width: 100%;
    height: 4%;
    padding-bottom: 10px;
}

.opentip {
    white-space: pre-wrap; /* needed so that tooltip newlines function correctly */
}

/*formatting for forecast div, and forecast modal div*/
#forecastText {
    overflow: hidden;
}

#showMoreLink {
    text-decoration: none;
    color: blue;
}

#showMoreLink:hover {
    color: lightblue;
}

#modalForecastDiv {
    overflow: scroll;
}


/*Settings for graph(Modal) popups*/

/* Modal Header */
.modal-header {
    padding: 2% 2%;
    background-color: rgb(153, 195, 154);
    color: white;
}

.header-text {
    font-size: 4vmin;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    padding: 2% 2%;
    background-color: rgb(153, 195, 154);
    color: white;
    float:right;
    width:96%;
}

.footer-text {
    font-size: 3vmin;
    margin: 0;
}

/* The Modal (background) */
.modal {
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    text-align: center;
    display: none;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 3% auto; /* 15% from the top and centered */
    padding: 1.5%;
    border: 1px solid #888;
    display: inline-block;
    text-align: left;
    min-width: width: 10%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 4vmin;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Graph padding top */
.OuterCanvasDiv {
    padding-top: 5%
}

/* Drop Down Menu */
.select-style {
    float: right;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    width: 230px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
    background: #fff url("https://gitcdn.xyz/cdn/Yerren/FreshWDL/master/sprites/arrow-down-small-24.png") no-repeat 90% 50%;
}

.select-style select {
    padding: 5px 8px;
    width: 100%;
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}

.select-style select:focus {
    outline: none;
}

#loadingScreen {
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 147, 0);
    font-size: 100%;
    
}

#loadingText {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
}

#titleText {
    font-family: sans-serif;
    font-size: 5vw;
    color: white;
    padding-bottom: 0%;
    margin: 0;
}

#loadingMessage {
    float: left;
    font-family: sans-serif;
    font-size: 1.5vw;
    color: white;
    margin: 0;
    padding-left: 1%
}

#freshWDL {
    display: grid;
    align-items: center;
    text-align: center;
    padding: 30px 5%;
	width: calc (90% -7px);
}
