@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --INLINE-PADDING: min(10%, 120px);
    --DIALOG-WIDTH: 350px;
    --LIGHT-GREEN: rgb(114, 255, 114);
}

html {
    position: relative;
    min-height: 100vh;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #333;
    margin-bottom: 100px;
}

input, button {
    font: inherit;
}

/* HEADER */

header {
    background-color: black;
    color: white;
    height: 100px;
    padding-inline: var(--INLINE-PADDING);
    box-shadow: 0 2px 4px 1px rgb(255, 255, 255, 0.2);

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2.5rem;
}

header button {
    font-size: 1.2rem;
    color: black;
    font-weight: 600;
    padding: 10px 20px;
    background-color: whitesmoke;
    border: none;
    border-radius: 10px;
}

/* MAIN */

main {
    padding: 50px var(--INLINE-PADDING);

    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: min-content;
}

.card {
    padding: 20px;
    background-color: whitesmoke;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;

    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.card p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card button {
    padding: 10px 0;
    border: none;
    border-radius: 10px;
}

.card button.isRead-btn {
    background-color: rgb(255, 132, 132);
}

.card button.isRead-btn.read {
    background-color: rgb(114, 255, 114);
}

.card button.remove-btn {
    background-color: #919191;
}

/* FOOTER */

footer {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
}

/* DIALOG */

dialog {
    position: fixed;
    top: 150px;
    left: calc(50% - (var(--DIALOG-WIDTH) / 2));
    border: none;
    border-radius: 20px;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    padding: 30px;
    width: var(--DIALOG-WIDTH);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dialog-content p {
    font-size: 1.4rem;
    font-weight: 700;
}

.dialog-content input:not([type="checkbox"]) {
    padding-left: 10px;
    height: 40px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 10px;
}

.dialog-content .read-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.read-container label {
    font-size: 1.07rem;
    font-weight: 500;
}

.read-container input[type="checkbox"] {
    height: 16px;
    width: 16px;
}

.dialog-content button {
    padding: 15px 0;
    background-color: var(--LIGHT-GREEN);
    color: #202020;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}