/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

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

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

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

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

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

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

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

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

  /* Text: */
  --font: "Worstveld", sans-serif; 
  --heading-font: "Kingthings", sans-serif;
  --font-size: 22px;

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

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

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font); 
  line-height: 1.2;
  /* background: var(--background-color); */
  background-image: url("https://thecasualcorner.neocities.org/pictures/GreenBackground.jpeg"); /* Change picture of entire background */
  cursor: url("https://thecasualcorner.neocities.org/pictures/PixelWand.png") 16 16, auto;
}

::-moz-selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links: */
a {
  text-decoration: underline;
}

a:active {
  color: var(--link-color); /* Temporary brown when clicking any link, only while mouse is pressed */
}


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

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

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

.layout {
  width: 1000px;
  display: -ms-grid;
  display: grid;
  grid-gap: var(--margin);
  -ms-grid-rows: auto var(--margin) auto var(--margin) auto;
  -ms-grid-columns: var(--sidebar-width) var(--margin) auto;
      grid-template: "header header" auto 
                     "banner banner" auto
                     "navigation navigation" auto
                     "leftSidebar main" auto 
                     "footer footer" auto 
                     / var(--sidebar-width) auto;
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

main {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  grid-area: header;
  font-size: 1.2em;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color); 
  background-image: url("https://thecasualcorner.neocities.org/pictures/HeaderBackground.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 170px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  outline: 2px solid #4c5f3f; 
  outline-offset: -6px;
}

.header-content {
  padding: var(--padding);
  position: relative;
}

.header-title {
  font-family: "Kingthings";
  font-size: 50px;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
}


.header-image {
  max-width: 80%;       
  height: auto;         
  display: block;       
  margin: 0 auto;     
  z-index: 1;
  position: absolute;
  transform: translateX(-50%);
} 


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

.banner-image {
  grid-area: banner;
  height: 170px;
  width: 100%;
  background-image: url("https://thecasualcorner.neocities.org/pictures/BeachBanner.jpg"); 
  /* 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 #4c5f3f; 
  outline-offset: -6px;
}



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

.navigation {
  grid-area: navigation;
  display: grid;              /* make the navigation section a grid */
  justify-content: center;  
  height: 50px;
  width: 100%;
}

.navigation ul {
  display: grid;
  grid-auto-flow: column;  
  grid-template-columns: repeat(5, 1fr);
  place-items: center;
  gap: 20px;                
  padding: 0;
  margin: 0;
  list-style: none;
  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/GreenButton.png");
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: #fffcf5;
  font-family: "Kingthings";
  text-align: center;
}

.navigation:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}


/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */


/* MP3 PLAYER */ 

.player-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: max-content;
  margin: 0; /* this centres box */
  background: #f0c8a3;
  background-image: linear-gradient(
    45deg,
    #fee3c9 0%,
    #ffc68d 100%);
  border: var(--border);
  border-radius: var(--round-borders);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  padding: 25px;
  font-family: "SunnySpells";
  color: var(--sidebar-text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 25px;
  margin-top: 25px;
}

.album-cover img {
  width: 100px;
  height: 100px;
  object-fit: cover;                /* keeps ratio */
  border-radius: 5px;
}

.song-info {
  text-align: center;
}

.song-title {
  font-size: 16px;
  font-weight: bold;
}

.song-artist {
  font-size: 14px;
}

.progress-section {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  box-sizing: border-box;
  background: #555;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: #ff9900;
  border-radius: 4px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%); /* dot moved when i added this */
  top: 50%;
  left: 0;
}

.time-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.control-btn img {
  width: 45px;
  height: 45px;
  transition: transform 0.1s ease;
}

.control-btn:active img {
  transform: scale(0.8);
}



/* CALENDAR */

.calendar {
  width: 160px;
  height: 160px;          
  background: #f0c8a3;
  background-image: url("https://thecasualcorner.neocities.org/pictures/CalendarBackground2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  border: 1px solid #354a2f;
  margin: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding: 10px;
  text-align: center;
}


.calendar-body {
  width: 110px;
  height: 110px;
  background: #f9eadc;;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 10px;
  margin: 0 auto;
  margin-top: 25px;
  box-shadow: inset 0px 0px 3px rgba(0,0,0,0.5);
  gap: 10px;
}

.calendar-header {
    background: #f9eadc;;
    width: 110px;
    height: 17px;
    border-radius: 12px;
    box-shadow: inset 0px 0px 3px rgba(0,0,0,0.5);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 9px;
    padding: 0px;
}

.calendar-year {
  font-family: Verdana, serif;
  font-size: 12px;
  letter-spacing: 8px;
  line-height: 1;           /* line-height = exact font size */
  margin: 0;    
}

.calendar-date {
    font-size: 50px;
    font-family: "PixelSplitter";
    flex-direction: column;
    justify-content: center;
    display: flex;
    flex-direction: column;  
    justify-content: center;
    position: relative;
    top: 5px;    
}

.calendar-month {
   font-family: Verdana, serif;
   font-size: 12px;
   letter-spacing: 5px;
   margin: 0;
   transform: translateX(1px);
}



aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
  display: flex;
  flex-direction: column; 
  align-items: center;
  outline: 2px solid #4c5f3f;    
  outline-offset: -6px;
}

.left-sidebar {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  grid-area: leftSidebar;
}

.right-sidebar {
  grid-area: rightSidebar;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1em; /*change size of sidebar title*/
  font-family: var(--heading-font);
}

.sidebar-section:not(:last-child) {
  margin-bottom: 0.5em;
}

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* Sidebar navigation buttons */


