@import url('https://fonts.googleapis.com/css?family=Imperial Script|MonteCarlo|Nunito');

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #fff;
  transition: background-color 1s ease;
}

section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  /* background: url("/img/bg1.jpg"); */
}
#photo{
  background-image: url("/img/webp/bg1.webp");
  background-repeat: no-repeat !important; 
  background-position: center!important; 
  background-size: cover !important; 
  /*transition: background 1s ease, opacity 1s ease; /* Thêm hiệu ứng mượt cho background và opacity */
  transition: background-image 3s;
  opacity: 1; /* Đảm bảo opacity ban đầu là 1 */
}

section .box {
  position: relative;
  max-width: 800px;
  padding: 50px;
  /* box-shadow: 0 5px 15px rgba(255, 255, 255, .8); */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  border-radius: 1em;
}

.box header {
  font-family: 'Imperial Script', sans-serif;
  font-size: 60px;
  font-weight: 800;
  text-align: center;
  color: #9c0a0f;
  border-bottom: 2px solid #9c0a0f;
  border-top: 2px solid #9c0a0f;

}

.box .quote-area {
  display: flex;
  justify-content: center;
}

.quote-area i {
  font-size: 40px;
}

.quote-area i:first-child {
  margin: 3px 10px 0 0;
}

.quote-area i:last-child {
  display: flex;
  align-items: flex-end;
  margin: 0 0 3px 10px;
}

.quote-area .quote {
  font-family: 'Nunito', sans-serif;
  font-size: 30px;
  text-align: center;
  line-height: 40px;
  font-weight: 600;
}

.content .author {
  display: flex;
  margin-top: 10px;
  justify-content: flex-end;
  font-style: italic;
  font-size: 25px;
}

.author span:first-child {
  margin: 0px 5px 0 0;
  font-family: 'MonteCarlo', sans-serif;
}

.author span:last-child {
  margin: 0px 10px 0 0;
  font-family: 'MonteCarlo', sans-serif;
}

#current-date {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  margin-top: -35px;
  display: flex;
  justify-content: flex-end;
}


#newquote{
  border: none;
  outline: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  padding: 10px 14px;
  background: #b71c1c;
  transition: all 0.7 ease;
  border-radius: 99px;
}

#newquote:hover{
  background:#ef5350;
}

.button.loading{
  opacity: 0.7;
  pointer-events: none;
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0 , 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#popup-content {
  padding: 20px;
  position: relative;
  border-radius: 10px;
  text-align: center;
  transform: scale(0.8);
}

#popup-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: rgba(255, 255, 255, 0.8) 2px 5px 15px;
}

#close-btn {
  position: absolute;
  top: 5px;
  right: 30px;
  font-size: 50px;
  cursor: pointer;
  color: #fff;
  text-shadow: 1px 1px 2px black, 0 0 25px red, 0 0 5px darkred;
}

.hidden {
  display: none !important;
}



.fixed-action-btn.spin-close .btn-large {
  position: relative;
}

.fixed-action-btn.spin-close .btn-large i {
  opacity: 1;
  transition: transform 0.3s, opacity 0.3s;
}

.fixed-action-btn.spin-close .btn-large:before {
  transition: transform 0.3s, opacity 0.3s;
  content: " ";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.64rem;
  height: 2px;
  background: white;
  margin-top: -2px;
  margin-left: -0.82rem;
  transform: rotate(0);
  opacity: 0;
}

.fixed-action-btn.spin-close .btn-large:after {
  transition: transform 0.3s, opacity 0.3s;
  content: " ";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.64rem;
  height: 2px;
  background: white;
  margin-top: -2px;
  margin-left: -0.82rem;
  transform: rotate(0);
  opacity: 0;
}

.fixed-action-btn.spin-close.active .btn-large i {
  opacity: 0;
}

.fixed-action-btn.spin-close.active .btn-large:before {
  opacity: 1;
  transform: rotate(135deg);
}

.fixed-action-btn.spin-close.active .btn-large:after {
  opacity: 1;
  transform: rotate(405deg);
}