:root {
  --background: #c4c4c4;
  --background-dark: #3a3a3a;
  --text: black;
  --text-dark: white;
  --link: #087244;
}

html.dark {
  --background: #202027;
  --background-dark: #181010;
  --text: #E6D1D5;
  --text-dark: #E6D1D5;
  --link: #008C8C;
}

body {
  background-color: var(--background);
  color: var(--text);
  max-width: 60em;
  padding: 3em;
  margin: 0 auto;
  text-align: center;
  font-family: "3270";
  font-size:1em;
}

a {
  color:var(--link); 
}

ul, ol{
  text-align:left;
}

#Guestbook{
  width:50%;
  height:100em;
}


td{
 padding:1em; 
 min-width:4em;
}

table {
  width: 70em;
  margin-left: calc(50% - 35em);
  background-color: var(--background-dark);
  color: var(--text-dark);
  overflow-x: auto;
}

.pitch {
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: colorCycle 4s linear infinite;
  text-align:center;
}

@keyframes colorCycle {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.siteButtons, .siteButtonsNoRandom{
  margin: 1em;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
}

.siteButtons img, .siteButtonsNoRandom img{
  image-rendering: crisp-edges;
  height: 62px;
  padding:0.5em;
  transition: all 0.3s ease-in-out;
}

.siteButtons img:hover, .siteButtonsNoRandom img:hover{
  transform: scale(1.1);
}

.rating{
  color: #d3b508;
  font-size: 2em;
}


@font-face {
  font-family: Amarna;
  src: url(Fonts/Amarna-Medium.ttf), format("truetype");
}
@font-face {
  font-family: "3270";
  src: url(Fonts/3270SemiCondensed-Regular.otf), format("opentype");
}
@font-face {
  font-family: Lectus;
  src: url(Fonts/lectus.ttf), format("truetype");
}


@media (max-aspect-ratio: 1/1) {


  #Guestbook{
    width:100%;
    height:100em;
  }

  .siteButtons img{
    height: 45px;
    padding:0.1em;
  }
  .siteButtons{
    margin: 0em;
  } 
  body{
    max-width: 120em;
    padding:0.25em;
  }
  table {
    width: 100%;
    margin: 0em;
    display: block;
    overflow-x: hidden;
  }
  thead, tbody {
    display: block;
    width: 100%;
  }
  thead tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
  }
  thead th {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0.3em;
  }
  tbody tr {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 1em;
    padding: 1em;
    border-bottom: 0.15em solid gray;
    box-sizing: border-box;
}
  tbody td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0.3em 0;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  tbody td img {
    max-width: 100%;
    height: auto;
  }
  tbody td:nth-child(2) {
    font-size: 1.2em;
    font-weight: bold;
  }
  tbody td:last-child {
    text-align: left;
  }
  td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: silver;
  }
  thead th:last-child {
    display: none;
  }
  thead th,
  tbody td {
    border: none;
  }
}
