@import url('https://fonts.googleapis.com/css2?family=Andika&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 50px auto;
    background-color: salmon;
    text-align: center;
}

.container-form {
    margin: auto;
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    margin: auto;
    padding: 0 20px;
    width: 90%;
    background-color: slategray;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    width: 100%;
    padding: 50px 20px;
}

input,
textarea {
    margin-bottom: 10px;
    padding: 10px;
    width: 90%;
    font-family: 'Andika', sans-serif;
    font-size: medium;
}

input {
    text-align: center;
    border-radius: 15px 15px 0 0;
}

input.access {
    text-align: center;
    border-radius: 15px;
}

textarea {
    min-height: 500px;
    color: slategrey;
    border-radius: 0 0 15px 15px;
}

button {
    padding: 10px;
    width: 30%;
    border-radius: 5px;
    font-family: 'Andika', sans-serif;
    font-size: 1em;
    font-weight: bold;
}

button:hover {
    background-color: black;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}

button.delete {
    padding: 3px;
    width: 95%;
    background-color: salmon;
    font-size: x-small;
}

/* List page */
.container.listpage {
    margin: auto;
    padding: 20px;
    width: 50%;
    background-color: slategray;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

table {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background-color: whitesmoke;
}

th,
td {
    border: 2px solid black;
    border-radius: 3px;
    padding: 5px;
}

thead th {
    background-color: black;
    color: grey;
}

thead th a {
    text-decoration: none;
    color: grey;
}

tbody tr:nth-child(even) {
    background-color: #999;
}

tbody tr td a {
    text-decoration: none;
    color: black;
}

/* Responsive Breakpoint */
@media screen and (max-width: 600px) {
    .container {
        width: 80%;
    }

    form {
        padding: 30px 10;
    }

    textarea {
        min-height: 300px;
    }

    button {
        padding: 5px;
        font-size: 0.8em;
    }

    .container.listpage {
        width: 80%;
    }
}