/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* End of CSS Reset */

.lobster-regular {
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
	background-color: darkslateblue;
  	background-image: url("background.webp");
	background-repeat: no-repeat;
	background-size: cover;
}

p {
  color: white;
}


.imagesimages {
  grid-template-columns: repeat(auto-fit, minmax(90px, 120px));
  display: grid;
  gap: 12px;
  justify-content: center;
  align-items: center;
  background-color: rgba(238, 130, 238, 0.9);
  padding: 12px;
  border: 1px solid #fff;
  max-width: 1100px;
  margin: 16px auto;
}
.imagesimages div {
  background-color: rgb(17, 1, 32);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 90px;
  min-height: 110px;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.imagesimages img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}
.imagesimages div:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}


.box {
  display: grid;
  grid-template-areas:
    "header image header2"
    "section image section2"
    "footer footer footer";
  grid-template-columns: 1fr 350px 1fr;
  grid-template-rows: auto 1fr auto; /* header, content, & footer */
  gap: 12px;
  background-color: violet;
  padding: 12px;
  width: auto;
  height: auto;
}
.box div {
  background-color: rgb(0, 0, 0);
  padding: 10px;
}
.box .header {
  grid-area: header;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.box .header2 {
  grid-area: header2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.box .section {
  grid-area: section;
}
.box .image {
  grid-area: image;
}
.box .section2 {
  grid-area: section2;
}
.box .footer {
  grid-area: footer;
  text-align: center;  
}



a:hover {
	color: aqua;
}

a {
  color: violet;
  text-decoration: none;
}


nav {
  background-color: rgb(1, 1, 34);
  padding: 5px; /* gives vertical space inside the nav */
  text-align: center; /* centers inline links */
}



/* Nav links with spacing */
nav a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color .15s ease, color .15s ease, transform .12s ease;
}
nav a:hover {
  background-color: rgba(255,255,255,0.06);
  color: aqua;
  transform: scale(1.1);
}

h1 {
	display: flex;
  position: sticky;
  top: 0;
	color: rgb(247, 0, 255);
  background-color: rgb(35, 3, 36);
  border: 2px solid black;
	justify-content: center;
	font-weight: bold;
	font-size: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 5px;
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h2 {
	display: flex;
	color: magenta;
	justify-content: center;
	text-decoration: italic;
	font-size: 30px;
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  font-style: normal;
}


footer {
	background-color: darkblue;
  font-family: "Lobster", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Footer put outside grid */
.site-footer {
  background-color: rgb(1, 1, 34);
  color: white;
  text-align: center;
  padding: 12px 8px;
  margin: 24px auto 0;
  max-width: auto;
  border-radius: 4px;
}

.box img {
  max-width: 100%;
  height: auto;
  display: block;
  padding-top: 10px;
}


/* Form Styles */

form {
    display: flex;
    justify-content: center;
    margin: 20px;
}

legend {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    border: 3px solid rgb(255, 255, 255);
}

label {
    color: rgb(255, 255, 255);
    padding-left: 5px;
}

fieldset {
    border-radius: 20px;
    background-color: rgb(0, 0, 0);
    border: 3px solid rgb(255, 255, 255);
}

label, input {
    margin-top: 10px;
    margin-bottom: 10px;
}

input {
    padding: 5px;
    border-radius: 5px;
}

button:hover {
    background-color: rgb(178, 32, 171);
}

input[required] {
    background-color: rgb(0, 55, 73);
    color: rgb(0, 200, 255);
}

input[type=submit]:hover {
    background-color: rgb(0, 55, 73);
    color: rgb(0, 200, 255);
    cursor: pointer;
}




/* Responsive designs for smaller screens */

/* For computer */
@media (min-width: 1024px) {
  .imagesimages {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .imagesimages div { min-height: 500px; }
}

/* For mobile */
@media (max-width: 410px) {
  .imagesimages {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .imagesimages div { min-height: 200px; }
}

/* For tablet */
@media (min-width: 411px) and (max-width: 1023px) {
  .imagesimages {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    padding: 8px;
  }
  .imagesimages div { min-height: 400px; }
}

