/* Style sheet
   color picker www.w3schools.com/colors/colors_picker.asp
*/
/* Source: https://fonts.google.com/selection/embed */
@import url('https://fonts.googleapis.com/css2?family=Pompiere&display=swap');
/* Source: https://colorhunt.co/palette/ececec84934a656d3f492828#/ */
/* Utilizing the 60-30-10 rule for the coloring of the webpage: https://supercharge.design/articles/what-is-the-3-color-rule-in-ui-design#/ */
:root{
  --background-color: #ECECEC;
  --primary-color: #84934A;
  --secondary-color: #656D3F;
  --accent-color: #492828;
}

html {
  background-color: var(--background-color);
  font-family: 'Pompiere', cursive;
  /* Added */
  display: flex;
  justify-content: center;
}
 
body {
  width: 60vw; /* 60% of the viewport width */
  border: 2px solid black;
  padding: 0px 20px;
  /* Added */
  border-radius: 50px;
  position: relative;
  background: rgba(236, 236, 236, 0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

h1 {
	font-size: 40px;
	text-align: center;
	margin: 0;
	padding: 20px 0;
	color: var(--primary-color);
}
h2 {
  font-size: 30px;
  text-align: center;
  margin: 0;
  padding: 10px 0;
  color: var(--secondary-color);
}

fieldset.callout {
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 20px 20px;
  background: rgba(255, 255, 255, 0.7);
}

fieldset.callout legend {
  color: var(--secondary-color);
  font-weight: bold;
  padding: 0 8px;
}

fieldset.callout label {
  display: block;
  margin-top: 8px;
  color: var(--secondary-color);
}

fieldset.callout progress {
  width: 100%;
  height: 16px;
  accent-color: var(--primary-color);
}

img {
  display: block;
  margin: 0 auto;
  align-items: center;
}

p {
  color: var(--accent-color);
}

button {
  color: var(--accent-color);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
/* Selecting only the text type to be at 100% width */
input[type="text"] {
  width: 100%;
}

input, select, textarea {
  font-family: 'Pompiere', cursive;
  font-weight: bold;
}

select{
  color: var(--accent-color);
}

/* Defining styling for a specific element type - each question */
.question {
  border: 1px dashed var(--accent-color);
  border-radius: 16px;
  margin: 20px;
  padding: 20px;
  display: grid;
  gap: 10px;
}

.hero {
  text-align: center;
  margin: 10px 0 20px;
}

.hint {
  margin-top: 8px;
  font-size: 90%;
  color: var(--secondary-color);
}

.zoomable {
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid var(--secondary-color);
}

.zoomable img {
  transition: transform 0.3s ease;
}

.zoomable:hover img,
.zoomable:focus img {
  transform: scale(1.4);
  transform-origin: 50% 30%;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 20px 20px;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--accent-color);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/UO-background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
}

/* Defining styling for a specific element type - large block buttons */
.block {
  display: block;
  width: 100%;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
}

/* Defining styling for a specific element with an id */
#signature {
  text-align: right;
  color: var(--accent-color);
  font-style: italic;
  font-size: 75%;
}

#submitButton {
 background-color: var(--primary-color);
 color: var(--background-color);
 border-radius: 50px;
}
