/* Body */
body {
    font-family: "Roboto", Arial, Verdana, Helvetica, sans-serif;
    box-sizing: border-box;
}

.page-title,
.title,
.sub-title,
.text {
    margin: 0;
}

* {
    box-sizing: border-box;
}

/* Form styling */
input:invalid {
    border-color: #DC4C64;
}

input:valid {
    border-color: #14A44D;
}

input:placeholder-shown {
    border-color: #E5E7EB;
}

::placeholder {
    color: #BDBDBD;
    font-weight: lighter;
}

/* Typography */
.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    text-transform: capitalize;
    margin-bottom: 2rem;
}

.title {
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
    color: #333;
    text-transform: capitalize;
}

.sub-title {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1.1rem;
    text-transform: capitalize;
}

.text {
    font-size: 1.25rem;
    color: #777;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.status {
    font-weight: bolder;
    text-transform: capitalize;
}

.status.read {
    color: #14A44D;
}

.status.not-read {
    color: #DC4C64;
}

.form-label {
    font-size: 1.5rem;
    font-weight: lighter;
    color: gray;
}

.form-label.checkbox-label {
    font-weight: bolder;
    color: #000;
}

.alert-title {
    font-size: 1.7rem;
    margin: 0;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #54B4D3;
}

.alert-text {
    font-size: 1.2rem;
    margin: 0;
    text-align: center;
    color: #54B4D3;
    font-weight: bold;
}

/* Spacing */
.me-1 {
    margin-right: 0.25rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 0.75rem;
}

.me-4 {
    margin-right: 1rem;
}

.me-5 {
    margin-right: 1.5rem;
}

/* Layout */
.container {
    width: min(1320px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.group-btn {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(2, 40%);
    justify-content: space-between;
    margin-top: auto;
}

.form-row {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    min-width: 250px;
    flex-flow: column wrap;
    flex: 40%;
    /* margin: 0 2rem 1rem 0; */

}

.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.alert-box {
    max-width: 450px;
    display: flex;
    flex-flow: column wrap;
    justify-self: center;
    gap: 1rem;
    background-color: #E3F2FD;
    padding: 2rem;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert-content {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    flex-grow: 1;
}

.alert-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}


/* Sections */
.header, .main {
    max-width: 100vw;
}

.header {
    height: 30vh;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cpolygon fill="%2387CEEB" points="0,0 100,0 50,100" /%3E%3C/svg%3E');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.main {
    min-height: 70vh;
    background-color: #FBFBFB;
    padding: 3rem;
}

.card-group {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Components */
.card {
    max-width: 450px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    display: grid;
}

.alert-icon {
    font-size: 4rem;
    color: #54B4D3;
}

.btn {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    text-transform: uppercase;
}

.btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-status, .btn-remove {
    border: 1px solid lightgray;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
}

.btn-status {
    background-color: #fff;
    color: #14A44D;
    border-color: #14A44D;
    transition: all .5s ease-in-out;
}

.btn-status:hover, .btn-status:active {
    background-color: #14A44D;
    color: #fff;
}

.btn-status.read {
    background-color: #14A44D;
    color: #fff;
}

.btn-remove {
    background-color: #fff;
    color: #DC4C64;
    border-color: #DC4C64;
    transition: all .5s ease-in-out;
}

.btn-remove:hover, .btn-remove:active {
    background-color: #DC4C64;
    color: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    background-color: #3498db;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #2980b9;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-submit {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    text-transform: capitalize;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 2px solid #E5E7EB;
}

.form-control:focus {
    border-bottom: 2px solid #333;
    outline: none;
}

.checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #3498db;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkbox:checked {
    background-color: #3498db;
    border: 2px solid #3498db;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 25vh;
}

.modal-content {
    width: 50vw;
    background-color: #fff;
    padding: 1.5rem 3rem;
    margin: auto;
}

.modal-header {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header .title {
    text-align: center;
    margin: 0;
    font-size: 2rem;
}

.btn-close {
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
}

.btn-close:hover, .btn-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Animation */
.btn span {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 1s;
    opacity: 0;
}

/* Add animation */
@keyframes ripple {
    from {
        opacity: 1;
        transform: scale(0);
    }

    to {
        opacity: 0;
        transform: scale(10);
    }
}

/* HD devices */
@media only screen and (max-width: 1590px) {
    .alert-box {
        gap: 0.75rem;
        padding: 1.5rem 1.25rem;
    }
}
/* Extra Large devices */
@media only screen and (max-width: 1356px) 
{
    .modal-content {
        width: 75vw;
    }
}
/* Medium Devices */
@media only screen and (max-width: 767px)
{
    .modal-content {
        width: 100vw;
    }
}