
@font-face {
font-family: "Kingthings";
src: url('https://thecasualcorner.neocities.org/fonts/Kingthings.woff') format("woff");
}

@font-face {
font-family: "Delius";
src: url('https://thecasualcorner.neocities.org/fonts/Delius.woff') format("woff");
}

@font-face {
font-family: "SweetiePie";
src: url('https://thecasualcorner.neocities.org/fonts/SweetiePie.woff') format("woff");
}




/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #9c5136;
  --content-background-color: #fffcf5;

  /* Text Colors: */
  --text-color: #43271c;
  --link-color: #72351c;
  --link-color-hover: #8e5d49;

  /* Text: */
  --font: "Delius", sans-serif; 
  --heading-font: "Kingthings", sans-serif;
  --font-size: 18px;

  /* Other Settings: */
  --margin: 15px;
  --padding: 20px;
  --border: 2px solid #deab78;
  --round-borders: 15px;
  --sidebar-width: 250px;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: var(--margin);
  font-size: var(--font-size);
  font-family: var(--font);
  line-height: 1.2;
  color: var(--text-color);
  background: var(--background-color);
  cursor: url("https://thecasualcorner.neocities.org/pictures/PixelWand.png") 16 16, auto;
}



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

.layout {
  width: 1200px;
  display: grid;
  margin: var(--margin);
  grid-gap: var(--margin);
  grid-template:
    "banner" auto
    "navigation" auto
    "radio" auto
    "footer" auto;
  grid-template-columns: 1fr;
}

/* -------------------------------------------------------- */
/* BANNER IMAGE + NAVIGATION */
/* -------------------------------------------------------- */

.banner-image {
  grid-area: banner;
  height: 170px;
  width: 100%;
  background-image: url("https://thecasualcorner.neocities.org/pictures/music/RecordShop1.jpeg"); 
  /* background-color: #E3D2C0; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2px;
  border: var(--border);
  border-radius: var(--round-borders);
  outline: 2px solid #deab78; 
  outline-offset: -6px;
}



/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

.navigation {
  grid-area: navigation;
  display: flex;
  flex-direction: row;
  align-items: center;  
  position: relative;
  height: 50px;
  width: 100%;
  margin: 10px 0;
}

.navigation nav {
  flex: 1;
  width: 100%;
}

.navigation nav > ul {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

 .navigation nav > ul > li {
  width: 100%;
}

.navigation a {
  display: block; 
  padding: 10px 14px;
  border: 1px solid var(--sidebar-text-color);
  border-radius: var(--round-borders);
  background-image: url("https://thecasualcorner.neocities.org/pictures/music/BrownButton.png");
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--sidebar-text-color);
  font-family: "Kingthings";
  text-align: center;
  width: auto;
  position: relative;
}

.navigation nav > ul > li > a::before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 5px;
  bottom: 5px;
  background: rgba(231, 211, 198, 0.4);
  border-radius: var(--round-borders);
  z-index: 0;
}

.navigation nav > ul > li > a span {
  position: relative;
  z-index: 1;
}


.dropdown {
  position: relative;
  z-index: 99; /* like this the dropdown isn't behind the mp3 */
}

.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  padding: 10px;
  list-style: none;
  width: max-content;
  background-color: #fff8ee;
  border: 1px solid var(--text-color);
  border-radius: var(--round-borders);
}

.dropdown-content a {
  background-image: none;
  border: none;
  padding: 10px;
  color: var(--text-color);
  display: block;
}
/* I deleted sth here whoops */

.dropdown:hover .dropdown-content {
  display: block;
  max-height: 400px;
} 

.sticker-left {
  position: relative;
  width: 50px;
  height: auto;
  margin-right: 25px;
}

.sticker-right {
  width: 50px;
  height: auto;
  margin-left: 25px;
  transform: scaleX(-1);
}




/* -------------------------------------------------------- */
/* RADIO */
/* -------------------------------------------------------- */

.radio {
  grid-area: radio;
  overflow-y: auto;
  padding: var(--padding);
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  outline: 2px solid #deab78; 
  outline-offset: -6px;
}

.radio-device {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.25));
  height: auto;
  width: 570px;
  margin: 20px;
}

.radio-body {
  width: 100%;
  height: auto;
}

.radio-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 290px auto;
  grid-template-rows: 1fr 1fr;
  margin: 0 auto;
  top: 121px;
  left: 7px;
  width: 460px;
  height: 250px;
}

.station-list {
  grid-column: 1;
  grid-row: 1/3;
  /* border: 1px solid black; */
  overflow-y: auto;
  padding: 0 15px;
  font-size: 16px;
}

.station-list p {
  border-bottom: 1px dotted #43271c;
  padding: 10px;
  margin: 0;
}

.currently-playing {
  grid-column: 2;
  grid-row: 1;
  /* border: 1px solid black; */
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
}

.radio-controls {
  grid-column: 2;
  grid-row: 2;
  /* border: 1px solid black; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  position: absolute;
  top: 30px;
  left: 15px;
}

.svgs {
  display: none;
}

.symbols {
  width: 30px;
  height: 30px;
  text-align: center;
  fill: var(--text-color);
}

#play-button, #stop-button {
  width: 60px;
  height: 60px;
  margin: 5px 5px 0 5px;
  border: 1px solid var(--text-color);
  border-radius: 50%;
  font-family: "SweetiePie";
  color: var(--text-color);
  background-image: url("https://thecasualcorner.neocities.org/pictures/music/BrownButton.png");
  padding: 0;
  transition: transform 0.1s ease;
}

#play-button:active {
  transform: scale(0.9);
}

#stop-button:active {
  transform: scale(0.9);
}




/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-area: footer;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background: var(--content-background-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  outline: 2px solid #deab78;    
  outline-offset: -6px;
}

footer a,
footer a:visited {
  color: var(--link-color);
}

footer a:hover,
footer a:focus {
  color: var(--link-color-hover);
}




