/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

:root {
  --primary-color: #3061e3;
}


/* Basic Button Styling (copied from A elements) */
button {
  font-family: "Space Mono", Verdana, Geneva, sans-serif;
  font-size: 1.2em;
  display: inline-block;
  margin-right: 0.5em;
  margin-bottom: 0.7em;
  margin-top: 0.7em;
  box-shadow: 4px 4px 0px #171717;
  color: black;
  background-color: #ffffff;
  border: 3px solid var(--primary-color);
  padding: 6px 30px;
  text-transform: uppercase;
  text-decoration: none;
}
button:hover {
  background-color: #8ba8f8;
  text-decoration: none;
}
button:active {
  background-color: #74bc28;
  text-decoration: none;
}


/* klaus */
body {
  background-color: #dfe4ee;
  background-image: url('../images/klonoa.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  font-size: 18px;
  font-family: "Space Mono", Verdana, Geneva, sans-serif;
  margin: 0;
}

/* klaus */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  max-width: 100%;
}

.image-grid img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.image-grid img:hover {
  transform: scale(1.05);
}
/* klaus ende */


p {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}
#content li {
  line-height: 1.6em; /*I find the default HTML line-height tends to be a bit claustrophobic for main text*/
}

a:hover, a:focus {
  background-color: #ffbedb;
}

img {
  max-width: 100%;
  height: auto;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
@media only screen and (min-width: 600px) {
  .small {
  max-width: 60%;
  height: auto;
  }
}
.caption {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
}

/*The horizontal rule appears at the top of the footer to visually separate the footer
from the content. You can also use <hr> to divide sections in the content!*/
hr {
  border-width: 5px 0 0 0;
  border-style: dashed;
  border-color: var(--primary-color);
}

/*#CONTAINER is the rectangle that has contains everything but the background!*/
#container {
  margin: 3em auto;
  width: 90%;
	max-width: 700px;
	background-color: white;
  color: #214457; 
  /*border-radius: 30px 30px 20px 20px;*/
  overflow: hidden;
  /*box-shadow: 0 -2px 10px 0 #8da5cb inset;*/
  box-shadow: 8px 8px 0px #171717;
}

#content {
  padding: 10px 5% 20px 5%;
}


/*HEADER STYLE*/

/*
#c8e093 grass bg
triad= e093c7
93c7e0

dumm
319938
3061e3

*/
#header {
  position: relative; /*doesn't change this element, but needed for the pink ring's positioning*/
  background-color: #fff;
  padding: 0 5%;
  border-color: var(--primary-color);
  border-style: solid;
  border-width: 0 0 5px 0;
  background-clip: padding-box;
  /*box-shadow: 0 -2px 12px 0 #af36e7 inset;*/
  /*This is a workaround for the fact that overflow:hidden on parent element apparently didn't work in older versions of firefox:
  https://stackoverflow.com/questions/3714862/forcing-child-to-obey-parents-curved-borders-in-css*/
  -moz-border-radius: 20px; 
}
#header ul {
  display: inline-block;
  list-style-type: none;
  padding: 0;
  margin-bottom: 1em;
  margin-top: 1em;
}
#header li {
  font-size: 1.2em;
  display: inline-block;
  margin-right: 0.5em;
  margin-bottom: 0.7em;
  margin-top: 0.7em;
}
#header li a {
  box-shadow: 4px 4px 0px #171717;
  color: black;
  background-color: #ffffff;
  /*border-radius: 25px;*/
  border: 3px solid var(--primary-color);
  padding: 6px 30px;
  /*box-shadow: 0 -2px 12px 0 #f1af00 inset;*/
  text-transform: uppercase;
  text-decoration: none;
}
#header li a:hover {
  background-color: #8ba8f8;
  text-decoration: none;
}
#header li a:active {
  background-color: #74bc28;
  text-decoration: none;
  /*box-shadow: 0 -2px 12px 0 #fe83ff inset;*/
}
/*Floating ring*/
/*#header:after {
    position: absolute;
    right: 5%;dd7c27
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  padding: 0 5% 10px 5%;
}

.card {
  /* Add shadows to create the "card" effect */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
}

/* On mouse-over, add a deeper shadow */
.card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Add some padding inside the card container */
.cardcontainer {
  padding: 2px 16px;
}

.youtube-video {
  aspect-ratio: 16 / 9;
  width: 100%;
}


/* Window controls container */
.window-controls {
  display: flex;
  gap: 8px; /* Space between buttons */
  justify-content: flex-end;
  border-color:var(--primary-color);/*#ff75af;*/
  border-style: solid;
  border-width: 0 0 5px 0;
}

.window-controls span {
  box-shadow: 2px 2px 0px #171717;
  margin-top: 10px;
  margin-bottom: 5px;
  margin-right: 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
 /* background-color: #888888; /* Default button background */
  color: #000000;
  font-weight: bold;
  /*border-radius: 3px;*/
  cursor: pointer;
  user-select: none; /* Prevent text selection */
  transition: background-color 0.2s ease;
  outline: 1px solid #000;
}

.window-controls span:hover {

  /*background-color: #666666; /* Hover effect override from specific cases*/
}

/* Close button specific */
.window-controls .close:hover {
  background-color: #ff5f57; /* Red on hover */
}

.window-controls .maximize:hover {
  background-color: #d55ee2; /* Green on hover */
}

.window-controls .minimize:hover {
  background-color: #638dff; /* Yellow on hover */
}
