@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    
}

body{
    font-family: 'Poppins','Roboto',sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background-color: black;
}

.commentContainer{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 90vw;
    background-color: white;
    margin: 20px;
    border-radius: 5px;
}

form{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.inputComment{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 10px;
}

input{
    margin: 5px 10px;
    text-align: center;
    font-size: 20px;
    border: 2px solid black;
    border-radius: 3px;
}

button{
    font-size: 18px;
    text-align: center;
    margin: 5px 15px;
    width: 12vw;
}

#fname{
    width: 12vw;
}

#comment{
    width: 50vw;
}

.displayContainer{
    width: auto;
    background-color: white;
    border-radius: 3px;
}

.displayBox{
    display: flex;
}

.name{
    width: 11vw;
    text-align: center;
    font-weight: 666;
    background-color: black;
    color: white;
    margin: 3px 10px;
    border-radius: 5px;
}

.comment{
    width: 55vw;
    text-align: center;
    font-weight: 666;
    margin: 3px 10px;
    padding: 3px 5px;
    background-color: black;
    color: white;
    border-radius: 5px;
}

.date{
    margin: 3px 5px;
    width: 10vw;
    text-align: center;
    padding: 0px 5px;
    background-color: black;
    color: white;
    border-radius: 5px;
    font-weight: 666;
    align-items: center;
}

.submit-success {
            background-color: #4CAF50 !important; /* Green */
            color: white !important;
        }

        .submit-error {
            background-color: #f44336 !important; /* Red */
            color: white !important;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        .message {
            padding: 10px;
            margin-bottom: 15px;
            border-radius: 5px;
            font-weight: bold;
            text-align: center;
        }
        .message.success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .message.error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }


@media (max-width:600px) {

    .commentContainer{
        width: 92vw;
        
    }

    form{
        width: 90vw;
    }

    .inputComment{
        flex-direction: column;
    }

    #fname{
        width: 30vw;
    }

    #comment{
        width: 90vw;
    }

    button{
        width: 40vw;
    }

    .displayBox{
        width: 95vw;
        flex-direction: column;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px 5px ;
        background-color: black;
        border-radius: 5px;
    }

    .name , .date{
        width: 40vw;
    }

    .comment{
        width: 90vw;
        background-color:white;
        color:black;
    }

    
}