/* aside nav > ul > li > a {
  display: block; 
  padding: 10px 14px; 
  border: 1px solid var(--sidebar-text-color); 
  color: var(--sidebar-text-color); 
  background-image: url("https://thecasualcorner.neocities.org/pictures/button.png"); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat; 
  text-decoration: none; 
  margin-bottom: 5px; 
  border-radius: var(--round-borders); 
  width: 100%; 
  box-sizing: border-box; 
  text-align: center; 
  font-family: "Kingthings"; 
} /*

aside nav a:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
} /*try out and check if good or only one; until here copy*/


/* Sidebar Blockquote: */

.sidebar-section blockquote {
  /* background: rgba(0, 0, 0, 0.1) */
  background: #f0c8a3;
  padding: 15px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  font-family: "Kingthings", sans-serif;
  font-size: 1em;
  text-align: center;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

/* Site Button: */

.site-button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}


/* -------------------------------------------------------- */
/* 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 #4c5f3f;    
  outline-offset: -6px;
}

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

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

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

nav {
  margin-bottom: 3em;
}

nav .sidebar-title {
  margin-bottom: 0.5em;
}

nav ul {
  margin: 0 -5px;
  padding: 0;
  list-style: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

nav ul li {
  margin-bottom: 0;
}

nav > ul li > a,
nav > ul li > strong {
  display: inline-block;
}

nav > ul li > a,
nav > ul li > details summary,
nav > ul li > strong {
  padding: 5px 10px;
}

nav > ul li > a.active,
nav > ul li > details.active summary {
  font-weight: bold;
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
}



/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

main {
  line-height: 1.5;
  outline: 2px solid #4c5f3f; 
  outline-offset: -6px;
}

main {
  padding: 40px;
} /* I just added this padding ^ cabr it not go to other main?? */

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

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  -webkit-text-decoration-style: wavy;
          text-decoration-style: wavy;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol li,
main ul li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main ol {
  padding-left: 2em;
}

main blockquote {
  background: #f0c8a3;
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

main center {
  margin: 1em 0;
  padding: 0 1em;
}

main hr {
  border: 0;
  border-top: var(--border);
  margin: 1.5em 0;
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: Kingthings;
  margin-bottom: 0;
  line-height: 1.5;
}

main h1:first-child,
main h2:first-child,
main h3:first-child,
main h4:first-child,
main h5:first-child,
main h6:first-child {
  margin-top: 0;
}

main h1 {
  font-size: 1.4rem;
}

main h2 {
  font-size: 0.8em;
}

main h3 {
  font-size: 0.7em;
}

main h4 {
  font-size: 0.6em;
}

main h5 {
  font-size: 0.5em;
}

main h6 {
  font-size: 0.4em;
}

/* COLUMNS: */

.two-columns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.two-columns > * {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}

.divider {
  display: block;       
  margin: 50px auto;    
  height: auto;         
  width: 100%;      
}


/* -------------------------------------------------------- */
/* FEED IN MAIN */
/* -------------------------------------------------------- */


.feed {
  display: flex;                
  flex-direction: row;
  gap: 50px;                    
  margin-top: 20px; 
  width: 100%;                  
  box-sizing: border-box;
}

.feed-update {
  flex: 1;                       
  max-width: 500px;              
  max-height: 300px;             
  border: var(--border);         
  border-radius: 12px;  
  padding: 35px;                 
  overflow-y: auto;              /* scroll */
  background: #fee3c9;  
  background-image: url("https://thecasualcorner.neocities.org/pictures/BackgroundUpdate.png");
  background-size: cover;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}


.feed-update h2 {
  margin: 0 auto 15px auto;
  text-decoration: underline;
}

.feed-update p {
  margin: 5px 0;
  text-align: left;
}

.feed-update p,
.feed-update h2 {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

.feed-gifs {
  flex: 1;                      
  max-width: 500px;           
  padding: 10px;
  display: flex;
  justify-content: center;        /* centre horizontally */
  align-items: center;            /* centre  vertically */
  box-sizing: border-box;
}

/* GIF images */
.feed-gifs img {
  max-width: 100%;               
  height: auto;                  /* keeps ratio */
  object-fit: contain;           /* fit inside container */
  display: block;
  border-radius: 12px;  
}


/* -------------------------------------------------------- */
/* CONTENT IMAGES */
/* -------------------------------------------------------- */

/*
.image {
  display: block; 
  width: auto; 
  height: auto;  
  max-width: 100%; 
} 

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;  
}
*/


/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

/* please do not remove this. */

#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: var(--content-background-color);
  color: var(--text-color);
  -webkit-transform: translateY(-3rem);
      -ms-transform: translateY(-3rem);
          transform: translateY(-3rem);
  -webkit-transition: -webkit-transform 0.1s ease-in;
  transition: -webkit-transform 0.1s ease-in;
  -o-transition: transform 0.1s ease-in;
  transition: transform 0.1s ease-in;
  transition: transform 0.1s ease-in, -webkit-transform 0.1s ease-in;
  z-index: 99999999999;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {
  body {
    font-size: 14px;
  }

  .layout {
    width: 100%;
    -ms-grid-rows: auto var(--margin) auto var(--margin) auto var(--margin) auto;
    -ms-grid-columns: 1fr;
        grid-template: "header" auto "banner" auto navigation auto "leftSidebar" auto "main" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  
  .right-sidebar { 
    display: none;
  }

  aside {
    border-bottom: 1px solid;
    padding: 9px;
    font-size: 0.9em;
  }

  
  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }

  main {
    -ms-grid-row: 5;
    -ms-grid-column: 1;
  }

  header {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }

  .left-sidebar {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
  }

  footer {
    -ms-grid-row: 7;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }
}

