/* Initial Setup */


* {
    padding: 0;
    margin: 0;
}


/* MAIN FORMATTING */

body {
    text-align: center;
    margin: 0;
}

header {
    padding: 3em 0;
}

header h4 {
    margin-top: 1em;
    margin-bottom: 0em;
}

nav li {
    line-height: 2em;
}

main h2, main h3 {
    padding-top: 1em;
}

main h3 {
    padding: 1em;
}

#bug-description h3, #equip-description h3, 
#cocoon-description h3 {
    padding: 1em 1em 0em 1em;
}

#moth-description h3 {
    padding: 1em;
}

#bug-description p, #equip-description p, 
#cocoon-description p, #moth-description p {
    padding: 0em 0.5em;
}

#bug-desc-upper-text, #equip-desc-upper-text, 
#cocoon-desc-upper-text {
    margin-top: 1em;
}

img {
    filter: opacity(20%);
    padding: 0em 1em;
    filter: hue-rotate(90deg);
}

#moth-img {
    filter: hue-rotate(0deg);
}

#nectar-button {
    padding: 3em 1.5em;
}

#cocoon-sacrifice-button {
    padding: 1em 2em;
    margin: 1em;
}

#bug-upgrades, #equip-upgrades, #moth-upgrades {
    padding-top: 1em;
    display: flex;
    gap: 1em;
    padding-bottom: 1em;
    margin: 0 1em 0 1em;
}

footer {
    padding: 1.5em 0;
}

#reset-options {
    display: flex;
    justify-content: center;
}

#upgrades h4 {
    padding: 1em 0;
}

#confirm-reset {
    margin-right: 4em;
}

footer button {
    padding: 2em 2em;
    margin-top: 1em;
}

#buy-max-bugs, #buy-max-equip {
    width: 30%;
    padding: 0.5em 1em;
}

#buy-max-bugs {
    margin-right: 6em;
}

#bug-desc-text {
    display: block;
}

#cocoon-img, #moth-img {
    margin: 1em
}

#equip-tab, #cocoon-tab, #moth-tab {
    display: none;
}

#sacrifice-section {
    line-height: 2em;
}

#moth-desc-upper-text {
    padding-bottom: 1em;
}

/* TEXT FORMATTING */


h1, h2, h3, h4, li {
    font-family: verdana;
    line-height: 1em;
}

p {
    font-family: tahoma;
}

#bug-title, #equip-title, #cocoon-title, #moth-title {
    font-size: 1.25em;
}

nav {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    list-style-type: none;
}

#nectar-button, #cocoon-sacrifice-button {
    font-weight: bold;
}

#cocoon-tab, #moth-tab {
    line-height: 1.5em;
}

#bug-upgrades, #equip-upgrades, #moth-upgrades {
    line-height: 2em;
}

#bug-upgrades h4, #equip-upgrades h4, #moth-upgrades h4 {
    line-height: 2em;
}

footer p {
    font-size: 1.5em;
    font-weight: bold;
}

#reset-title {
    font-size: 1.25em;
}

#reset-caption {
    font-size: 1em;
    font-weight: normal;
}

#confirm-reset, #cancel-reset {
    font-weight: bold;
}

#buy-max-bugs, #buy-max-equip {
    font-weight: bold;
}

#moth-currency-display {
    font-weight: bold;
}

#cocoon-scale-count {
    font-weight: bold;
}

/* COLOURS */

header {
   background-color: #C97C5D;
}

nav, footer {
    background-color: #C89F9C;
}

#equip-nav {
    background-color: #BF908D;
}

main {
    background-color: #EED7C5;
}

#bug-tab, #equip-tab, #nectar-button, 
#buy-max-bugs, #buy-max-equip {
    background-color: #EEE2DF;
}

#cocoon-tab, #moth-tab {
    color: #fff;
    background-color: #000;
}

#cocoon-sacrifice-button {
    color: #fff;
    background-color: #000;
}

#confirm-reset {
    background-color: #81ff7f;
}

#cancel-reset {
    background-color: #ff967f;
}

/* DECORATION */

nav li:hover, #equip-title:hover, #bug-title:hover, #reset-text:hover {
    cursor: pointer;
}

/* FUNCTIONALITY */

img {
    user-select: none;
    -webkit-user-drag: none;
}

#bug-upgrades, #equip-upgrades, #moth-upgrades {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

/* COCOON LOADING BAR */

#cocoon-loading-outer-bar {
    width: 80%;
    border-radius: 5px;
    background-color: white;
    overflow: hidden;
    margin: 1em auto;
}

#cocoon-loading-inner-bar {
    width: 0%;
    height: 1em;
    background-color: #703D57;
}

/* Fullscreen Display */

@media screen and (min-width: 26em) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }
    
    #bug-upgrades, #equip-upgrades, #moth-upgrades {
        justify-content: center;
    }
}