/*
revised 01.19.2025 BY S.C.Tanner
*/

html {
  color-scheme: light dark;
}

[data-theme="light"] {
  --bgColor: hsl(0, 0%, 80%);
  --color: hsl(60 60% 0%);
  --bgHilite: hsl(0 0% 98%);
  --bgShadow: hsl(0 0% 60%);
  --accent: hsl(60 60% 30%);
  --inputBG: hsl(60 0% 95%);
  --inputBGhv: hsl(150 80% 20%);
  --inputColor: hsl(150 10% 20%);
  --colorhv: hsl(60 60% 70%);
  --forecastBG: hsl(60 0% 90%);
  --shield: hsl(0 0% 0% / 0.7);
  --buttonBG: hsl(0 0% 80%);
  --buttonTXT: hsl(50 0% 10%);
  --buttonHiLite: hsl(0 0% 90%);
  --buttonShadow: hsl(0 0% 70%);
  --buttonBGhv: hsl(0 0% 85%);
  --buttonTXThv: hsl(150 90% 30%);
}

[data-theme="dark"] {
  --bgColor: hsl(50 0% 15%);
  --color: hsl(50 40% 45%);
  --bgHilite: hsl(50 0% 25%);
  --bgShadow: hsl(50 0% 5%);
  --accent: hsl(50 50% 100%);
  --inputBG: hsl(50 0% 10%);
  --inputBGhv: hsl(150 80% 60%);
  --inputColor: hsl(150 10% 80%);
  --colorhv: hsl(60 60% 0%);
  --forecastBG: hsl(50 0% 5%);
  --shield: hsl(0 0% 70% / 0.7);
  --buttonBG: hsl(50 0% 20%);
  --buttonTXT: hsl(0 0% 80%);
  --buttonHiLite: hsl(50 0% 30%);
  --buttonShadow: hsl(50 0% 10%);
  --buttonBGhv: hsl(50 0% 25%);
  --buttonTXThv: hsl(150 90% 50%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bgColor);
  color: var(--color);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
}

#container {
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  grid-template-areas:
    "aside main almanac";
  grid-template-rows: 100vh;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  max-height: 100vh;
  margin: auto;
  overflow: hidden;
}

/* 
================================================ GLOBAL ============================================
*/

.button {
  background-color: var(--buttonBG);
  color: var(--buttonTXT);
  font-size: 1rem;
  text-align: center;
  padding: 0.2rem;
  margin: 0.3rem;
  border: none;
  border-radius: .2rem;
  border-width: 3px;
  box-shadow: -2px -2px 4px 2px var(--buttonHiLite), 2px 2px 4px 2px var(--buttonShadow);
  cursor: pointer;
}

.button:hover {
  background-color: var(--buttonBGhv);
  color: var(--buttonTXThv);
  transition: background-color 0.3s;
}

input[type="text"] {
  background-color: var(--inputBG);
  color: var(--inputColor);
  font-weight: 700;
  text-align: center;
  margin-block: 2px;
  border: none;
  cursor: pointer;
}

/* 
====================================================================================================
                                                 ASIDE
====================================================================================================
*/

aside {
  grid-area: aside;
  display: grid;
  place-items: center;
  display: inline-block;
  width: max-content;
  text-align: center;
  padding: .5rem;
  margin: auto;
}

#day,
#time,
#temperature, #meridian {
  color: var(--accent);
  font-weight: 600;
}

#day {
  font-size: 1.5rem;
}

#date {
  font-size: 1rem;
  font-weight: 600;
}

#time {
  font-size: 3rem;
  cursor: pointer;
}

#meridian {
  font-size: 1.5rem;
}

#city,
#region {
  color: var(--color);
}

#coordinates {
  color: var(--color);
}

#station {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

#station:hover {
  color: var(--colorhv);
  background-color: var(--inputBGhv);
  padding: 2px;
  border-radius: 5px;
}

#notice {
  display: none;
  color: #f00;
  font-weight: 600;
  margin: 0.2rem auto 0;
  cursor: pointer;
}

#currentIcon {
  margin: 10px;
  border-radius: 5px;
  box-shadow: -3px -3px 4px 3px var(--bgShadow), 3px 3px 3px 2px var(--bgHilite);
}

#currentDescription {
  font-size: 1.5rem;
  font-weight: 600;
}

#temperature {
  font-size: 3rem;
  cursor: pointer;
}

#sat {
  display: none;
  border-radius: 10px;
  height: 94vh;
  margin: auto;
  aspect-ratio: auto 4 / 3;
  object-fit: contain;
  cursor: pointer;
}

/* 
====================================================================================================
                                                 MAIN
====================================================================================================
*/

