@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400&display=swap');

/*
========================================
C S S   R E S E T
========================================
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;
}

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;
}

/*
========================================
C U S T O M   S T Y L E S
========================================
*/

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: #fdc19d;
  background-image: url(../images/bobby-background.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-position-y: -75px;
  background-attachment: fixed;
  background-size: cover;
  font: 300 10px "Poppins", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
}

/*
========================================
G R I D   L A Y O U T
========================================
*/

.grid {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  grid-template-areas:
    "header header header"
    "bobby meme-generator history";
  grid-gap: 10px;
  max-width: 960px;
  margin: 0 auto;
}

header {
  grid-area: header;
  padding-top: 5px;
}

#bobby {
  grid-area: bobby;
  background-image: url(../images/bobby.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  margin: 0 0 0 10px;
}

#meme-generator {
  grid-area: meme-generator;
  background-color: rgba(255, 255, 255, .5);
  padding-top: 10px;
}

#history {
  grid-area: history;
  max-width: 100%;
}

#bobbies {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  margin-top: 10px;
  padding-bottom: 20px;
}

/*
========================================
F O N T  S T Y L E S
========================================
*/

h1 {
  font-size: 30px;
  line-height: 30px;
  font-weight: 100;
  letter-spacing: 5px;
}

/*
========================================
F O R M   S T Y L E S
========================================
*/

form {
  margin: 0px auto;
  width: 100%;
}

input {
  width: 100%;
  font: 10px "Poppins", Arial, sans-serif;
  margin-bottom: 10px;
}

input[type=text] {
  background-color: white;
  padding: 5px;
  border: 0;
  text-align: center;
}

input[type=text]:focus,
input[type=text]:active {
  border: none;
  outline: none;
  background-color: greenyellow;
}

input[type="submit"] {
  border: 0;
  border-radius: 20px;
  background-color: lightgrey;
  font-size: 24px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 5px;
  padding: 5px 0;
  width: 90%;
}

/*
========================================
M E M E   D I S P L A Y
========================================
*/

#meme-display {
  height: 100%;
  max-height: 350px;
  width: 100%;
  margin: 0px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#meme-container {
  max-width: 290px;
  max-height: 350px;
  position: relative;
}

.meme-text {
  font-size: 20px;
  font-family: Arial;
  font-weight: bold;
  color: white;
  letter-spacing: normal;
  text-shadow: 1px 1px 10px #333;
  position: absolute;
  width: 100%;
}

#top {
  top: 5px;
}

#bottom {
  bottom: 5px;
}

#meme-image {
  max-width: 290px;
  max-height: 350px;
}

/*
========================================
B O B B Y   I M A G E S
========================================
*/

#bobbies p {
  grid-column: 1 / -1;
}

#bobbies img {
  width: 100%;
}

.bobby-square {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.bobby-square img {
  min-height: 100%;
  object-fit: cover;
  opacity: 80%;
}

.bobby-square img:hover {
  opacity: 100%;
}

/*
========================================
H I S T O R Y
========================================
*/

#history {
  margin: 0 10px 0 0;
}

#history img {
  width: 100%;
}

.history-container {
  width: 100%;
  position: relative;
}

.history-text {
  position: absolute;
  font-size: 6px;
  font-family: Arial;
  font-weight: bold;
  color: white;
  width: 100%;
  letter-spacing: normal;
}

.history-top {
  top: 5px;
}

.history-bottom {
  bottom: 10px;
}

/*
========================================
M E D I A   Q U E R I E S
========================================
*/

/*  L A R G E */
@media screen and (min-width: 768px) {
  body {
    font-size: 15px;
    background-position-y: -80px;
  }
  .grid {
    grid-gap: 10px;
  }
  #bobbies {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  h1 {
    font-size: 48px;
    line-height: 48px;
  }
  #meme-generator {
    padding-top: 0;
  }
  #meme-display {
    max-height: 550px;
    max-width: 620px;
  }
  input {
    font-size: 15px;
  }
  #meme-container {
    max-height: 550px;
    max-width: 620px;
  }
  #meme-image {
    max-height: 550px;
    max-width: 620px;
  }
  .meme-text {
    font-size: 35px;
  }
  #top {
    top: 10px;
  }
  #bottom {
    bottom: 10px;
  }
  .history-text {
    font-size: 10px;
  }
  .history-top {
    top: 5px;
  }
  .history-bottom {
    bottom: 12px;
  }
}