@media only screen and (max-width:932px) {

	input[type="checkbox"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
        border: 1px solid white;
        background-color: #29577B;
        cursor: pointer;
        position: relative;
    }

    /* Create the orange fill effect when checked */
    input[type="checkbox"]:checked {
        background-color: orange;
        border: 2px solid orange;
    }

	.desktop_1024px {
		display: none;
	}

	.mobile_932px {
		display: block;
		width: 100%;
		height: 100%;
	}

	.website-container{
		width: 100%;
		min-width: 100%;
		min-height: 100%;
		height: 100%;
		display: flex;
		justify-content: center;
	}

	.grid-container{
		display: grid;
		grid-template-columns: repeat(12, 1fr);	
		grid-template-rows: 30px 2px auto 20px 60px; 
		background-color: rgb(29,52,76);
		text-align: center;
		width: 100%;
		min-height: 100%;
		height: 100%;
		float: left;
	}

	.BannerInfo {
		grid-column: 1/13;
		grid-row: 1/2;
		height: 100%;
	}

	.Info{
		height:100%;
		width:100%;
		display: flex;
	}

	.InfoBox {
		height:100%;
		width:100%;
		background-color: rgba(44, 66, 94, 1);
		display: flex;
		align-self: flex-end;
		font-size: 12px;
		color: white;
	}

	.DisplayInfoBox, .TimeInfoBox  {
		width: 100%;
		height:100%;
		padding: 2px;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		align-items: center;
	}

	.DisplayInfoBox {
		text-align: left;

	}

	.TimeInfoBox {
		text-align: right;
	}


	#myProgress {
		grid-column: 1/13;
		grid-row: 2/3;
		height: 100%;
		width: 100%;
		background-color: rgb(235, 235, 235);
	}

	.MapContainer{
		grid-column: 1/13;
		grid-row: 3/4;
	}

	.Map {
		height: 100%;
		width:100%;
	}






	.TimeSliderDiv{
		grid-column: 1/13;
		grid-row: 4/5;
		width: 100%;
		height: 5px;
		background-color: rgb(29,52,76);
	}

	#PositionSliderMob {
		width: 90%;
		height: 0px;
		z-index: 100;
	}

	#myBarMob {
		width: 0%;
		height: 100%;
		text-align: center; /* To center it horizontally (if you want) */
	}	
	/* Slider Range stuff */

	input[type=range] {
		height: 1px;
		-webkit-appearance: none;
		margin: 10px 0;
		width: 100%;
	  }
	  input[type=range]:focus {
		outline: none;
	  }
	  input[type=range]::-webkit-slider-runnable-track {
		width: 100%;
		height: 4px;
		cursor: pointer;
		animate: 0.2s;
		box-shadow: 1px 1px 1px #000000;
		background: #1d344c;
		border-radius: 3px;
		border: 1px solid #000000;
	  }
	  input[type=range]::-webkit-slider-thumb {
		box-shadow: 1px 1px 1px #000000;
		border: 1px solid #000000;
		height: 14px;
		width: 6px;
		border-radius: 3px;
		background: #FFFFFF;
		cursor: pointer;
		-webkit-appearance: none;
		margin-top: -6px;
	  }
	  input[type=range]:focus::-webkit-slider-runnable-track {
		background: #1d344c;
	  }
	  input[type=range]::-moz-range-track {
		width: 100%;
		height: 4px;
		cursor: pointer;
		animate: 0.2s;
		box-shadow: 1px 1px 1px #000000;
		background: #1d344c;
		border-radius: 3px;
		border: 1px solid #000000;
	  }
	  input[type=range]::-moz-range-thumb {
		box-shadow: 1px 1px 1px #000000;
		border: 1px solid #000000;
		height: 14px;
		width: 6px;
		border-radius: 3px;
		background: #FFFFFF;
		cursor: pointer;
	  }
	  input[type=range]::-ms-track {
		width: 100%;
		height: 4px;
		cursor: pointer;
		animate: 0.2s;
		background: transparent;
		border-color: transparent;
		color: transparent;
	  }
	  input[type=range]::-ms-fill-lower {
		background: #1d344c;
		border: 1px solid #000000;
		border-radius: 6px;
		box-shadow: 1px 1px 1px #000000;
	  }
	  input[type=range]::-ms-fill-upper {
		background: #1d344c;
		border: 1px solid #000000;
		border-radius: 6px;
		box-shadow: 1px 1px 1px #000000;
	  }
	  input[type=range]::-ms-thumb {
		margin-top: 1px;
		box-shadow: 1px 1px 1px #000000;
		border: 1px solid #000000;
		height: 14px;
		width: 6px;
		border-radius: 3px;
		background: #FFFFFF;
		cursor: pointer;
	  }
	  input[type=range]:focus::-ms-fill-lower {
		background: #1d344c;
	  }
	  input[type=range]:focus::-ms-fill-upper {
		background: #1d344c;
	  }

	  .mapboxgl-popup-content {
		color: black;
	  }






	.MobileControls {

		grid-column: 1/13;
		grid-row: 5/6;
		display: grid;
		grid-template-columns: 16.666% 16.666% 16.666% 16.666% 16.666% 16.666%;	
		grid-template-rows: 50px 10px;
		background-color: rgb(29,52,76);
		text-align: center;
		width: 100%;
		min-height: 100%;
		height: 100%;
		float: left;
		touch-action: none;
	}

	.RefreshDiv {
		grid-column: 1/2;
		grid-row: 1/2;
	}

	.FunctionDiv {
		grid-column: 2/3;
		grid-row: 1/2;
	}

	.LayerDiv {
		grid-column: 3/4;
		grid-row: 1/2;
	}

	.LoopDiv {
		grid-column: 4/7;
		grid-row: 1/2;
	}

	/* Used to make sure that buttons don't overlap the bar on iOS */
	.ScreenFiller {
		grid-column: 1/7;
		grid-row: 2/3;
	}



	.FunctionsPopup {
		display: none;
		position: absolute;
		width: 150px;
		overflow: auto;
		z-index: 15;
		bottom: 100px;
		background-color: rgba(29,52,76, 1);
		transition-duration: 2s;
		text-align: left;
	}

	/* .FunctionDiv:hover .FunctionsPopup {
		display: block;
	} */

	.popupDesc {
		color: white;
		padding: 5px 10px;
		border: 5px;
		font-size: 14px;
	}

	/* Style for the layer selection popup */
	
	.LayersPopup {
		display: none;
		position: absolute;
		width: 150px;
		overflow: auto;
		z-index: 15;
		bottom: 100px;
		background-color: rgba(29,52,76, 1);
		transition-duration: 2s;
		text-align: center;
	}

	/* .LayerDiv:hover .LayersPopup {
		display: block;
	} */

	
	#OpacitySliderMob, #SpeedSliderMob {
		height: 0px;
		background-color: rgb(235, 235, 235);
		fill: rgb(21, 124, 0);
	}

	.sliderDivBot {
		color: white;
		padding: 0px 5px 15px 5px;
		border: 5px;
	}

	.sliderDiv {
		color: white;
		padding: 0px 5px 5px 5px;
		border: 5px;
	}

	/* Style for the layer selection popup */
	.LayerType, .userBut {
		background-color: rgba(29,52,76, 1);
		border: 5px solid rgba(29,52,76, 1);
		padding: 5px 10px;
		font-size: 16px;
		color: white;
		width: 150px;
		overflow: visible;
		z-index: 12;
		cursor: pointer;
		text-align: left;
		transition-duration: 0.1s;
	}

	.SquareBut {
		width: 50px;
		height: 40px;
		margin: 5px;
		background-color: rgba(44, 66, 94, 1);
		color: white;
		border: rgba(44, 66, 94, 1);
		transition-duration: 0.2s;
		font-size: 14px;
		text-align: center;
	}

	.LoopBut {
		background-color: rgba(44, 66, 94, 1);
		border: 1px solid rgba(44, 66, 94, 1);
		color: white;
		margin: 5px 2%;
		text-align: center;
		text-decoration: none;
		font-size: 14px;
		cursor: pointer;
		transition-duration: 0.2s;
		width: 25%;
		height: 40px;
		touch-action: manipulation;
	}

	







	.filler, #windButton {
		border-top-left-radius: 5px;
	}

	.filler, #radarButton {
		border-bottom-left-radius: 5px;
	}

	.filler, #windButton {
		border-top-right-radius: 5px;
	}

	.filler, #radarButton {
		border-bottom-right-radius: 5px;
	}

	.SquareBut, .SwatheBut, .LayerSelectBut, .LoopBut, .FunctionsPopup, .LayersPopup, #locationBut, .LocationBox, .perilMob-bottom-button-options, .perilMob-mpl-copy-btn, .perilMob-mpl-view-btn, #copyPerilPostcodesBtn, #downloadPerilGeojson {
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
		border-top-right-radius: 8px;
		border-bottom-right-radius: 8px;

	}

	/* This below is used for placing the login modal correctly... */

	.modal {
		position: fixed; /* Stay in place */
		z-index: 200; /* 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 */
	}

	#myModal {
		display: block;
	}

	/* Modal Content */
	.modal-content {
		max-height: calc(100vh - 210px);
		overflow-y: auto;
		background-color: rgba(44, 66, 94, 0.75);
		margin: auto;
		border: 1px solid rgba(44, 66, 94, 0.75);
		width: 80%;
		height: 500px; 
		margin-top: 100px;
		border-radius: 20px;
		box-shadow: 0 0 50px rgb(0 0 0 / 80%);
	}

	.login-form-form {
		display: flex;
		flex-direction: column;
		width: 200px; /* adjust to your preferred width */
		margin: 0 auto; /* centers the form horizontally if desired */
	}

	.loginBlackText, .CheckboxText {
		color: white;
	}

	.loginLink {
		color: white;
	}

	.bgimg {
		text-align: center;
	}

	#passwordInput, #usernameInput {
		margin-bottom: 10px; /* space between inputs */
	}

	#loginButMob {
		margin-top: 10px; /* space above the button */
		background-color: rgb(20 106 196);

	}

	.loginButMob {
		height: 30px;
		background-color: rgb(29,52,76);
		color: white;
		border: rgb(29,52,76);
		transition-duration: 0.2s;
		
	}

	#rememberMeDivMob {
		display: flex;
		height: 30px;
		flex-wrap: wrap;
		align-content: space-around;
		justify-content: center;
	}

	#remember_me1Mob {
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		width: 12px;
		height: 12px;
		border: 1px solid #29577B;
		background-color: white;
		cursor: pointer;
		position: relative;
	}

	#remember_me1Mob:checked {
		background-color: orange;
		border: 2px solid orange;
	}

	.login-text-info {
		max-width: 90%;
		margin: 0 auto;
	}

	/* Add a location button on top of the map */

	.LocationButton {
		z-index: 20;
		position: fixed;
		width: 40px;
		height: 40px;
		bottom: 90px;
		right: 10px;
	}

	.LocationBox {
		display: block;
		position: absolute;
		background-color: rgb(238, 238, 238);
		height:40px;
		width: 40px;
		right: 5px;
		bottom: 20px;
	}
	
	#locationBut {
		width: 40px;
		height: 40px;
		background-color: rgba(44, 66, 94, 1);
		color: white;
		border: rgba(44, 66, 94, 1);
		transition-duration: 0.2s;
		font-size: 14px;
		text-align: center;
	}
	
	.satNameIcons {
		text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
		font-size: 14px;
		font-weight: bold;
	}

	.weatherButtons {
		background: #fff;
		height: 33px;
		width: 33px;
		border: #dadada;
		border-width: 1px;
	}

	.weatherButtons:hover {
		background: #e6e6e6;
		transition: 0.2s;
	}

	.weatherIcons {
		width: 20px;
		border-radius: 3px;
		margin: 162px 10px 0 0;
		margin: 55px -20px 0px 0px;
        float: right;
	}

	.asset-marker {

		display: flex;
		justify-content: center;
		align-items: center;
		width: 60px;
		height: 50px;
		background: rgba(44, 66, 94, 0.75);
		font-size: 12px;
		font-weight: bold;
		border: rgba(44, 66, 94, 0.75);
		color: white;
		border-radius: 50% 50% 50% 50%;
		cursor: pointer;
	    pointer-events: auto;   /* or remove pointer-events: none if set */
	}

	.asset-marker-popup-content {
		color: #000;
	}


	/* Peril Guard options here */

	.maplibregl-popup {
		z-index: 3;
	}

	.central-menu {
        background: rgba(44, 66, 94, 0.75);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(6.6px);
        -webkit-backdrop-filter: blur(6.6px);
        border: 1px solid rgba(44, 66, 94, 0.69);
    }

	#perilMob-menu {
        position: fixed;
        /* width: 40vw; */
        top: 30px;
        z-index: 18;
        margin: 10px;
        text-shadow: 0px 0px 5px black;
        color: white;
        font-size: 18px;
        font-weight: 500;
        text-align: center;
        right: 0;
        margin: 15px;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
        display: none;
        align-items: center;
        justify-content: space-between;
        flex-direction: column;
        /* display: grid; */
        grid-template-rows: auto 1fr auto;
        /* top (auto), middle (flexible), bottom (auto) */
        grid-template-columns: 1fr 1fr;
        /* two equal columns */
        grid-template-areas:
            "title title"
            "left right"
            "select select";
        gap: 10px;
        /* space between grid items */
    }

    #perilMob-postcode-master-list-menu,
    #perilMob-warning-date-list-menu {
        position: fixed;
        width: 85%;
        top: 45px;
        z-index: 18;
        margin: 10px;
        color: white;
        font-size: 18px;
        font-weight: 500;
        margin: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 20px;
        padding-right: 20px;
        display: none;
        height: 700px;
        overflow: auto;
        flex-direction: column;
        text-align: left;

    }

    #perilMob-warning-date-list-menu.perilMob-warning-date-list-minimised {
        width: 450px;
        top: 100px;
        right: 120px;
        height: auto;
        left: unset;
        cursor: move;
    }

    #perilMob-warning-date-list-menu.perilMob-warning-date-list-minimised #perilMob-warning-date-list-title,
    #perilMob-warning-date-list-menu.perilMob-warning-date-list-minimised #perilMob-warning-date-list-datepicker {
        display: none;
        /* Hide these elements when minimized */
    }

    .close-button-perilMob-mpl {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        color: white;
        z-index: 999;
        background: transparent;
        border: none;
    }

    .minify-button-perilMob-mpl {
        position: absolute;
        top: 18px;
        right: 48px;
        font-size: 11px;
        cursor: pointer;
        color: white;
        z-index: 999;
        background: transparent;
        border: none;
    }

    .close-button-perilMob-mpl:hover,
    .minify-button-perilMob-mpl:hover {
        color: #ff4d4d;
    }

    .perilMob-mpl-type-text {
        font-size: 18px;
    }

    .perilMob-mpl-text {
        font-size: 14px;
    }

    #perilMob-title,
    #perilMob-postcode-master-list-title,
    #perilMob-warning-date-list-title {
        grid-area: title;
        /* additional styling for the title */
        text-align: center;
        font-weight: bold;
        padding: 10px;
        font-size: 20px;
    }

    #perilMob-left {
        grid-area: left;
        /* styling for left column */
        padding: 10px;
        text-align: left;
    }

    #perilMob-right {
        grid-area: right;
        /* styling for right column */
        padding: 10px;
        text-align: left;
    }

    #perilMob-select {
        grid-area: select;
        /* styling for bottom section */
        padding: 10px;
        text-align: center;
    }


    #perilMob-left label,
    #perilMob-right label {
        display: block;
        margin-bottom: 10px;
        /* Optional: adds space between labels */
    }

    input[type="datetime-local"],
    input[type="date"] {
        height: 30px;
        padding-left: 5px;
        padding-right: 5px;
        padding-top: 0px;
        padding-bottom: 0px;
        border-radius: 5px;
        border: 0px;
        /* font-size: 12px; */
        background-color: rgb(29, 52, 76);
        color: white;
        color-scheme: dark
    }

    .peril-popup {
        background: rgba(44, 66, 94, 0.75);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(6.6px);
        -webkit-backdrop-filter: blur(6.6px);
        border: 1px solid rgba(44, 66, 94, 0.69);

    }

    .peril-popup .maplibregl-popup-content {
        border: none;
        /* Remove default border if needed */
        box-shadow: none;
        /* Remove any default shadow */
        background-color: rgba(0, 0, 0, 0);
        width: 95%;
    }

    .peril-popup .maplibregl-popup-tip {
        display: none;
        /* Hides the default arrow tip */
    }

    .peril-popup .maplibregl-popup-close-button {
        color: white;
        /* Hides the default arrow tip */
		right: 8px;
		font-size: 14px;

    }

    .peril-button-select label {
        display: inline-flex;
        align-items: center;
        margin-right: 1em;
        /* Optional: adds spacing between labels */
    }

    .perilMob-bottom-button-options {
        height: 30px;
        background-color: rgb(29, 52, 76);
        color: white;
        border: rgb(29, 52, 76);
        transition-duration: 0.2s;
        margin: 2px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .postcode-hover-box {
        position: absolute;
        pointer-events: none;
        background: rgba(40, 59, 94, 0.7);
        border-radius: 3px;
        padding: 6px;
        font-size: 18px;
        display: none;
        z-index: 3;
    }

    #peril-embargo-info {
        background-color: rgba(44, 66, 94, 0.69);
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 5px;
        padding-bottom: 1px;
        border-radius: 10px;
        max-height: 400px;
        /* or whatever limit you want */
        overflow-y: auto;
        /* show vertical scrollbar when content exceeds */
        /* overflow-x: hidden;  hide horizontal scrollbar if you don’t need it */
        padding-right: 8px;
    }

    /* WebKit browsers (Chrome, Safari, Edge) */
    #peril-embargo-info::-webkit-scrollbar {
        width: 12px;
    }

    #peril-embargo-info::-webkit-scrollbar-track {
        background: #6383a5;
        border-radius: 6px;
    }

    #peril-embargo-info::-webkit-scrollbar-thumb {
        background-color: #6383a5;
        border-radius: 6px;
        border: 3px solid transparent;
        /* padding around the thumb */
        background-clip: content-box;
        /* so the border shows the track */
    }

    #peril-embargo-info::-webkit-scrollbar-thumb:hover {
        background-color: rgb(23, 52, 90);
    }

    /* Firefox */
    #peril-embargo-info {
        scrollbar-width: thin;
        /* “auto” or “thin” */
        scrollbar-color: #6383a5 rgb(23, 52, 90);
        /* thumb color | track color */
    }

    #downloadPerilGeojson {
        width: 200px;
        height: 30px;
        background-color: rgb(29, 52, 76);
        color: #ff8900;
        border: rgb(29, 52, 76);
        transition-duration: 0.2s;
        margin-top: 5px;
        z-index: 5;
        font-weight: bold;
    }

	.peril-mpl-type-text {
        font-size: 18px;
    }

    .peril-mpl-text {
        font-size: 14px;
    }

    #copyPerilPostcodesBtn,
    .perilMob-mpl-copy-btn,
    .perilMob-mpl-view-btn {
        width: 80px;
        height: 30px;
        background-color: rgb(29, 52, 76);
        color: #ff8900;
        border: rgb(29, 52, 76);
        transition-duration: 0.2s;
        margin-top: 5px;
        z-index: 5;
        font-size: 12px;
        font-weight: bold;
    }

    #copyPerilPostcodesBtn:hover,
    #downloadperilGeojson:hover,
    .perilMob-mpl-copy-btn:hover,
    .perilMob-mpl-view-btn:hover {
        background-color: rgb(23, 44, 66);
    }


    #perilMob-warning-date-list-datepicker {
        text-align: center;
    }

    #perilMob-warning-table-container {
        margin-top: 1rem;
        width: 100%;
        overflow-x: auto;
    }

    #perilMob-warning-table {
        width: 100%;
        border-collapse: collapse;
        background-color: rgb(42, 76, 111);
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        font-family: Arial, sans-serif;
        transition-duration: 0.4s;
    }

    #perilMob-warning-table tbody {
        display: block;
        max-height: 500px;
        /* Adjust to your preferred height */
        overflow-y: auto;
    }

    #perilMob-warning-table thead {
        background-color: rgb(29, 52, 76);
        color: white;
    }

    #perilMob-warning-table thead,
    #perilMob-warning-table tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    #perilMob-warning-table tbody tr {
        transition: background-color 0.3s ease;
    }

    #perilMob-warning-table th,
    #perilMob-warning-table td {
        padding: 12px 16px;
        text-align: left;
        font-size: 15px;
    }

    #perilMob-warning-table tbody tr:nth-child(even) {
        background-color: rgb(35, 58, 87);
    }

    #perilMob-warning-table tbody tr:hover {
        background-color: rgb(29, 52, 76);
        cursor: pointer;
    }

    #perilMob-warning-table tbody td:last-child {
        text-align: center;
    }

    /* Column width adjustments */
    #perilMob-warning-table th:nth-child(1),
    #perilMob-warning-table td:nth-child(1) {
        width: 30%;
        /* Time */
    }


    #perilMob-warning-table th:nth-child(2),
    #perilMob-warning-table td:nth-child(2) {
        width: 10%;
        /* State */
    }

    #perilMob-warning-table th:nth-child(3),
    #perilMob-warning-table td:nth-child(3) {
        width: 45%;
        /* Title */
    }

    #perilMob-warning-table th:nth-child(4),
    #perilMob-warning-table td:nth-child(4) {
        width: 15%;
        /* Index */
    }

}



body, .grid-container {
	transition-duration: 1.2s;
	color: white;
}

html {
	width: 100%;
	height: 100%;
	position: absolute;
}

body {
	height: 100%;
	margin: 0px;
} 

.RadarRange, .Locations, .DisplayType, .LoopControls, .LoopOptions, .Layers, .Functions, .InfoBox, .loginInfo, .modal, #LoadingText, .SearchBox, .ScaleBox, .popupDesc {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.fa, .fab, .fad, .fal, .far, .fas {
	line-height: 2;
}
