* {
    margin: 0;
    padding: 0;
}

body {
    width: 97.9%;
    background-image: url(assets/background.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
}

.header {
    display: flex;
    width: 99%;
    background-color: black;
    align-items: center;
    padding: 20px;
}

h1 {
    color: #6F00FF;
    font-size: 50px;
    font-weight: bold;
    padding-left: 5%;
}

h2 {
    color: white;
    font-size: 30px;
    margin-left: auto;
    margin-right: 20px;
}

.uitloggen {
    margin-left: 20px;
    background-color: #6F00FF;
    border-radius: 15px;
    padding: 5px 20px;
    text-align: center;
    font-size: 20px;
}

.uitloggen a {
    color: white;
    text-decoration: none;
}

.uitloggen a:hover {
    text-decoration: underline;
}

/* Formulier om een bericht toe te voegen */
.text{
    border: 3px solid white;
    padding: 40px;
    width: 600px;
    margin: 40px auto;
    border-radius: 10px;
    background-color: rgba(111, 0, 255, 0.7);
}

label {
    color: white;
    font-size: 20px;
    font-weight: bold;
}

textarea {
    width: 100%;
    height: 120px;
    margin-top: 10px;
    border-radius: 15px;
    padding: 10px;
    background-color: rgb(0, 0, 0);
    color: white;
    font-size: 18px;
    border: none;
    resize: vertical;
}

/* Berichten tonen */
h3 {
    text-align: center;
    color: white;
    margin-top: 50px;
    font-size: 30px;
}

.bericht {
    background-color: rgba(0, 0, 0, 0.7); /* mooie semi-transparante achtergrond */
    border: 2px solid white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 700px;
    color: white;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.bericht strong {
    color: #6F00FF;
    font-size: 22px;
}

.bericht p {
    margin-top: 10px;
    font-size: 18px;
}

form[action="update.php"],
form[action="delete.php"] {
    display: inline-block;
}

/* Input tekstveld bij bewerken */
textarea[name="bericht"] {
    margin-top: 10px;
    color: white;
    font-weight: bold;
}

input[type="file"] {
    display: none; /* Verberg de standaard bestandskiezer */
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #6F00FF;
    color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: bold;
}

#file-name {
    margin-left: 10px;
    font-size: 14px;
    color: white; /* Zorg ervoor dat de tekst wit is */
}

.verwijder-form {
    display: inline-block;
    margin-top: 10px;
}

.verwijder-form button {
    background-color: transparent;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    background-color: #6F00FF;
}

.submit{
display: inline-block;
margin-top: 10px;
padding: 10px 20px;
border-radius: 20px;
background-color: black;
color: white;
}

/* Timer container boven formulier */
#timer-container {
    text-align: center;
    margin: 20px;
}

#timer-text {
    color: white;
    font-size: 18px;
}

/* Login-block styling (voor niet-ingelogde gebruikers) */
.login-block {
    text-align: center;
}

.login-block p {
    color: white;
    font-size: 20px;
}

.login-block .custom-file-upload {
    text-decoration: none;
}

/* Preview afbeelding bij upload */
#imagePreview {
    max-width: 200px;
    display: none;
}