:root {
  --border-radius: 10px;
}

/* THEMES */
:root,
[data-selected-theme="dark"] {
  --color-background: darkslategray;
  --color-text: gainsboro;
  --color-accent: black;
  --container-background: rgba(0, 0, 0, 0.55);
  --container-box-shadow: 7px 6px 20px 0 black;
}


[data-selected-theme="trg"] {
  --color-background: grey;
  --color-text: floralwhite;
  --color-accent: black;
  --container-background: rgba(238,91,114,0.85);
  --container-box-shadow: 7px 6px 20px 0 black;
}

[data-selected-theme="black"] {
  --color-background: black;
  --color-text: antiquewhite;
  --color-accent: black;
  --container-background: rgba(0,0,0,0.85);
  --container-box-shadow: 7px 6px 20px 0 white;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  align-items: center;
  background-color: var(--color-background);
  background: radial-gradient(var(--color-background), var(--color-accent));
  background-size: 100%;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-size: calc(10px + 1vw);
  /*justify-content: space-between;*/
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

div{
  position:relative;
  animation:animateleft 0.4s
}

@keyframes animateleft{
  from{
    left:-300px;
    opacity:0
  } to{
    left:0;
    opacity:1
  }
}

/* Classes & Tags */
.container {
    background-color: var(--container-background);
    /*background: rgba(238,91,114,0.85);*/
    border: 2px solid var(--color-text);
    box-shadow: var(--container-box-shadow);
    border-radius: var(--border-radius);
    display: block;
    max-width: 90vw;
    margin: 10px auto;
    padding: 2rem 3rem;
}

.container2 {
  align-self: last baseline;
  background-color: var(--container-background);
  border: 2px solid var(--color-text);
  box-shadow: var(--container-box-shadow);
  border-radius: var(--border-radius);
  display: block;
  max-width: 90vw;
  margin: 5px auto;
  padding: 1rem;
}
/*
.container:has(button[data-theme]:active) {
  transform: rotateZ(0.35deg);
}

.container:has(button[data-theme]:nth-of-type(2n):active) {
  transform: rotateZ(-0.35deg);
}
*/
.copy-right {
  font-size: 1vh;
  text-align: center;
}

.credit{
  align-content: center;
  font-size: 0.75rem;
}

h1 {
    text-align: center;
    font-size: calc(10px + 2vw);
}

.datetime {
    text-align: center;
    margin-bottom: 20px;
}

.date {
    font-size: calc(12px + 2vw);
    font-weight: bold;
}

.footer {
  font-family: 'Oswald', sans-serif;
  font-weight: bold;
  text-align: center;
}

.header {
  background: var(--background);
}

.logo {
  /*max-height: 6.5vw;*/
  max-height: 10vh;
  display: block;
  margin: 5px auto;
}

.tag {
  font-family: 'Aldrich', sans-serif;
  font-size: 2vh
}

.temp{
  font-size: calc(12px + 3vw);
  font-weight: bold;
  color: white;
}

.time {
    /*font-size: 36px;*/
    font-size: calc(10px + 2vw);
    font-weight: bold;
}

.weather {
    font-size: calc(10px + 1vw);
}

/* BUTTON CLASSES */
.theme-switcher {
  display: flex, none;
  justify-content: center;
  margin: 1.5rem 0 1rem 0;
  font-size: calc(10px + 1vw);
}

.themeSelector:is(:hover, :focus) {
  background-color: var(--color-text);
  color: var(--container-background);
  cursor: pointer;
}

button[data-theme] {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  padding: 0.75rem 1.25rem;
  /*
  font-size: inherit;
  font-size: clamp(1rem, 5vw, 1.312rem);
  */
  color: var(--color-text);
  border: 2px solid var(--color-text);
}

button[data-theme] + button[data-theme] {
  border-left: none;
}

button[data-theme]:first-of-type {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

button[data-theme]:last-of-type {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

button[data-theme][aria-pressed="true"] {
  background-color: var(--color-text);
  color: var(--color-background);
}

button[data-theme]:is(:hover, :focus) {
  box-shadow: 0 0 0 2px var(--color-text) inset;
}

button[data-theme][aria-pressed="true"]:is(:hover, :focus) {
  box-shadow: 0 0 0 2px var(--color-background) inset;
}
