:root{
    --font-heading: 'Press Start 2P', cursive;
    --font-text: 'Roboto', sans-serif;
    --theme-color: #ff00e5;
    --background-color: #000000dd;
    --font-color: #dddddd;
    --cover-font-color: #ffffffdd;
    --cover-background-color: #ffffff33;
    --image-cover: url(image/cover/default.webp);
    --image-icon: url(image/icon/512.webp);
    --image-logo: url(image/logo/default.webp) 
}

body {
    background-color: black;
    background-image: url(image/cover/default.webp);
    background-attachment: fixed;
    background-repeat: repeat;
    background-size: 300px;
    color: var(--font-color);
    font-family: var(--font-text);
    font-size: 14px;
    margin: 0;
    padding: 0;
    border: 0;
}

a:not([href]) {
    display: block;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}

h1, h2, h3, h4 {
    color:  var(--theme-color);
    font-family:  var(--font-heading);
}

body > header {
    height: 235px;
    width: 600px;
    margin-left: calc(50% - 300px);
    position: relative;
    margin-bottom: 25px;
}
body > header > a {
    position: absolute;
    top: 0;
    left: 0;
    height: 192px;
    width: 192px;
    background-color:  var(--cover-background-color);
    border-radius: 5px;
}
body > header > a > img {
    display: block;
    width: 100%;
    height: 100%;
}
body > header > h1 {
    font-family: var(--font-heading);
    position: absolute;
    top: 0;
    left: 192px;
    margin-top: 0;
    margin-bottom: 0;
    height: 100px;
    width: calc(100% - 192px - 2em);
    padding-top: 56px;
    padding-bottom: 56px;
    padding-left:  2em;
    font-size: 26px;
    font-weight: normal;
    text-align:  left;
}
body > header > button[name="connect"], body > header > button[name="mint"], body > main > p > button[name="mint"] {
    position: absolute;
    bottom: 0;
    right: 2px;
    font-family: var(--font-text);
    color: var(--font-color);
    background-color: var(--theme-color);
    border: none;
    cursor: pointer;
    padding-top: 3px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 5px;    
    font-size: 110%;
    font-weight: bold;
    border-radius:  5px;
}
body > header > button[name="connect"] a {
    color:  var(--font-color);
}

body > header > button[name="mint"], body > main > p > button[name="mint"] {
    right: unset;
    left: 2px;
}
body > header > button[name="connect"] > b, body > header > button[name="mint"] > b, body > main > p > button[name="mint"] > b {
    position: relative;
    top: -3px;
    font-size: 150%;
}
body > header > button[name="connect"]:hover > b, body > header > button[name="mint"]:hover > b, body > main > p > button[name="mint"]:hover > b {
    font-style: italic;
}
body > main > p > button[name="mint"] {
    position: static;
    font-size: 125%;
}
body > main > p > button[name="mint"], body > header > button[name="mint"] {
    height: 2.2em;
    padding-right: 3em;
    background-image: url(image/icon/coin.webp);
    background-repeat: no-repeat;
    background-size: 2em;
    background-position: right;
}

body > header > nav {
    position: absolute;
    bottom: 0;
    left: 100px;
    width: 300px;
    overflow: hidden;
}
body > header > nav > a {
    text-decoration: none;
    font-family: var(--font-text);
    color: var(--font-color);
    background-color: var(--theme-color);
    height: 1.5em;
    padding-top: 8px;
    padding-bottom: 3px;
    padding-left: 10px;
    padding-right: 5px;    
    font-size: 110%;
    font-weight: bold;
    display: inline-block;
    margin-left: 0.25em;
    margin-right: 0.25em;
    border-radius:  5px;
}
body > header > nav > a:hover, body > header > button[name="connect"]:hover, 
body > header > button[name="mint"]:hover, body > main > p > button[name="mint"]:hover {
    box-shadow: 0 0 15px var(--theme-color);
}


body > main, dialog {
    background-color: var(--background-color);
    width: 550px;
    margin-left: calc(50% - 300px);
    position: relative;
    margin-bottom: 50px;
    min-height: 300px;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 0 15px var(--theme-color);
}

dialog {
    position: fixed;
    top: 100px;
    left: calc(50% - 300px);
    margin-left: 0;
    background-color: var(--background-color);
    color: var(--cover-font-color);
    height: 500px;
    overflow: auto;
    display:  none;
}
dialog[open] {
    display:  block;
}

dialog button[name="close"] {
    position: absolute;
    top: 3em;
    right: 2em;
    font-weight: bold;
    border-radius: 1em;
    cursor: pointer;
    font-size: 80%;
}

