*{
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1c1f26;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

header {
    background-color: #2b2b2b;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header nav {
    flex: 1;
}

header ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    text-align: center;
}

footer {
    background-color: #2b2b2b;
    padding: 10px 20px;
    text-align: center;
    color: #f0f0f0;
    font-size: 14px;
}

@media (max-width: 700px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }
    header ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

h1 {
    font-family: 'Press Start 2P', cursive;
    color: #ffcc66;
    font-size: 17px;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

h2{
     font-family: 'Press Start 2P', cursive;
     color: #cea146;
}

h1>em{
    font-size: 150%;
}

em{
    gap: 10px;
    font-size: 80%;
    font-family: 'Press Start 2P', cursive;
    color: rgb(255, 255, 255);
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
}

a {
    color: #66d9ef;
    text-decoration: none;
}

.atual {
    color: #ffcc66;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}


img{
    width: 300px;
    height: auto;
    display: block; 
    margin: auto;

}

img:not(.personagens, #caveira){
    width: 300px;
    height: auto;
    display: block; 
    margin: 32px auto;
    box-shadow: 0 4px 24px #0008;
    border: 3px solid #444;
}

#vdo{
    width: 600px;
    height: 60px;
}

.personagens {
    width: 100px;
    height: auto;
    display: inline;
    margin: 0;
}

dl {
    display: flex;
    flex-direction: row;
    background: #1f1c1c;
    border-radius: 16px;
    gap: 12px;
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
    box-sizing: border-box;
    scroll-behavior: smooth;
    padding: 12px 4vw 12px 4vw;
    margin: 0;
    box-shadow: 0 4px 16px rgb(0, 0, 0);
}

dd {
    border: rgb(0, 0, 0) 1px solid;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 1000px;
    max-width: 1200px;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    margin: 0 0 0 0;
    overflow-x: scroll;
}
dd:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px #0007;
    background-color: rgb(7, 6, 6);
    z-index: 100;
}
dd > img {
    width: 100%;
    max-width: 250px;
    margin: 16px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0003;
    display: block;
}
dd > :not(img) {
    margin-bottom: 8px;
}
dt {
    font-family: 'Press Start 2P', cursive;
    color: #ffcc66;
    font-size: 1.1em;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
    margin: 10px;
}

@media (max-width: 900px) {
    dl {
        display: flex;
        flex-direction: row;
        gap: 12px;
        width: 100vw;
        max-width: 100vw;
        overflow-x: auto;
        box-sizing: border-box;
        scroll-behavior: smooth;
        padding: 12px 4vw 12px 4vw;
        margin: 0;
    }
    dd {
        min-width: 85vw;
        max-width: 95vw;
        width: 95vw;
        padding: 12px 8px 12px 8px;
    }
    dd > img {
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
    dl {
        gap: 8px;
        padding: 8px 0 8px 0;
    }
    dd {
        min-width: 98vw;
        max-width: 99vw;
        width: 99vw;
        padding: 8px 2px 8px 2px;
    }
    dd > img {
        max-width: 98vw;
    }
}

.iframe-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    margin: 24px auto;
}
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 900px) {
    .iframe-container {
        max-width: 100vw;
        aspect-ratio: 16/9;
    }
}

#HE{
    float: right;
    width: 250px;
}


@media (max-width: 900px) {
    header {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 2vw;
    }
    header ul {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    main {
        border-radius: 0;
        margin: 0;
        padding: 8px 0 16px 0;
    }
    h1 {
        font-size: 1.3em;
    }
    h2 {
        font-size: 1.1em;
    }
    img, .personagens {
        max-width: 95vw;
    }
    dl {
        gap: 16px;
        padding: 8px 0 16px 0;
    }
    dd {
        min-width: 90vw;
        max-width: 98vw;
        padding: 12px 8px 12px 8px;
    }
    dd > img {
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    main {
        padding: 4px 0 8px 0;
    }
    h1 {
        font-size: 1em;
    }
    h2 {
        font-size: 0.95em;
    }
    .iframe-container {
        aspect-ratio: 16/10;
    }
    dl {
        gap: 8px;
        padding: 4px 0 8px 0;
    }
    dd {
        min-width: 98vw;
        max-width: 99vw;
        padding: 8px 2px 8px 2px;
    }
    dd > img {
        max-width: 98vw;
    }
}

/*Jogo*/


button{
    font-family: 'Press Start 2P', cursive;
    background-color: #ffcc66;
    color: #1c1f26;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 16px;
}

button:hover{
    background-color: #e6b655;
    transform: translateY(-2px);
}

button:active{
    transform: translateY(5px);
}

#upgradesMenu{
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(2, 1fr);
    justify-content: center;
    margin: 16px;
    width: 100%;
    height: max-content;
    background-color: #1f1c1c;
    place-items: center;
    border-radius: 10px;
    box-shadow: 20px 20px 60px #0008, -20px -20px 60px #333;
}

.upgrade{
    background-color: #2b2b2b;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    width: 220px;
    height: 200px;
    margin-bottom: 16px;
    color: #f0f0f0;
}