* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(images/background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
}

#otter-image {
    position: absolute;
    bottom: 0;
    right: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    background-color: #7a553abf;
    z-index: 1000;
}

.topbar p {
    padding: 10px;
    font-family: "Yusei Magic", sans-serif;
    margin: 7px;
    background-color: #482d21;
    color: #cfb59e;
    border-radius: 15px;
} 

.welcome-screen {
    background-color: #cfb59e;
    border: 2px solid #4b2e21;
    border-radius: 15px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    width: 310px;
}

.clicker h1,
.calculator h1,
.Otterwiki h1,
.welcome-screen h1 {
    font-family: "Bagel Fat One", system-ui;
    font-size: 42px;
    color: #4b2e21;
}

.welcome-screen p {
    font-family: "Yusei Magic", sans-serif;
    color: #4b2e21;
    font-size: 18px;
}

#open-welcome {
    cursor: pointer;
}

.close-app {
    cursor: pointer;
    border-radius: 100%;
    background-color: #4b2e21;
    width: 20px;
    height: 20px;
    margin: 1px;
    margin-bottom: 0;
    margin-left: auto;
}

#Otterwiki-app {
    color:#482d21;
    font-family: "Yusei Magic", sans-serif;
    margin-right: auto;
    display: grid;
    place-items: center;
    position: absolute;
    left: 5px;
    background-color: #7a553abf;
    border-radius: 15px;
    padding: 3px;
    margin-top: 30px;
    cursor: pointer;
}

img[src*="clicker"],
img[src*="calculator"],
img[src*="book"] {
    width: 60px;
    height: 60px;
}

#clicker-app p,
#calculator-app p,
#Otterwiki-app p {
    font-size: 12px;
    text-align: center;
    color: #2d1a0f;
    padding: 3px;
    margin-top: 0;
    width: 70px;
}

#clicker-app:hover,
#calculator-app:hover,
#Otterwiki-app:hover {
    background-color: #5f3c24c5;
    color: #cfb59e;
}

.Otterwiki {
    background-color: #cfb59e;
    border: 2px solid #4b2e21;
    color: #4b2e21;
    border-radius: 15px;
    padding: 20px;
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    flex-direction: column;
    width: 800px;
    display: none;
    height: 550px;
}

.Otterwiki p {
    font-family: "Yusei Magic", sans-serif;
    color: #4b2e21;
    font-size: 15px;
    border-bottom: 6px solid #4b2e21;
    padding-bottom: 3px;
} 

.clicker h1 span,
.calculator h1 span,
.Otterwiki h1 span {
    font-family: "Yusei Magic", sans-serif;
}

.sidebar {
    list-style-type: none;
    overflow-y: scroll;
    width: 175px;
    height: 350px;
    scrollbar-width: thin;
    scrollbar-color: #4b2e21 #cfb59e;
}

.sidebar ul li {
    padding: 10px;
    cursor: pointer;
    font-family: "Yusei Magic", sans-serif;
    color: #4b2e21;
    border: 4px solid #4b2e21;
    font-size: 20px;
}

.sidebar a {
    color: inherit;
    text-decoration: none;
}

.sidebar ul li:hover{
    background-color: #4b2e21;
    color: #cfb59e;
}

.sidebar ul li a:hover {
    background-color: #4b2e21;
    color: inherit;
}

#app-stuff {
    display: flex;
    gap: 0;
}

img[src*="congo-clawless-otter"],
img[src*="asian-small-clawed-otter"],
img[src*="african-clawless-otter"],
img[src*="southern-river-otter"],
img[src*="north-american-river-otter"],
img[src*="neotropical-otter"],
img[src*="mesoamerican-otter"],
img[src*="eurasian-otter"],
img[src*="hairy-nosed-otter"],
img[src*="spotted-necked-otter"],
img[src*="smooth-coated-otter"],
img[src*="giant-otter"],
img[src*="marine-otter"],
img[src*="sea-otter"] {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    float: right;
}

.content {
    display: none;
    overflow-y: scroll;
    height: 350px;
    padding: 10px;
    width: 582px;
    color: #4b2e21;
    scrollbar-width: thin;
    scrollbar-color: #4b2e21 #cfb59e;
}

.content header {
    font-family: "Bagel Fat One", system-ui;
    font-size: 40px;
    line-height: 0.8;
    margin-bottom: 6px;
}

.content h2{
    font-family: "Bagel Fat One", system-ui;
}

.content p{
    border: none;
    font-family: "Yusei Magic", sans-serif;
}

.content ul{
    list-style-type: circle;
    font-family: "Yusei Magic", sans-serif;
    padding-top: 5px;
    padding-bottom: 5px;
}

.content a{
    color: #745445
}

.content.active {
    display: block;
}

#calculator-app {
    color:#482d21;
    font-family: "Yusei Magic", sans-serif;
    margin-right: auto;
    display: grid;
    place-items: center;
    position: absolute;
    left: 5px;
    background-color: #7a553abf;
    border-radius: 15px;
    padding: 3px;
    margin-top: 130px;
    cursor: pointer;
}

.calculator {
    background-color: #cfb59e;
    border: 2px solid #4b2e21;
    color: #4b2e21;
    border-radius: 15px;
    padding: 20px;
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    flex-direction: column;
    display: none;
    width: 360px;
    height: 530px;
}

#calculator h1{
    font-size: 35px;
    text-align: center;
}

.cal-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 330px;
}

.display {
    font-family: "Yusei Magic", sans-serif;
    width: 310px;
    height: 60px;
    border-radius: 7px;
    text-align: right;
    font-size: 1.6rem;
    margin: 10px;
    color: #4b2e21;
    padding: 5px;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.button {
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    font-family: "Yusei Magic", sans-serif;
    padding: 20px;
    background-color: #4b2e21;
    color: #cfb59e;
    border-radius: 15px;
}

.button:hover {
    transform: scale(1.1);
}

.button:active {
    transform: scale(0.95);
}

.button.clear {
    background-color: #755848;
    color: #cfb59e;
}

.button.operator {
    background-color: #623f30;
}

#clicker-app {
    color:#482d21;
    font-family: "Yusei Magic", sans-serif;
    margin-right: auto;
    display: grid;
    place-items: center;
    position: absolute;
    left: 5px;
    background-color: #7a553abf;
    border-radius: 15px;
    padding: 3px;
    margin-top: 230px;
    cursor: pointer;
}

.clicker {
    background-color: #cfb59e;
    border: 2px solid #4b2e21;
    color: #4b2e21;
    border-radius: 15px;
    padding: 20px;
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    flex-direction: column;
    display: none;
    width: 600px;
    height: 400px;
}

#clicker h1{
    font-size: 35px;
    margin-bottom: 20px;
}

.clicker-main {
    display: flex;
    gap: 50px;
}

.left {
    align-items: center;
}

.left h3 {
    margin-top: 10px;
    font-family: "Yusei Magic", sans-serif;
    text-align: center;
    color: #4b2e21;
    border: 2px dashed #755848;
}

img[src*="seashell"] {
    width: 160px;
    margin: 20px;
    cursor: pointer;
}

img[src*="seashell"]:active {
    transform: scale(0.95);
}