@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&display=swap');

*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Playfair", serif;
}
:root {
  --bg1: #ec4899;
  --bg2: #8b5cf6;

  --card: #f9a8d4;   /* pink tinted card */

  --text: #3b0764;
  --muted: #6b21a8;

  --accent: #d946ef;
  --accent-soft: #f472b6;

  --btn1: #ec4899;
  --btn2: #8b5cf6;

  --border: #f472b6;
}

body.dark {
  --bg1: #1a1020;
  --bg2: #2e1065;

  --card: #22162b;

  --text: #f5f3ff;
  --muted: #d8b4fe;

  --accent: #e879f9;
  --accent-soft: #f472b6;

  --btn1: #ec4899;
  --btn2: #a855f7;

  --border: #3b2a45;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
}
.theme-toggle:active {
  transform: scale(0.9);
}
body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);

  display: flex;
  justify-content: center;
  align-items: center;
}

.quote-box{
    width: 700px;
    background: var(--card);
    color: var(--text);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0,0,0,0.15);
    text-align: center;
  backdrop-filter: blur(10px);
    /* position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
}

.quote-box h2{
    font-size: 30px;
    margin-bottom: 40px;
    position: relative;
}
.quote-box h2::after{
content: '';
width: 75px;
height: 3px;
border-radius: 3px;
background: var(--accent);
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}
.quote-box blockquote{
    font-size: 24px;
    min-height: 110px;
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
}
.quote-box blockquote::before, .quote-box blockquote::after{
content: '"';
}

.quote-box span{
    display: block;
    margin-top: 10px;
    float: right;
    position: relative;
    font-size: 20px;
    color: var(--muted);
}
.quote-box span::before{
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent);
    position: absolute;
    top: 50%;
    left: -30px;
}

.quote-box div {
    width: 100%;
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.quote-box button {
       background: var(--btn1);
    border: 1px solid var(--btn1);
    color: #fff;
    border-radius: 25px;
    /* border: 1px solid rgb(23, 124, 229); */
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    cursor: pointer;
}

.quote-box button:nth-child(2)  {
    background: transparent;
    color: var(--btn1);
    border: 1px solid var(--btn1);
}

body, .quote-box, button, span {
  transition: all 0.3s ease;
}


/* Tablets */
@media (max-width: 768px) {
  .quote-box {
    width: 90%;
    padding: 30px 20px;
  }

  .quote-box h2 {
    font-size: 26px;
  }

  .quote-box blockquote {
    font-size: 20px;
  }

  .quote-box span {
    font-size: 18px;
  }

  .quote-box button {
    width: 130px;
    height: 45px;
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .quote-box {
    width: 95%;
    padding: 25px 15px;
  }

  .quote-box h2 {
    font-size: 22px;
  }

  .quote-box blockquote {
    font-size: 18px;
    min-height: auto;
  }

  .quote-box span {
    font-size: 16px;
  }

  .quote-box div {
    flex-direction: column;
    align-items: center;
  }

  .quote-box button {
    width: 100%;
    max-width: 250px;
    height: 45px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
    font-size: 18px;
    top: 15px;
    right: 15px;
  }
}

/* Very small devices */
@media (max-width: 320px) {
  .quote-box h2 {
    font-size: 20px;
  }

  .quote-box blockquote {
    font-size: 16px;
  }
}