/*screen + general*/
body {
    font-family: 'Arvo', serif;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.screen.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

/*landing screen backgroud*/
#landing-screen{
    background-image: url('images/phone_ringing.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    text-align: center;
}

/*landing description*/
#landing-description {
    font-family: 'Arvo', serif;
    font-size: 1rem;
    color: #1a1311;
    max-width: 600px;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto 0.5rem auto;
}

/*landing-instruction*/
#landing-instructions {
    font-family: 'Arvo', serif;
    font-size: 0.9rem;
    color: #1a1311;
    max-width: 800px;
    line-height: 1.7;
    text-align: center;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.8;
}
/* landing text and button */
#landing-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    margin-bottom: 1rem;
}

#landing-screen h1 {
    color: #1a1311;
    font-family: "Changa One", sans-serif;
    font-style: italic;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 3px rgba(245, 237, 228, 0.3);

    text-align: center;
    width: 100%;
}

#pick-up {
    background: #7D4040;
    color: #F5EDE4;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-family: 'Arvo', serif;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.2);
    transition: background 0.2s ease;

    display: block;
    position: relative;
    z-index: 20;
    margin-top: auto;
    margin-bottom: 22rem;
}

#pick-up:hover {
    background: #5C2E2E;
}

/*sounc credit*/
#sound-credit {
    font-family: 'Arvo', serif;
    font-size: 0.7rem;
    color: #1a1311;
    text-align: center;
    position: absolute;
    bottom: 1rem;
    background: rgba(245, 237, 228, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

#sound-credit a {
    color: #1a1311;
}


/*exchange scene screen*/
#screen-call {
    background-image: url('images/exchnage_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*clock*/

#timer {
    position: absolute;
    top: 2rem;
    right: 2rem;
}
#clock-hand-group {
    transform-box: fill-box;
    transform-origin: 50px 50px;
}


/*dialogue*/
#dialogue-text {
    font-family: "Yarndings 20", system-ui;
    font-size: 1.5rem;
    line-height: 1.5;
}

/*speech bubble*/
#speech-bubble {
    position: absolute;
    left: 10%;
    top: 10%;
    max-width: 800px;
    max-height: 500px;
    background: #f0e8d8;
    border-radius: 18px;
    padding: 0.8rem 1rem;
    color: #1a1410;
    font-family: 'Yarndings 20', system-ui;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* tail pointing right toward the phone */
#speech-bubble::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 16px solid #f0e8d8;
}

/* response buttons */
#response-option {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #3D2B1F;
    z-index: 10;
    padding: 0 0 3rem 0;
}
#response-option.active {
    display: grid;
}

.response-btn {
    font-family: 'Yarndings 20', system-ui;
    font-size: 1.5rem;
    background: #1a1410;
    color: #e8ddd0;
    border: none;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 80px;
}

.response-btn:hover {
    background: #2a1f0f;
}

/*clock*/

#clock{
    width: 80px;
    height: 80px;
}

#clock svg {
    width: 100%;
    height: 100%;
}

/*ending dial*/
#screen-end {
    background-image: url('images/end_phone.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-direction: column;
    gap: 1rem;

}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

#screen-end.active {
    animation: fadeOut 4s ease forwards;
}


/*pre-prompts*/
#screen-preprompts {
    background-color: #FBF5F0;
    flex-direction: column;
    text-align: center;
}

#screen-preprompts .pre-prompt {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
    color: #1a1311;
    font-size: 1.2rem;
    max-width: 560px;
    text-align: center;
}

#screen-preprompts .pre-prompt.visible {
    opacity: 1;
}

/*reflection*/
#screen-reflection {
    background-color: #FBF5F0;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  
}

#reflection-prompt {
    font-family: "Changa One", sans-serif;
    font-style: italic;
    font-size: 2rem;
    color: #1a1311;
    max-width: 700px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

#reflection-input {
    width: 560px;
    min-height: 140px;
    background: #EDE3D8;
    border: none;
    border-radius: 8px;
    padding: 1.2rem;
    font-family: 'Arvo', serif;
    font-size: 1rem;
    color: #1a1311;
    line-height: 1.6;
    resize: none;
}

#reflection-input:focus {
    outline: 2px solid #7D4040;
}

#reflection-input::placeholder {
    color: #9a8070;
}

#btn-submit {
    background: #7D4040;
    color: #F5EDE4;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-family: 'Arvo', serif;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: background 0.2s ease;
}

#btn-submit:hover {
    background: #5C2E2E;
}

/*collective page*/

#collective-display {
    background-color: #FBF5F0;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 4rem 2rem;
    overflow-y: auto;
    justify-content: flex-start;
}

#collective-display h2 {
    font-family: "Changa One", sans-serif;
    font-style: italic;
    font-size: 2rem;
    color: #1a1311;
    letter-spacing: 0.5px;
}

#response-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
}

.response-card {
    background: #F5EDE4;
    border-left: 4px solid #7D4040;
    border-radius: 4px;
    padding: 1.2rem 1.4rem;
    font-family: 'Arvo', serif;
    font-size: 0.95rem;
    color: #1a1311;
    line-height: 1.6;
}

#answer-again, #retake-call {
    background: #7D4040;
    color: #F5EDE4;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-family: 'Arvo', serif;
    font-size: 1rem;
    cursor: pointer;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 12px rgba(44, 24, 16, 0.2);
    transition: background 0.2s ease;
}

#answer-again:hover, #retake-call:hover {
    background: #5C2E2E;
}