@import url("https://cdn.jsdelivr.net/gh/jgthms/minireset.css@master/minireset.min.css");

body {
    background-color: #0e1621;
    color: white;
    font-family: sans-serif;
}

header > h1 {
    text-align: center;
    margin: .5em 1em 1.5em;
    font-size: 2em;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

div.members {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: clamp(200px, 100%, 900px);
    margin-bottom: 1em;
    gap: 10px;
}
div.members.group {
    justify-content: center;
}

div.members > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.25em;
    font-weight: bold;
}
div.members > div.hide {
    display: none;
}

div.members > div > img {
    max-width: 100px;
    border-radius: 20px;
    margin-bottom: .5em;
}

div.messages {
    display: flex;
    flex-direction: column;
    max-width: 900px;
}

div.messages > p {
    padding: .75em .5em;
    border-radius: 10px;
    margin-top: .25em;
    max-width: 75%;
}

p.bold {
    font-weight: bold;
}

p.leon {
    align-self: flex-end;
    background-color: #2b5177;
}

p.other {
    align-self: flex-start;
    background-color: #182533;
}

p.other + p.leon, p.leon + p.other {
    margin-top: 1em;
}

button.next {
    cursor: pointer;
    background-color: wheat;
    border: solid 1px darkgray;
    padding: .5em 1em;
    font-size: 1.5em;
    font-weight: bold;
    margin: 2em 0;
}

div.msg-group, div.bday {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 500px;
}
div.bday {
    max-width: 800px;
    margin: 2em 0;
}
div.msg-group.show, div.bday.show {
    display: flex;
}

div.msg-group img, div.bday img {
    border: solid 1px white;
}
div.msg-group > p {
    font-style: italic;
}

div.bday > h1 {
    font-size: 2em;
    text-align: center;
}

a {
    color: inherit;
}