#mint > label {
    display: block;
    margin-top: 2em;
    margin-bottom: 3em;
}
#mint > label > input[type="range"] {
    display: block;
    width: 100%;
}
#mint > label > input[type="number"] {
    display: block;
    width: 4em;
    font-size: 150%;
    padding-left: 0;
    padding-right: 0;
    font-weight: bold;
}
#mint > label > small {
    display: block;
    
}
dialog > p, #mint > p {
    display: block;
    margin-top: 2em;
    margin-bottom: 3em;
    font-weight: bold;
    font-style: italic;
    font-size: 120%;
}
#mint > button[name="mint-nft"] {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 150%;
    font-weight: bold;
    cursor: pointer;
    padding: 0.1em;
    padding-left: 1em;
    padding-right: 1em;
    color:  #ffffff;
    background-color: var(--theme-color);
    border-radius: 5px;
    box-shadow: 0 0 15px var(--theme-color);
}
#mint > button[name="mint-nft"]:hover {

}

#mint > div[name="console"] {
    font-family: var(--font-heading);
    background-color:  var(--background-color);
    color:  #00ff00;
    padding:  1.5em;
    font-size:  0.8em;
    overflow:  visible;
    height:  300px;
    margin-bottom:  2em;
    visibility: hidden;
}
#mint > div[name="console"][active] {
    visibility: visible;
}
#mint > div[name="console"] a {
    color:  var(--theme-color);
}
@keyframes thinking {
    0% { width: 0; }
    10% { width: 0; }
    30% { width: 1em; }
    50% { width: 2em; }
    70% { width: 3em; }
    100% { width: 3em; }
}
#mint > div[name="console"] > p > span.thinking {
    display:  inline-block;
    overflow:  hidden;
    width:  0;
    animation:  3s linear 0s infinite thinking;
    vertical-align: top;
    white-space: nowrap;
}
#mint > div[name="console"] > p > span[done].thinking {
    animation:  none;
    width:  10em;
}
#mint > div[name="console"] > p {
    line-height: 24px;
    visibility: hidden;
}
#mint > div[name="console"] > p[active] {
    visibility: visible;
}
#mint > div[name="console"] > p[name="meet"] > img {
    display: inline-block;
    height:  24px;
    width:  24px;
    background-color: transparent;
}
#mint > div[name="console"] > p[name="contract-id"] > span, #mint > div[name="console"] > p[name="token-id"] > span {
    cursor:  pointer;
}


@keyframes oldcursor { 
    0% { 
        border-right-color: transparent;
    } 
    5% { 
        border-right-color: var(--theme-color);
    }  
    45% { 
        border-right-color: var(--theme-color);
    }  
    50% { 
        border-right-color: transparent;
    }  
}
body > main > h2:first-of-type {
    margin-top: 0;
    display: inline-block;
    clear: both;
    padding-right: 0.75em;
    border-right-width: 2px;
    border-right-style: solid;
    border-right-color: transparent;
    animation: 1s linear 0s infinite oldcursor;
}
body > main > h2 {
    margin-top: 3em;
}

body > main > p, body > main > ol {
    font-size: 110%;
    margin-bottom: 3em;
    line-height: 1.75em;
}
body > main > ol {
    padding-inline-start:  1em;
}
body > main > ol > li > a {
    color:  var(--font-color);
    font-weight: bold;
}

body > main > p > img {
    float: left;
    clear: left;
    margin-right: 1em;
    margin-bottom: 1em;
    width: 48px;
    height: 48px;
    background-color: var(--cover-background-color);
}

body > main > p > img[src="image/spaceship.gif"] {
    float: none;
    clear: both;
    margin-top:  1em;
    margin-right: 0;
    margin-bottom: 1em;
    width: 100%;
    height: auto;
    background-color: var(--cover-background-color);
    display:  block;
    margin-left:  0;
}

.sale, .team {
    display: inline-block;
    padding: 0;
    margin: 6px;
    padding: 6px;
    border: 0;
    width: 150px;
    padding-top: 120px;
    height: 150px;
    vertical-align: top;
    text-align: left;
    outline: 1px solid var(--theme-color);
    background-color: var(--cover-background-color);
    background-image: url(image/logo/default.webp);
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    color: var(--cover-font-color);    
}
.sale > span, .team > span {
    display: inline-block;
    width: 100%;
    margin-top: 1em;
    text-align: right;
    margin-bottom: 1em;
}
.sale > span::before {
    display: inline-block;
    text-align: left;
}
.sale > span:nth-of-type(1)::before {
    margin-top: 1em;
    content: '@'
}
.sale > span:nth-of-type(2)::before {
    content: '#'
}
.sale > span:nth-of-type(3)::before {
    content: 'ETH: '
}
.team {
    margin: 4px;
    margin-top: 12px;
    padding: 4px;
    border: 0;
    width: 250px;
    padding-top: 180px;
    background-size: 96px;
    background-position: center 48px;

}
.team > h3 {
    text-align: left;
    color: var(--cover-font-color);
    font-family: var(--font-heading);
    margin: 1em;
    line-height:  1.75em;
    text-transform: capitalize;
}
.team > p {
    text-align: left;
    color: var(--cover-font-color);
    font-size: 120%;
    margin: 1em;
    
}

