@font-face {
    font-family: body;
    src: url(fonts/JosefinSans-Regular.ttf);
}

@font-face {
    font-family: body-bold;
    src: url(fonts/JosefinSans-Bold.ttf);
}

@font-face {
    font-family: titre;
    src: url(fonts/JosefinSans-Bold.ttf);
}

body, select {
    font-family: body, "Calibri", sans-serif;
    font-weight: 300;
    background-color: white;
    font-size: medium;
}

.layout {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
}

.content {
    padding: 15px;
    border: solid 5px black;
    background: rgb(146 194 233);
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 30%;
    margin-right: 30%;
}

@media only screen and (max-width: 1100px) {
    .content {
        margin-left: 20%;
        margin-right: 20%;
    }
}

@media only screen and (max-width: 750px) {
    .content {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.through {
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

/* .gifgif {
    background-image: url(rsvp.gif);
    width: 100%;
    aspect-ratio: 1.77;
    background-size: 100% 100%;
    box-shadow: 1px 1px 3px #00000047;
    border-radius: 5px;
} */

.gifgif {
    background-image: url(rsvp2.gif);
    width: 100%;
    aspect-ratio: 1.67;
    background-size: 100% 100%;
    box-shadow: 1px 1px 3px #00000047;
    border-radius: 5px;
}

.text {
    text-align: center;
    padding: 15px;
    padding-left: 10%;
    padding-right: 10%;
    font-size: larger;
    line-height: 1.4em;
    background: white;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px #00000047;
}


.titre {
    font-family: titre, "Calibri", sans-serif;
    color: black;
    padding-bottom: 15px;
    background: white;
    font-size: 2em;
    line-height: 1.2em;
}

.nom, .date, .lieu {
    font-family: body-bold, "Calibri", sans-serif;
    color: #e24c15;
}

form {
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    background: white;
    box-shadow: 1px 1px 3px #00000047;
}

.question {
    padding: 10px;
    padding-top: 0px;
    font-size: larger;
}

.block {
    padding: 5px;
    margin-bottom: 30px;
}

input, button {
    font-family: body, "Calibri", sans-serif;
    font-size: large;
}

input[type="text"], input[type="password"] {
    padding: 5px;
    border-radius: 5px;
    border: solid #9e9e9e 1px;
    margin: 5px;
}

input[name="nom"], input[name="prenom"] {
    width: 30%;
}

input[name="email"] {
    width: calc(60% + 27px);
}

input[type="number"] {
    text-align: right;
}

input[type="submit"], button {
    font-family: body, "Calibri", sans-serif;
    padding: 10px;
    padding-left: 50px;
    padding-right: 50px;
    margin: 10px;
    background: #282828;
    color: white;
    border: solid 1px black;
    border-radius: 5px;
}

input[type="submit"]:active, button:active {
    background: #282828;
    color: white;
}

.hide {
    display: none;
}

.rsvps {
    display: inline-flex;
    flex-direction: column;
    width: calc(100% - 30px);
    margin-left: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.header, .rsvp {
    display: inline-grid;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    justify-items: stretch;
    width: 100%;
    grid-template-columns: 7% 25% 15% 15% 8% 8% 11% 11%;
}

.header {
    background: #282828;
    color: white;
    font-size: 1.1em;
}

.rsvp:nth-child(odd) {
    background: rgb(146 194 233);
}

.cell {
    border: solid 1px black;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-break: anywhere;
}

.cell:empty {
    background: #9e9e9e;
}

.csv, .reset {
    margin: 10px;
    padding: 5px;
}

.csv {
    border-left: black solid 5px;
}

.reset {
    border-right: crimson solid 5px;
    text-align: right;
}

.stats {
    margin: 10px;
    padding: 5px;
    padding-left: 10px;
}

.separator {
    margin-top: 10px;
    margin-bottom: 30px;
    background-color: #282828;
    height: 2px;
    width: 40%;
    margin-left: 30%;
}

.separator.left {
    width: 50px;
    margin-left: 2px;
    margin-bottom: 10px;
}

.footprint {
    color: #e24c15;
    padding: 3px;
    font-style: italic;
}

.wrong {
    border-radius: 5px;
    background-color: #e24c15;
    color: white;
}

.wrong::placeholder {
    color: white;
    opacity: 1;
}

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
}

summary {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
}

details[open] {
    padding: 0.5em;
}

summary:hover {
    background-color: #00bcd4;
    color: white;
}

section input, section select {
    width: calc(100% - 20px);
    padding: 5px;
    border-radius: 5px;
    border: solid #9e9e9e 1px;
    margin: 5px;
    background: #ebebeb;
}

section input[type="number"] {
    text-align: left;
}