@font-face {
    font-family: 'Fibberish';
    src: url('fibberish.woff') format('woff'),
         url('fibberish.ttf') format('truetype');
}

@font-face {
    font-family: 'Pixel';
    src: url('pixel_maz.woff') format('woff'),
         url('pixel_maz.ttf') format('truetype');
}

@font-face {
    font-family: 'MesseDuesseldorf';
    src: url('MesseDuesseldorf.woff') format('woff'),
         url('MesseDuesseldorf.ttf') format('truetype');
}

body, html {
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #60574c;
    color: #522827;
}

body {
    padding: 20px;
    display: flex;
    justify-content: center;
}

p, li {
    margin: 0;
    font-family: 'Pixel';
    font-size: 1.6em;
}

b {
    font-family: 'MesseDuesseldorf';
    font-size: 0.6em;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

li {
    font-size: 1.4em;
    color: #84D7EA;
    margin: 5px 0;
    padding: 2px 4px;
    background-color: #60574c;
    border: 2px solid #84D7EA;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

a {
    color: #60574c;
    text-decoration: none;
    font-family: 'MesseDuesseldorf';
    font-size: 0.6em;
}

a:hover {
    color: #522827;
    text-decoration: underline;
}

h1 {
    font-family: 'Fibberish';
    font-size: 2.6em;
    margin: 5px;
}

h2 {
    font-family: 'Fibberish';
    font-size: 1.8em;
    color: #54abbf;
    margin: 5px;
    text-shadow: 
        -1px -1px 0 #3d8693,
        1px -1px 0 #3d8693,
        -1px 1px 0 #3d8693,
        1px 1px 0 #3d8693;
}

table, td, th {
    background-color: #60574c;
    color: #652c38;
    border: 2px solid #522827;
    border-collapse: collapse;
    padding: 3px;
}

.container { 
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    height: fit-content;
    width: 75%;
    border: 2px solid #522827;
    border-radius: 15px;
    background-color: #84D7EA;
    box-sizing: border-box;
    margin: 0 auto;
    gap: 10px;
}

.rules-container {
    display: inline-block;
    vertical-align:top;
    flex-direction: column;
    background-color: #54abbf;
    border: 2px dashed #60574c;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
    flex: 1 1 300px;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.pet-container {
    display: inline-block;
    vertical-align:top;
    flex-direction: column;
    background-color: #54abbf;
    border: 2px dashed #60574c;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    gap: 10px;
    flex: 1 1 300px;
    height: auto;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    max-height: 100%;
    align-self: center;
}

.pet-header {
    display: flex;
    gap: 15px;
}

#showpose,#outlink {
    border: 2px solid #60574c;
    padding: 2px;
}

.pet-info {
    text-align: left;
    width:50%;
}

.award-list {
    margin-top: 10px;
    text-align: center;
}

#nav {
    float: left;
    text-align: left;
    width: 25%;
    height: 100%;
    margin: 0 auto;
    padding: 10px;
}

#nav h2 {
    margin: 2px 0;
}

#nav p {
    margin: 0px 0 0px 10px;
}

#nav a {
    display: block;
    margin-bottom: 10px;
    color: #60574c;
    text-decoration: none;
    font-family: 'Pixel';
    font-size: 1.0em;
}

#nav a:hover {
    color: #522827;
    text-decoration: underline;
}

#content {
    float: right;
    width: 65%;
    padding: 10px;
    text-align: center;
}

#footer {
    width: 100%;
    float: inline-end;
    padding: 20px;
    text-align: center;
    font-size: 0.8em;
}

textarea {
    background-color: #54abbf;
    border: 2px dashed #60574c;
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    gap: 15px;
    width: 250px;
    height: 125px;
}

.corner-gif {
    z-index: 1000;
    pointer-events: none;
    transform: translateZ(0);
    transform: scale(1.25);
    image-rendering: pixelated;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    #nav {
        float: none;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    #content {
        float: none;
        width: 100%;
        text-align: center;
    }

    #footer {
        width: 100%;
        padding: 10px 0;
        text-align: center;
        font-size: 0.8em;
    }

    .pet-container {
        width: 100%;
    }
}