.sale {
    width:  48px;
    height:  48px;
    padding-top:  0;
    padding-bottom:  0;
    padding-left:  0;
    padding-right:  0;
}

body > footer {
    width: 600px;
    margin-left: calc(50% - 300px);
    position: relative;
    margin-bottom: 50px;
}
body > footer > nav {
    text-align: center;
}
body > footer > nav > a {
    display: inline-block;
    margin: 1em;
    margin-left: 3em;
    margin-right: 3em;
    text-decoration: none;
    color: var(--font-color);
    font-size: 90%;
    font-weight: bold;
}

.social-links a {
    color: var(--theme-color);
}

.floater, .star {
    position: fixed;
    z-index: -1;
    background-size: contain;
    background-color: transparent;
    transform: rotate(0deg);
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: infinite;
}
.star {
    position: fixed;
    z-index: -2;
    background-color: red;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    width: 50px;
    height: 50px;
    background-color: #000000;
    border-radius: 50px;
}
.floater {
    width: 24px;
    height: 24px;
}


@media (min-width:901px) {
    body > header, body > main, body > footer, dialog {
        width: 900px;
        margin-left: calc(50% - 450px);
    }
    body > main, dialog {
        width: 850px;
    }
    dialog {
        top: 100px;
        left: calc(50% - 452.5px);
        margin-left: 0;
    }
    .sale, .team {
        margin-left: 0;
        margin-right:  0;
        padding-left:  3px;
        padding-right:  3px;
    }
    .team {
        width: 195px;
        padding-top: 195px;
        margin-right: 0px;
    }
}


@media (max-width:900px) {
    body > header, body > main, body > footer, dialog {
        width: 600px;
        margin-left: calc(50% - 300px);
    }
    body > main, dialog {
        width: 550px;
    }
    dialog {
        top: 10px;
        left: calc(50% - 302.5px);
        margin-left: 0;
    }
}


@media (max-width:600px) {
    body > header, body > main, body > footer {
        width: 300px;
        margin-left: calc(50% - 150px);
    }
    body > main, dialog {
        width: 250px;
    }
    dialog {
        top: 10px;
        left: calc(50% - 150px);
        margin-left: 0;
    }
    body > header {
        height: 250px;
    }
    body > header > a {
        position: absolute;
        top: 0;
        left: calc(50% - 96px);
    }
    body > header > h1 {
        top: 200px;
        left: 0;
        height: 28px;
        width: 100%;
        padding-top: 0;
        padding-bottom: 40px;
        font-size: 18px;
        text-align: center;
    }
    body > header > nav {
        left: 100px;
        width: 35px;
        height: 24px;
        font-family: var(--font-text);
        color: var(--font-color);
        background-color: var(--theme-color);
        border-radius:  5px;
    }
    body > header > nav > a {
        display: none;
    }
    body > header > nav::after {
        display: block;
        content: '\2630';
        position: absolute;
        left: 0;
        padding-left: 10px;
        top: 0;
        width: 25px;
        height: 24px;
        font-size: 120%;
        font-weight: normal;
        cursor: pointer;
        background-color: var(--theme-color);
        border-radius:  5px;
    }
    body > header > nav:hover::after {
        font-style: italic;
    }
    body > header > nav:hover {
        display: block;
        width: 100px;
        height: 174px;
        bottom: -180px;
        padding-top: 30px;
        z-index: 1000;
        background-color: transparent;
    }
    body > header > nav:hover > a {
        display: block;
        padding-top: 1em;
        padding-bottom: 1em;
        background-color: var(--theme-color);
        border-radius:  0;
    }
    body > header > nav:hover > a:first-of-type {
        padding-top: 2em;
    }
    body > header > nav:hover > a:last-of-type {
        padding-bottom: 2em;
    }
    body > header > button[name="connect"], body > header > button[name="mint"] {
        padding-top: 0px;
        padding-bottom: 0px;
        font-size: 100%;
        height: 24px;
    }
    .sale {
        margin: 4px;
        border: 0;
    }
    .sale > span {
        font-size: 65%;
    }
    .team {
        margin-left: 0;
    }
}


@media (max-width:300px) {
    body > header, body > main, body > footer {
        margin-left: 0;
    }
    dialog {
        left: 0;
        top:  10px;
    }
}


@media (min-height:700px) {
    dialog {
        height: 660px;
    }
}


