/* import google font */

@import url("https://fonts.googleapis.com/css2?family=Glory:wght@100;200;300;400;500;600;700;800&display=swap");

/* reset default css */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Glory", sans-serif;
  background-image: radial-gradient(
    circle at top right,
    rgb(49, 157, 235) 0%,
    rgb(49, 157, 235) 13%,
    rgb(76, 166, 234) 13%,
    rgb(76, 166, 234) 23%,
    rgb(103, 176, 232) 23%,
    rgb(103, 176, 232) 33%,
    rgb(130, 185, 231) 33%,
    rgb(130, 185, 231) 46%,
    rgb(156, 194, 230) 46%,
    rgb(156, 194, 230) 48%,
    rgb(183, 203, 229) 48%,
    rgb(183, 203, 229) 63%,
    rgb(210, 213, 227) 63%,
    rgb(210, 213, 227) 83%,
    rgb(237, 222, 226) 83%,
    rgb(237, 222, 226) 100%
  );
  height: 100vh;
  background-repeat: no-repeat;
}

header {
  background-color: aquamarine;
  padding: 10px 0;
  margin-bottom: 100px;
}

header h1 {
  text-align: center;
}

main {
  display: grid;
  place-items: center;
}

.container {
  width: 1100px;
  margin: 0 auto;
}

.container #quote__button {
  margin-bottom: 100px;
}

/* button css */

#quote__button {
  padding: 20px 35px;
  border: 0;
  outline: 0;
  border-radius: 5px;
  background-color: #deb887;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  cursor: pointer;
}

#quote__button::before {
  content: "Load New Quote";
  padding: 20px 35px;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  outline: 0;
  transform: rotateX(270deg);
  transform-origin: top;
  border-radius: 5px;
  background-color: #36ec36;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.9s;
  cursor: pointer;
}

#quote__button:hover:before {
  transform: rotateX(0deg);
}

#quote__button::after {
  content: "Load New Quote";
  padding: 20px 35px;
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  outline: 0;
  transform: rotateX(270deg);
  transform-origin: bottom;
  border-radius: 5px;
  background-color: #008080;
  font-size: 16px;
  transition-delay: 0.5s;
  transition: all 0.9s;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

#quote__button:hover::after {
  transform: rotateX(0deg);
}

/* quote container css */

#quote__container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 30px;
}

.quote__image img {
  width: 90%;
  object-fit: cover;
  border-radius: 10px;
}

.quote__content {
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* spinner css */

#spinner:not([hidden]) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#spinner::after {
  content: "";
  width: 80px;
  height: 80px;
  border: 2px solid #f3f3f3;
  border-top: 3px solid #f25a41;
  border-radius: 100%;
  will-change: transform;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 

==============================
      some media query 
============================== 

*/

@media only screen and (max-width: 1150px) {
  .container {
    width: 90%;
  }
}

@media only screen and (max-width: 500px) {
  header {
    margin-bottom: 50px;
  }

  .container #quote__button {
    margin-bottom: 50px;
  }

  #quote__container {
    grid-template-columns: repeat(1, 1fr);
  }
}
