/******************************************************************************
START Glitch hello-app default styles

The styles in this section do some minimal CSS resets, set default fonts and 
colors, and handle the layout for our footer and "Remix on Glitch" button. If
you're new to CSS they may seem a little complicated, but you can scroll down
to this section's matching END comment to see page-specific styles.
******************************************************************************/

/* 
  The style rules specify elements by type and by attributes such as class and ID
  Each section indicates an element or elements, then lists the style properties to apply
  See if you can cross-reference the rules in this file with the elements in index.html
*/

/* Our default values set as CSS variables */
:root {
  --color-bg: aqua;
  --color-text-main: #000000;
  --color-primary: #ffff00;
  --color-header: fuchsia;
  --color-title: navy;
  --wrapper-height: 87vh;
  --image-max-width: 300px;
  --image-margin: 3rem;
  /* Fonts for different elements */
  --font-family: sans-serif;
  --font-family-header: sans-serif;
  --font-family-list: monospace;
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

/* Our remix on glitch button */
.btn--remix {
  font-family: Menlo, Consolas, Monaco, "Lucida Console", monospace;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  line-height: 1rem;
  font-weight: 500;
  height: 2.75rem;
  align-items: center;
  cursor: pointer;
  background: cornsilk;
  border: 1px solid #000000;
  box-sizing: border-box;
  border-radius: 4px;
  text-decoration: none;
  color: darkgreen;
  white-space: nowrap;
  margin-left: auto;
}
.btn--remix img {
  margin-right: 0.5rem;
}
.btn--remix:hover {
  background-color: #d0fff1;
}

/* Navigation grid */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem 0;
  width: 100%;
  flex-wrap: wrap;
}

/******************************************************************************
END Glitch hello-app default styles
******************************************************************************/
html {
  background-image:url(https://cdn.glitch.global/ec08d62f-2bba-47ca-bdf7-d3932589d44e/ggbg.jpg?v=1723745662262);
  background-repeat:repeat;
}

@media only screen and (max-width: 767px) {
body {
   margin: 0.5rem !important;
}
}
body {
  font-family: var(--font-family);
  background: honeydew;
  margin:2rem;
  border: 5px solid salmon;
  color: lightcoral;
}

/* Page structure */
.wrapper {
  min-height: var(--wrapper-height);
  display: grid;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
}

h1 {
  margin: 0;
  padding-left: 0.5rem;
  padding-top: 0.5rem;
}
h1 a:link, h1 a:hover, h1 a:visited {
  color: mediumorchid;
}
h1:after {
  content: " 🌴";
}
h2 {
  color: palevioletred;
}
h3 {
  color: plum;
}

.footer a:hover {
  background: seashell;
}

p a:link, div.extra a:link {
  font-weight: bold;
  color: hotpink;
}
p a:hover, p a:visited, div.extra a:hover, div.extra a:visited {
  color: seagreen;
}
/* Button - Add it from the README instructions */
button,
input {
  font-family: inherit;
  font-size: 100%;
  background: #ffffff;
  border: 1px solid #000000;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  transition: 500ms;
}

/* Subheading */

h2,
h3 {
  padding: 0;
  margin-top:0.5rem;
  margin-bottom:0.5rem;
}

/* Interactive image */
.illustration:active {
  transform: translateY(5px);
}

.code, #joker {
  border: 3px solid white;
  margin: 0.5rem;
  padding: 0.5rem;
  background: cornsilk;
  display:inline;
}
.codes {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
}
.code .imghold {
  width:20rem;
  max-width: 80vw;
  height: 15rem;
  background-color:cornsilk;
}

.code img {
  height:100%;
  width:100%;
  object-fit:cover;
}
.imghold > .imghold img:hover {
  border:1px solid black;
}

p.intro {
  background:aquamarine;
  padding:0.5rem 1rem 0.5rem 1rem;
}
p.random {
  padding:0.5rem 1rem 0.5rem 1rem;
  margin-top:0;
  text-align:right;
}
p.random a:link, p.random a:hover, p.random a:visited {
  background:seashell;
  padding:0.3rem;
}
.highlight {
  border: 3px solid lime;
  margin: 0.2rem;
  padding: 0.5rem;
  background: cornsilk;
  display:inline;
}
.highlight img, #joker img {
  width:40rem;
  max-width:80vw;
}
h1 a:link, h1 a:hover, h1 a:visited {
  text-decoration:none;
}
#bonus {
  margin-left:1rem;
  margin-right:1rem;
}
div [id^="code1"] {
  border-color:lavenderblush;
}
div [id^="code2"] {
  border-color:lightpink;
}
div [id^="code3"] {
  border-color:deeppink;
}
div [id^="code4"] {
  border-color:darkviolet;
}
div [id^="code5"] {
  border-color:purple;
}
div [id^="code"]:nth-of-type(3n + 1) h2:after {
  content: " 👜";
}

div [id^="code"]:nth-of-type(3n + 2) h2:after {
  content: " 🍝";
}

div [id^="code"]:nth-of-type(3n + 3) h2:after {
  content: " 💋";
}
div [id^="code"]:nth-of-type(3n + 1) h3:after {
  content: " 🍰";
}

div [id^="code"]:nth-of-type(3n + 2) h3:after {
  content: " 🪴";
}

div [id^="code"]:nth-of-type(3n + 3) h3:after {
  content: " 🏖️";
}

.info {
  max-width:600px;
}
