@font-face {
  font-family: 'Magnus';
  src: url('M-Hwr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BrittanySignature';
  src: url('BrittanySignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Beauty';
  src: url('Beauty.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Demanther';
  src: url('Demather.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Vogue';
  src: url('Vogue.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1{
    color:red;
    font-family: "Helvetica";
    font-size: 55px;
}

p{
    font-size: 23px;
}

  .book {
    width:420px;
    height:600px;
    background: #ff2f00;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border:1px solid #e5e5e5;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:60px 40px;
    text-align:center;
    align-items: center;
  }

  .title {
    font-family: "Vogue";
    font-size:9.5rem;
    letter-spacing:2px;
    line-height:1.05;
  }

  .author {
    font-family: "Demanther";
    font-size:4rem;
    letter-spacing:1px;
    margin-top:20px;
  }


  .book2 {
    width: 460px;
    height: 600px;                 /* near-square, realistic proportion */
    background: #f9f8f6;           /* paper tone */
    border: 1px solid #dcd9d5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    padding: 60px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: "Georgia", "Times New Roman", serif;
    align-items: center;
  }

  .heading {
    font-size: 2.4rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    color: #161616;
    margin: 0;
  }

  .subtitle {
    font-size: 1rem;
    color: #222;
    font-style: italic;
    margin-top: 1.2em;
  }

  .author2 {
    align-self: flex-end;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #161616;
  }

   :root{
    --book-w: 1200px;
    --book-h: 620px;
    --radius: 16px;
    --paper: #fbfaf8;
    --table: #d7d6d3;
  }

  .book-wrap{ position:relative; filter: drop-shadow(0 26px 40px rgba(0,0,0,.18)); }
  .base-shadow{
    position:absolute; inset:auto 0 -26px 0; height:26px;
    background: radial-gradient(60% 100% at 50% 0, rgba(0,0,0,.25), transparent 70%);
    pointer-events:none;
  }

  .book3{
    position:relative;                 /* important for absolute children */
    display:flex; width:var(--book-w); height:var(--book-h);
    background: linear-gradient(#fff, #fbfaf8);
    border:1px solid #dad6d2; border-radius: var(--radius); overflow:hidden;
  }
  .book::after{
    content:""; position:absolute; inset:0; border-radius:var(--radius);
    box-shadow: inset 0 0 0 2px rgba(0,0,0,.03), inset 0 0 40px rgba(0,0,0,.05);
    pointer-events:none;
  }

  /* outer page stacks */
  .edge{
    position:absolute; top:0; width:16px; height:100%; z-index:1;
    background: repeating-linear-gradient(to bottom,#e9e7e2 0,#e9e7e2 2px,#f6f3ee 2px,#f6f3ee 4px);
  }
  .edge.left  { left:-12px;  border-radius:12px 0 0 12px; }
  .edge.right { right:-12px; border-radius:0 12px 12px 0; }

  /* pages */
  .page{
    position:relative; flex:1; padding:60px 50px; box-sizing:border-box;
    display:flex; flex-direction:column; justify-content:space-between;
    background:
      radial-gradient(120% 100% at 50% 50%, rgba(0,0,0,.02), transparent 60%),
      url('https://www.transparenttextures.com/patterns/paper-fibers.png'),
      var(--paper);
  }
  .page.left{
    border-right:1px solid #e9e6e2;
    box-shadow: inset -28px 0 30px -28px rgba(0,0,0,.28);
    border-top-left-radius: calc(var(--radius) - 2px);
    border-bottom-left-radius: calc(var(--radius) - 2px);
  }
  .page.right{
    border-left:1px solid #e9e6e2;
    box-shadow: inset 28px 0 30px -28px rgba(0,0,0,.28);
    border-top-right-radius: calc(var(--radius) - 2px);
    border-bottom-right-radius: calc(var(--radius) - 2px);
  }

  /* punch holes — align with rings */
  .page.left::after,
  .page.right::after{
    content:""; position:absolute; top:6%; bottom:6%;
    width:14px; left:calc(100% - 7px);             /* at inner edge */
    background:
      radial-gradient(circle, rgba(0,0,0,.28) 0 34%, transparent 35%) 50% 12%/14px 14px,
      radial-gradient(circle, rgba(0,0,0,.28) 0 34%, transparent 35%) 50% 37%/14px 14px,
      radial-gradient(circle, rgba(0,0,0,.28) 0 34%, transparent 35%) 50% 63%/14px 14px,
      radial-gradient(circle, rgba(0,0,0,.28) 0 34%, transparent 35%) 50% 88%/14px 14px;
    background-repeat:no-repeat;
    pointer-events:none;
    transform: translateX(-7px);
    opacity:.7;
  }
  .page.right::after{ left:-7px; transform:none; }

  /* themes */
  .yeu   { background-color:#ffffff; color:red; }
  .thuong{ background-color:#c4eefc; color:#ffffff; }

  .thuongheading{
    color: #ffffff;
  }

  .yeuheading{
    color:red;
  }

  .yeuthuongheading{ font-size:4rem; line-height:1.1; margin:0 0 16px; letter-spacing:.04em; text-transform:uppercase; }
  .yeuthuong{ font-size:1.4rem; line-height:1.7; max-width:90%; margin:.6em 0; }
  .footer{ font-size:.9rem; letter-spacing:.08em; text-transform:uppercase; }