main {
  grid-area: main;

}

/* 
============================================== wforcast ============================================
*/

#wforecast {
  display: flex;
  flex-wrap: wrap;
  min-width: 65ch;
  max-width: 70vw;
  max-height: 95%;
  gap: 0.25rem;
  justify-content: center;
  align-content: center;
  align-items: center;
  overflow: auto;
  margin-block: .25rem;  
  overflow: auto;
}

.wforecast {
  background-color: var(--forecastBG);
  color: var(--color);
  border-radius: 10px;
  border: 1px solid var(--bgShadow);
  padding: 0.5rem;
  padding-right: 3px;
  width: 65ch;
}

.weatherIcon {
  float: left;
  width: 86px;
  height: 86px;
  border-radius: 8px;
  margin-right: 0.75rem;
}

.clearfix {
  overflow: auto;
}

/* 
=============================================== alerts =============================================
*/

#weatherAlert {
  display: none;
  max-width: 590px;
  max-height: 98vh;
  padding-right: 3px;
  margin: auto;
  overflow: auto;
}

#alert {
  background: var(--inputBG);
  color: var(--color);
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  margin: auto;
  width: 96%;
  height: fit-content;
}

#alert h1,
h3,
h4 {
  color: #f00;
  text-align: center;
}

#alert ul {
  list-style-type: disc;
}

#alert li {
  text-align: left;
  padding-bottom: 0.5rem;
}

.emphasis {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--colorHilite);
}

#alertClose {
  float: right;
}

/* 
========================================== PHONE ==============================================
*/

#contacts {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "phone1 phone2 phone3";
  gap: 1rem;
  justify-content: center;
  align-items: center ;
  overflow: auto;
  width: 100%;
  height: 70%;
}

#contacts span.label {
  background-color: var(--color);
  color: var(--bgColor);
  font-weight: 700;
  padding: .5rem .5rem .5rem .5rem;
  margin: 1rem;
  border: 1px solid var(--color);
  text-align: center;
}

li.phone-item {
  list-style-type: none;
  color: var(--Color);
  border-bottom: 1px solid grey;
  font-size: 1.1rem;
  font-weight: 400;
  padding: 0.2rem;
  margin: 3px auto;
}

#phone1 {
  grid-area: phone1;
  width: 100%;
}

#phone2 {
  grid-area: phone2;
  width: 100%;
}

#phone3 {
  grid-area: phone3;
  width: 100%;
  
}

/* 
========================================== VIDEO ==============================================
*/

#stream {
  display: none;
  grid-template-columns: minmax(35ch, 33%) minmax(35ch, 33%);
  grid-template-areas: "stream1 stream2";
  align-items: center;
  place-items: center;
  margin: auto;
  overflow: auto;
  width: 66%;
  height: 99%;
}

#stream1 {
  grid-area: stream1;
  width: 33%;
}

#stream2 {
  grid-area: stream2;
  width: 33%;
}

.menu-item {
  background-color: var(--inputBG);
  color: currentColor;
  border: 1px solid currentColor;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  margin: auto;
}

.menu-item:hover {
  background-color: var(--inputBGhv);
  color: var(--colorhv);
}

li.menu-item {
  list-style-type: none;
  font-size: 1.1rem;
  font-weight: 600;
  width: 20ch;
  padding: 0.2rem;
  margin: 3px auto;
}

.label {
  text-align: center;
  font-weight: 900;
  width: 33%;
}

hr {
  background-color: val(--color);
  width: 100%;
  border: 2;
}

/* 
========================================= UTILITY =============================================
*/

#utility {
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "util1 util2 util3";
  justify-content: center;
  place-items: center;
  overflow: auto;
  width: 100%;
  height: 99%;
}

#util1 {
  grid-area: util1;
  width: 33%;
}

#util2 {
  grid-area: util2;
  width: 33%;
}

#util3 {
  grid-area: util3;
  width: 33%;
  
}

#WiFi {
  display: block;
  height: 200px;
  aspect-ratio: auto 4 / 3;
  margin: auto;
  margin-block-start: 5rem;
}

li.wifi {
  list-style-type: none;
}

#locationData {
  background-color: var(--inputBG);
  max-width: 30ch;
  border-radius: 5px;
  outline: 1px solid currentColor;
  padding: 5px;
  margin: 0 auto 2rem;
}

/* 
============================================== skywatch ============================================
*/

/* 
====================================================================================================
                                                ALMANAC
====================================================================================================
*/

#almanac {
  grid-area: almanac;
  display: grid;
  justify-content: center;
  place-items: right;
}

/* 
====================================================================================================
*/
