*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* variables */
:root {
  --bg-light: #f5f9fd;
  --primary-light: #fff;
  --primary-dark: #000;
  --secondary-dark: #0d0e0e;
  --primary-dark-gray: #201f1f;
  --secondary-dark-gray: #413c3c;
}

body {
  font-family: "DM Serif Display", serif;
  background: var(--bg-light);
  color: var(--secondary-dark);
  overflow-x: hidden;
}

/* reset styling */

h1 {
  font-size: 2rem;
  margin: 0.67em 0;
}

p {
  margin: 0.67em 0;
}

li {
  list-style: nonee;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/*
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* image and video */

img,
video {
  height: auto;
  max-width: 100%;
}

/* tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

.container {
  max-width: 70%;
  width: 100%;
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20vh;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

.menu {
  cursor: pointer;
}

.line {
  height: 0.125rem;
  width: 1.8rem;
  background: var(--primary-dark);
  margin: 0.3rem 0;
}

aside {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgb(245, 253, 255);
  overflow-y: auto;
  width: 40%;
  display: flex;
  justify-content: start;
  flex-direction: column;
  padding: 3rem;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
  transform: translateX(100%);
  transition: 0.3s ease;
}

aside.open {
  transform: translateX(0);
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 3rem;
  cursor: pointer;
}

#recentTitle {
  font-weight: 400;
  margin: 1.5rem 0 1rem 0;
}

#recentQuote {
  margin-bottom: 1rem;
  color: var(--secondary-dark);
}

#quote {
  width: 80%;
  margin: 2rem auto;
  display: block;
  font-size: 2rem;
}

.author {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
  color: var(--primary-dark-gray);
  width: 80%;
  margin: 3rem 0 0 0;
}

.btn-generator {
  cursor: pointer;
  margin: 5rem auto;
  display: block;
}

.btn-generator:hover {
  stroke: var(--secondary-dark-gray);
}

#twitter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  color: var(--secondary-dark-gray);
  width: 80%;
  margin-top: 0.75rem;
}

#twitter:hover,
#twitter:hover svg {
  opacity: 0.85;
  text-decoration: underline;
}

/* media queries */

@media all and (max-width: 920px) {
  aside {
    width: 55%;
  }
}

@media all and (max-width: 742px) {
  h2 {
    font-size: 1.2rem;
  }
  aside {
    width: 65%;
  }

  #quote {
    font-size: 1.8rem;
  }

  #quote,
  #twitter {
    width: 100%;
  }

  .author,
  #twitter {
    justify-content: center;
  }

  .author {
    font-size: 1rem;
  }

  #twitte {
    font-size: 0.85rem;
  }
}
