/*
    ======================= GLOBAL STYLE
*/

* {
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/*
    ======================= MESSAGE SECTION
*/

/* Container styles */
body#message .container {
    background: linear-gradient(135deg, #ffffff 0%, #ffe6e6 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 600px;
    height: 450px;
    max-width: 95%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

body#message h1 {
    margin-bottom: 20px;
    font-size: 32px;
    color: #333;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form and input styles */
body#message textarea {
    width: 95%;
    height: 267px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    resize: none;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: transparent;
}

body#message textarea::placeholder {
    color: #aaa;
}

body#message textarea::-webkit-scrollbar {
    display: none;
}

body#message button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

body#message button:hover {
    background: linear-gradient(135deg, #ff7eb3 0%, #ff758c 100%);
    transform: scale(1.05);
}

/*
    ======================= REPLY SECTION
*/

/* wrapper */
body#reply .wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #ffe6e6 100%);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 600px;
    height: 450px;
    max-width: 95%;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    overflow: hidden;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* Container styles */
body#reply .container {
    background: linear-gradient(135deg, #ffffff 0%, #ffe6e6 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

body#reply h1 {
    margin-bottom: 8px;
    font-size: 32px;
    color: #333;
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form and input styles */
body#reply .dataDisplay {
    width: 100%;
    height: 270px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: transparent;
    overflow: hidden;
    overflow-y: scroll;
    text-align: left;
}

body#reply .dataDisplay::-webkit-scrollbar {
    display: none;
}

/* form */
body#reply form {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 10px;
    width: 100%;
}

body#reply textarea {
    width: 93%;
    height: 50px;
    padding: 2.5px 15px;
    border: none;
    resize: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    background: transparent;
    border-right: 2px solid #ddd;
}

body#reply textarea::placeholder {
    color: #aaa;
}

body#reply textarea::-webkit-scrollbar {
    display: none;
}

body#reply form i {
    font-size: 25px;
    width: 7%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaaaaaaf;
    transition: 0.2s color ease-in-out;
}

body#reply form i:hover {
    color: #aaa;
}

/* animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 500px) {
    body#message h1,
    body#reply h1 {
        font-size: 29px;
    }

    body#message textarea {
        height: 277px;
    }

    body#message button {
        padding: 10px 20px;
        font-size: 15px;
    }

    body#reply .dataDisplay {
        height: 276px;
    }

    body#reply textarea {
        width: 90%;
    }

    body#reply form i {
        width: 10%;
        font-size: 25px;
    }
}

@media screen and (max-width: 450px) {
    body#message h1,
    body#reply h1 {
        font-size: 25px;
    }

    body#message textarea {
        height: 287px;
    }

    body#message button {
        padding: 8px 15px;
        font-size: 14px;
    }

    body#reply .dataDisplay {
        height: 281px;
    }

    body#reply form i {
        font-size: 22.5px;
    }
}

@media screen and (max-width: 400px) {
    body#message h1,
    body#reply h1 {
        font-size: 20px;
    }

    body#message textarea {
        height: 297px;
    }

    body#message button {
        padding: 7px 12px;
        font-size: 12px;
    }

    body#reply .dataDisplay {
        height: 287px;
    }

    body#reply form i {
        font-size: 20px;
    }
}

@media screen and (max-width: 350px) {
    body#message h1,
    body#reply h1 {
        font-size: 17px;
    }

    body#message textarea {
        height: 306px;
    }

    body#message button {
        padding: 6px 10px;
        font-size: 11px;
    }

    body#reply .dataDisplay {
        height: 292px;
    }

    body#reply form i {
        font-size: 17px;
    }
}

@media screen and (max-width: 300px) {
    body#message h1,
    body#reply h1 {
        font-size: 14px;
    }

    body#message textarea {
        height: 312px;
    }

    body#message button {
        padding: 5px 8px;
        font-size: 10px;
    }

    body#reply .dataDisplay {
        height: 295px;
    }

    body#reply form i {
        font-size: 17px;
    }
}
