:root {
    --lightText: #ffffff;
    --darkText: #00003e;
    --background: #ffffff;
    --secondary: #ffffff;
    --accent: #143a40;
    --hover: #2c273d;
    --darkBackground: #232935;
}

html {
    scroll-behavior: smooth;
}

button {
    background-color: var(--accent);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--lightText);
    margin: 1rem 2rem 1rem;
    border-radius: 4px;
    transition: 0.3s ease-in-out;
    font-size: 1.2rem;
    width: 90%;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
}

Button:hover {
    background-color: var(--hover);
    cursor: pointer;
}

* {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--lightText);
    margin: auto 0;
}

.container {
    margin: auto;
    width: 90%;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch
}

.column {
    flex: 1 1 20rem;
}

.hidden {
    display: none;
}

table {
    border-spacing: 1;
    border-collapse: collapse;
    background: #eff8f4;
    margin: 0 auto;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
    table-layout: fixed;
}

table thead tr {
    height: 60px;
    background: #143a40;
}

th {
    font-size: 18px;
    color: #fff;
    line-height: 1.2;
    font-weight: unset;
}

tbody tr {
    font-size: 15px;
    color: gray;
    line-height: 1.2;
    font-weight: unset;
    height: 50px;
}

thead,
tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

tbody tr:nth-child(even) {
    background-color: #F7FFF7;
}

tbody tr:hover {
    color: #555;
    background-color: #ceffe7;
    cursor: pointer;
}



body {
    min-height: 100vh;
    background: #18b48b;
    background: linear-gradient(45deg, #18b48b, #0b77b9);
}

.container-table {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: auto;
    min-height: 100vh;
}

.wrap-table {
    max-height: 95vh;
    max-width: 80vw;
    position: relative;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: scroll;
}

.header-table,
.body-table {
    table-layout: fixed;
}

.body-container {
    max-height: 80vh;
    flex-grow: 1;
}

.limiter {
    width: 100%;
    margin: 0 auto;
}

thead,
tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    /* This makes sure each row takes up the same space */
}

/* Optional: This is to ensure a scrollbar appears even when not required, which helps to prevent any slight shifts in width when scrolling */
tbody::-webkit-scrollbar {
    width: 0.5em;
    border-radius: 10px;
}

tbody::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

tbody::-webkit-scrollbar-thumb {
    background-color: darkgrey;
    outline: 1px solid slategrey;
}





.popup {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 33px 30px;
    overflow: scroll;
}

form {
    width: 100%;
    max-width: 600px;
    margin: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
    padding-bottom: 1rem;
}

.form-header {
    background-color: var(--accent);
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.form-group {
    padding: 0.5rem 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

input,
select,
textarea,
label {
    padding: 0.5rem;
    width: 100%;
}

input,
select,
textarea {
    border-radius: 4px;
    border: 1px solid grey;
}

#closePopup:hover,
#closeAddPopup:hover {
    cursor: pointer;
}

.pages {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pageInputs {
    margin: 0.25rem 0;
    display: flex;
    width: 100%;
}

.pageInputs input {
    flex-grow: 1;
}

.delete {
    margin-left: 1rem;
    background-color: red;
    color: white;
    border-radius: 4px;
    padding: 0.25rem;
    display: flex;
    vertical-align: middle;
    line-height: 1;
}

.addPage {
    background-color: green;
    color: white;
    border-radius: 4px;
    padding: 0.25rem;
    display: flex;
    vertical-align: middle;
    line-height: 1;
    text-align: center;
    margin-top: 0.5rem;
}

.addPage svg {
    margin: auto;
}

.delete:hover,
.addPage:hover {
    cursor: pointer;
}

@media only screen and (max-width: 1000px) {
    .wrapper {
        flex-direction: column;
    }

    .buttonsSection {
        width: 100% !important;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        margin: 2rem auto;
    }

    .wrap-table {
        max-width: 90vw;
    }

    .form-group {
        flex-direction: column;
        padding: 0 1rem;
        gap: 0;
    }

    .popup {
        padding: 0.5rem;
        position: absolute;
    }
}