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

html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 0;
    /*background: url(./images/stars.jpg);
    background-size: contain;*/
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

main,
section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

main {
    flex: 1;
    width: 100%;
    padding: 20px;
}

.container {
    display: flex;
    max-width: 600px;
    margin: auto;
    background: #fd24242f;
    padding: 20px;
    border-radius: 2px;
    justify-content: center;
}

.column {
   /* flex: 1;*/
    padding: 10px;
}

button {
    background-color: #28a745;
    color: white;
    padding: 50px 100px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}


p {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

.birthday_mates_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(700px, 100%);
    margin-top: 16px;
}

.mate_card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    text-align: left;
}

.mate_image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #666;
}

.mate_image_placeholder {
    background: #e7e7e7;
}

.mate_info {
    display: grid;
    gap: 4px;
}

.mate_name {
    margin: 0;
    font-size: 1rem;
}

.mate_meta,
.mate_birth {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

@media (min-width: 768px) {
    .birthday_mates_list {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }

    .mate_card {
        min-width: 200px;
    }
}
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-open {
    display: flex;
}

.modal_backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal_panel {
    position: relative;
    z-index: 1;
    width: min(500px, 90%);
    background: #fff;
    padding: 24px;
    border-radius: 12px;
}

.modal_close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    padding: 15px;
    width: auto;
    height: auto;
    cursor: pointer;
    /*background: transparent;*/
    background-color: pink;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/*
button {
    
    padding: 50px 100px;
    cursor: pointer;
}
*/

.modal_form {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.modal_form input,
.modal_form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.modal_form button {
    padding: 12px 20px;
}

.modal{
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4);
}
