@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

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

body{
    font-family:'Poppins',sans-serif;

    min-height:100vh;
    padding:40px;

    background-image:url("https://assets.codepen.io/16236440/VoicemailBG.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* MAIN WRAPPER */

.stage{
    max-width:1400px;
    margin:auto;
}

/* TITLE */
h1 {
  font-family: 'Lobster', cursive;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 20px;
  font-size:5rem;
}

.page-title{
    text-align:center;
    font-size:clamp(2.5rem,5vw,4.5rem);
    color:#111;
    margin-bottom:40px;
}

/* 2 COLUMN LAYOUT */

.content-wrapper{
    display:flex;
    gap:30px;
}

/* INSTRUCTIONS */

.instructions{
    flex:1;

    background:rgba(35,35,35,.9);
    color:white;

    padding:40px;
    border-radius:24px;

    min-height:450px;
}

.instructions h2{
  font-family: 'Lobster', cursive;
    margin-bottom:25px;
    font-size:2rem;
  color: #009E7D;
}

.instructions p{
    line-height:1.8;
    margin-bottom:20px;
    font-size:1.1rem;
}

/* RECORDER */

.container{
    flex:1;

    background:rgba(255,255,255,.75);

    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);

    border-radius:24px;

    min-height:450px;

    padding:40px;

    display:flex;
    flex-direction:column;
    align-items:center;
}

.container h2{
  font-family: 'Lobster', cursive;
    margin-bottom:50px;
    text-align:center;
    color:#111;
    font-size:2rem;
}

/* BUTTON */
.record-btn {
  background: #00b894; /* Green */
  color: white;
  transition: all 0.3s ease;
}

.record-btn.recording {
  background: #e53935; /* Red */
}

.record-btn.recording:hover {
  background: #c62828; /* Darker red */
}

.record-btn.recording i {
  color: white;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;

    width:280px;
    height:70px;

    border:none;
    border-radius:50px;

    background:#009E7D;
    color:white;

    font-size:1.2rem;
    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.button:hover{
    background:#b8c492;
}

.mic-icon{
    width:24px;
    height:24px;
    flex-shrink:0;
}

/* AUDIO */

audio{
    width:100%;
    margin-top:40px;
}

.hidden{
    display:none;
}

/* MOBILE */

@media(max-width:900px){

    body{
        padding:20px;
    }

    .content-wrapper{
        flex-direction:column;
    }

    .instructions,
    .container{
        width:100%;
        min-height:auto;
    }

    .page-title{
        font-size:2.5rem;
    }
}