@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');

* {
    font-family: 'M plus 1';
    box-sizing: border-box;
    outline: none;
    user-select: none;
}

body {
    background: #f5f5f5;
    padding: 0;
    margin: 0;
}
main {
    padding: 0px;
    max-width: 700px;
    margin: 0 auto;
    display: block;
}
.top {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 2px solid gray;
    border-radius: 10px;
    img {
        width: 250px;
    }
    p {
        font-size: 18px;
        font-weight: 700;
    }
    * {
        margin: 0px;
        padding: 0;
    }
}
.info {
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
}
.term {
    display: flex;
    font-size: 20px;
    font-weight: 900;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 10px;
    * {
        color: brown;
        width: fit-content;
    }
}
.terms {
    margin-top: 50px;
    display: block;
    * {
        text-align: center;
        display: block;
    }
    p {
        font-size: 18px;
        font-weight: 900;
    }
    a {
        background: #333;
        color: #fff;
        padding: 20px;
        text-decoration: none;
        width: 300px;
        margin: 0 auto;
    }
    margin-bottom: 10px;
}
.names {
    background: #fff;
    position: absolute;
    border-bottom: 2px solid gray;
    top: 0;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 13px;
    input {
        border: none;
        border-bottom: 1px solid #333;
        font-size: 16px;
        font-weight: 700;
        width: fit-content;
        max-width: 230px;
    }
}

.ipt {
    background: #333;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    max-width: 700px;
    .file {
        width: fit-content;
        display: flex;
        cursor: pointer;
        border: 5px springgreen solid;
        input {display: none;}
    }
    display: flex;
    gap: 10px;
    button, .fileb {
        background: #fff;
        color: #000 !important;
        border: none;
        height: 40px;
        width: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: 900;
        padding: 0;
    }
    input[type=text] {
        width: 100%;
        border: none;
        height: 40px;
    }
}

.board {
    position: absolute;
    top: 80px;
    bottom: 90px;
    width: 100%;
    max-width: 700px;
    overflow-Y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    * {
        margin: 0;
        padding: 0;
    }
    .users {
        background: #fff;
        border: gray 1px solid;
        padding: 10px;
        margin: 0;
        * {font-size: 14px;}
        .info {
            display: flex;
            align-items: end;
            gap: 10px;
            p {
                &:nth-child(1) {
                    color: green;
                }
                &:nth-child(2) {
                    font-weight: 900;
                }
                &:nth-child(4) {
                    color: gray;
                    font-weight: 500;
                    font-size: 12px;
                }
            }
        }
        .comment {
            margin-top: 10px;
            a {
                font-weight: 700;
            }
            span {
                display: block;
                border: 2px solid green;
                width: fit-content;
                border-radius: 10px;
                padding: 5px;
                margin-top: 5px;
            }
        }
    }
}


.popup-comment {
    position: absolute;
    background: #fff;
    border: 1px solid gray;
    padding: 10px;
    z-index: 1000;
    max-width: 300px;
    font-size: 14px;
}
.reply-link {
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.modal-content {
    background: #fff;
    padding: 20px;
    max-width: 80%;
    text-align: center;
}
.popup-comment {
    position: absolute;
    background: #fff;
    border: 1px solid gray;
    padding: 10px;
    z-index: 1000;
    max-width: 300px;
}

button {
    background: #333;
    color: #fff;
    border: none;
    padding: 20px;
}