@import url('https://fonts.googleapis.com/css2?family=Rubik+Bubbles&display=swap');

body {
    color: #A0522D;
    background-color: beige;
    font-family: Arial, Helvetica, sans-serif;
}

#container {
    margin: 0px;
    border: 2px solid #A0522D;
    padding: 20px;
    max-width: min(1024px, calc(100vw - 40px));
    margin: 20px auto;
}   

.float-left {
    float: left;
    margin: 20px 20px 0 20px;
}

.float-right {
    float: right;
    margin: 20px 20px 0 20px;
}

.clear {
    clear: both;
}

.clear-fix::after {
    content: "";
    display: table;
    clear: both;
}

h1, h2, h3, h4 {
    color: #8B4513;
    font-family: "Rubik Bubbles", Arial, sans-serif;
    font-weight: normal;
}

h1 {font-size: 2.5em;}
h2 {font-size: 2em;}
h3 {font-size: 1.5em;}
h4 {font-size: 1.25em;}

p {
    background-color: #F5DEB3;
    padding: 20px;
}

main h4+p, main h4+img+p {
    margin: 0 0 20px 0;
}

main h4 {
    margin: 1.5rem 0 0.5rem 0;
}

header h1 {
    text-align: center;
}

header img {
    width: 100%;
    height: auto;
}

footer {
    clear: both;
}

footer p {
    text-align: center;
    margin: 0;

}

footer p:nth-of-type(3) {
    text-align: left;
}

main img {
    text-align: center;
    display: block;
    width: 320px;
    margin: 20px auto 20px auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

nav {
    background-color: rgb(210, 214, 150);
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 10px;
}

nav ul li {
    padding: 45px 10px 10px 10px;
}

nav a {
    position: relative;
    padding: 0 20px;
    text-decoration: none;
    color: black;
} 

nav a.active {
    font-weight: bold;
}

nav a.active::before {
    content: "🐨";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -130%);
    font-size: 2rem;
    animation: rotateBigStar 1.5s linear infinite;
    opacity: 0.8;
}

@keyframes rotateBigStar {
    0%  { transform: translate(-50%, -130%) rotate(0deg); }
    25% { transform: translate(-50%, -130%) rotate(15deg); }
    50% { transform: translate(-50%, -130%) rotate(0deg); }
    75% { transform: translate(-50%, -130%) rotate(-15deg); }
    100% { transform: translate(-50%, -130%) rotate(0deg); }
}

a {
    color: green;
}

a:visited {
    color: black;
}

ul {
    list-style-type: none;
    padding-bottom: 20px;
}

ul.koala li::marker {
    content: "🐨 ";
}

ol {
    list-style-position: inside;
    padding-bottom: 20px;
}

ol li::marker {
    font-weight: bold;
}

.danger {
    font-weight: bold;
    font-style: italic;
}

.danger::before {
    content: "⚠️";
    font-weight: normal;
    font-style: normal;
}

.danger::after {
    content: "⚠️";
    font-weight: normal;
    font-style: normal;
}
