* {
    padding: 0;
    margin: 0;
    font-family: Segoe UI, Tahoma, Geneva, sans-serif;
    box-sizing: border-box;
}

/* terug knop */
nav {
    margin: 50px;
    position: relative;
}

a {
    display: inline-flex;
    align-items: center;
    height: 6vh;
    width: 30vw;
    justify-content: center;
    font-size: 40px;
}

nav a {
    color: white;
    background-color: dodgerblue;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
}

/* eind terug knop */

h1 {
    text-align: center;
    font-size: 75px;
    padding: 80px 80px 20px 80px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

input {
    height: 4vh;
    width: 500px;
    font-size: 30px;
    text-align: center;
    border: solid 2px black;
    border-radius: 50px;
    margin-bottom: 80px;
}

/* tabel */
table {
    font-size: 35px;
    margin: 0;
    width: 100vw;
}

th,
td {
    padding: 10px 30px 10px 30px;
    text-align: center;
}

th {
    background-color: darkgray;
}

table tr:nth-child(even) {
    background-color: lightgrey;
}

td,
th {
    width: 33.3vw;
}

.tableScroll {
    max-height: 55vh;
    overflow: scroll;
}

/* eind tabel */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    position: absolute;
    max-width: 90%;
    width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 5px;
}

.modal-content {
    margin-top: 30px;
}

.modal-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.transaction-info {
    margin-top: 30px;
}

.transaction-info p {
    font-size: 28px;
    margin: 20px 0;
    text-align: center;
}

.money-details {
    margin-top: 40px;
}

.money-details h3 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

.money-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.money-details li {
    font-size: 28px;
    margin: 15px 0;
    text-align: center;
}

/* Make table rows clickable */
#productTableBody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

#productTableBody tr:hover {
    background-color: #f5f5f5;
}

.clear-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 6vh;
    width: 50vw;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 40px;
    transition: background-color 0.2s;
    position: absolute;
    top: 90vh;
    left: 50%;
    transform: translateX(-50%);
}

.clear-btn:hover {
    background-color: #cc0000;
}

.clear-btn svg {
    width: 24px;
    height: 24px;
}

.screen-reader-button-container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 256px;
    height: 256px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.screen-reader-button {
    color: white;
    background-color: dodgerblue;
    height: 6vh;
    display: inline-flex;
    align-items: center;
}