/* Body z.B.: Hintergrund */
body {
    background-color: beige;
    border-left: 0.5rem solid rgb(69, 9, 9);
    border-right: 0.5rem solid rgb(69, 9, 9);
    padding: 1rem;
    margin: 1rem auto;
    max-width: 60rem;
}


/* ============ Logo + Überschrift: ============ */

/* Flex-Box (für Logo) */
.flex {
    display: flex;
    margin-left: 1rem
}

.flex-überschrift {
    margin-right: 0.5rem;
    flex-grow: 2;
    flex-basis: 70%;
    text-align: center;
}

.flex-logo {
    margin-right: 0.5rem;
    flex-grow: 1;
    flex-basis: 30%;
}

/* Text unter dem Logo */
#logo-text {
    color: rgb(69, 9, 9);
    font-size: 1.5rem;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-align: left;
}


/* ============ Überschriften ============ */

h2 {
    color: rgb(69, 9, 9);
    font-size: 3.8rem;
    font-family: cursive;
    background-color: bisque;
    text-align: center;
    border: thin solid;
    margin: 1rem;
}


/* ============ Allgemein ============ */

.p,
p,
ul,
table,
th,
td,
label,
footer,
button,
a:visited,
a:link,
legend {
    font-size: 1.8rem;
    font-family: 'Times New Roman', Times, serif;
    color: black;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
}

/* Links */

a {
    text-decoration: none !important;
}

a.hover_focus:hover,
a.hover_focus:focus {
    color: rgb(69, 9, 9);
    box-shadow: inset 0 2rem bisque;
}


/* ============ Tabellen und Listen ============ */

/* Tabelle, Tabellenüberschrift, Tabellentext */
table,
th,
td {
    padding: 0.2em 0.5em;
    border: 0.2rem solid black;
    border-collapse: collapse;
}

th {
    text-align: center;
}

td {
    text-align: justify;
}

/* ungeordnete Liste */
ul {
    list-style-type: disc;
}


/* ============ Formulare ============ */


input,
textarea {
    /* Formulare: Eingabefeld */
    width: 15rem;
    font-size: 1.5rem;
    background-color: beige;
}

input[type="radio"] {
    width: 2rem;
}

label {
    vertical-align: top;
}

/* Für ereignisse.infos */
textarea {
    font-size: 1.8rem;
    font-family: 'Times New Roman', Times, serif;
    width: inherit;
}

.formular {
    margin: 1rem;
    display: block;
}

/* zum gruppieren vom Formular 
(siehe: https://wiki.selfhtml.org/wiki/Formulare/Benutzereingaben_zug%C3%A4nglich_gestalten#Gruppierung_mit_fieldset) */
fieldset {
    border: none;
    margin-left: 0;
    margin-right: 0;
    padding-right: 0;
    padding-left: 0;
    padding-bottom: 0;
    padding-top: 0;
}




/* ============ Grid ============ */

::before,
::after {
    box-sizing: border-box
}


main.tiere_grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    font: 1em/1.3 Cambria, serif;
    margin: 1rem;
}

main.tiere_grid>a>section {
    padding: 1rem;
    background: blanchedalmond;
    border: solid medium black;
    border-radius: 1rem;
}

main.tiere_grid>a>section:hover,
main.tiere_grid>a>section:focus {
    background-color: tan;
}


.tier-name-g {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    text-align: center;
}

.tier-infos-g {
    font-size: 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 300;
}

.right {
    float: right;
}


/* ============ Sonstiges ============ */

/* Überschrift von dedtail (Text zum ein und ausklappen) */
summary {
    color: black;
    font-size: 2.5rem;
    font-family: 'Times New Roman', Times, serif;
    border: 0.2rem double black;
    border-radius: 0.1rem;
    padding-left: 0.5rem;
}

summary::marker {
    /* Das Zeichen vor der Überschrift [>] */
    font-size: 2rem;
    font-weight: bold;
    position: static;
}

/* Bilder & Smileys */
#tier_bild {
    max-width: 10rem;
}

.div_in_die_mitte {
    display: flex;
    justify-content: center;
}

.smileys {
    font-size: 6rem;
    margin: 1rem;
}

#other_tierart {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    font-family: cursive, 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 3rem;
    text-align: center;
}


/* footer */

footer {
    margin: 1rem;
}

.back {
    text-decoration: none;
    background: bisque;
    border: thin solid black;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.1rem !important;
}

.create {
    float: right;
    margin-right: 2rem;
    text-decoration: none;
    background: bisque;
    border: thin solid black;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-top: 0.1rem !important;
}

.back:hover,
.back:focus,
.create:hover,
.create:focus {
    background-color: tan;
}

.bearbeiten {
    padding-left: 1rem;
    padding-right: 1rem;
}


.unterstreichen {
    text-decoration: underline;
}

.errors {
    color: red;
}

/* Geburtstag */
.gb {
    border-color: red !important;
    animation: textwelle 5s;

}

@keyframes textwelle {
    0% {
        transform: scale(0.5);
        opacity: 1;
        animation-timing-function: ease;
    }

    40% {
        transform: scale(1.30);
        opacity: 1;
    }

    70% {
        transform: scale(1);
        opacity: 1;
    }
}


@media (prefers-color-scheme: dark) {
    body {
        background-color: black;
    }

    input,
    h2 {
        background-color: rgb(69, 9, 9);
    }

    h2,
    #logo-text {
        color: bisque;
    }

    .p,
    p,
    ul,
    table,
    th,
    td,
    label,
    footer,
    button,
    a:visited,
    a:link,
    summary,
    legend {
        color: beige;
    }

    table,
    th,
    td {
        border: 0.2rem solid beige;
    }

    summary {
        border: 0.2rem double beige;

    }

    ul {
        list-style: beige;
    }

    button {
        color: black;
    }

    .gb {
        color: gold;
        background-color: black;
    }
}