* {
    padding: 0;
    margin: 0;
}

:root {
    --background-marvel: #a50a23;
    --background-anime: #74f6e8;
    --text-anime: #74113C;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Marvel", sans-serif;
}

/* Hader */

header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    background-color: var(--background-marvel);
    padding: 20px;
    color: white;
}

header a img#comic-icon {
    width: 50px;
}

header a.logo-space {
    grid-column: 1 /3;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: white;
}

nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
}

nav ul {
    overflow: hidden;
}

nav.open {
    grid-column: 1 / -1;
    width: 100%;
    background-color: rgb(236, 254, 237);
    grid-template-rows: 1fr;
    border: 2px solid rgb(117, 117, 117);
    margin-top: 10px;
}

#myButton::before {
    content: "\2630";
    color: white;
}

#myButton {
    font-size: 2rem;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    width: 100%;
    text-align: right;
    padding: .25rem 2vw;
}

#myButton.open::before {
    content: "X";
    color: white;
}

/*home  Main */

main section.anime-section,
main section.marvel-section, .about-us {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
}

main section a {
    text-decoration: none;
}

.anime-title {
    color: rgb(0, 102, 255);
    font-size: 40px;
}

.marvel-title {
    color: var(--background-marvel);
    font-size: 40px;
}

/* Home Anime section */
main section div.anime-suggestion figure a,
main section div.anime-promotion figure a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-anime);
    margin: 40px;
    color: var(--text-anime);
    text-decoration: none;

}

main section div.anime-suggestion figure a:hover,
main section div.anime-promotion figure a:hover {
    background-color: #810c12;
    color: rgb(255, 255, 255)
}

.new {
    color: rgb(87, 88, 12);
}

main section div.anime-promotion figure a:hover .new {
    color: rgb(251, 255, 16);
}

div.anime-suggestion figure h2,
div.marvel-suggestion figure h2 {
    font-size: 15px;
}

div.anime-suggestion figure a img {
    width: 120px;
    height: 200px;
}

main section.anime-section div.carousel,
main section.marvel-section div.carousel {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin: 0 auto 300px auto;
}

div.marvel-suggestion,
div.anime-suggestion {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate3D 12s linear infinite;
}

div.marvel-suggestion figure,
div.anime-suggestion figure {
    position: absolute;
    backface-visibility: hidden;
}

div.marvel-suggestion figure:nth-child(1),
div.anime-suggestion figure:nth-child(1) {
    transform: rotateY(0deg) translateZ(200px);
}

div.marvel-suggestion figure:nth-child(2),
div.anime-suggestion figure:nth-child(2) {
    transform: rotateY(90deg) translateZ(200px);
}

div.marvel-suggestion figure:nth-child(3),
div.anime-suggestion figure:nth-child(3) {
    transform: rotateY(180deg) translateZ(200px);
}

div.marvel-suggestion figure:nth-child(4),
div.anime-suggestion figure:nth-child(4) {
    transform: rotateY(270deg) translateZ(200px);
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(-360deg);
    }
}

/* Home Marvel Section */
section.marvel-section figure a {
    background-color: var(--background-marvel);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    margin: 40px;
}

div.marvel-promotion figure a {
    padding: 10px;
}

div.marvel-promotion figure a img {
    width: 225px;
    height: 318px;
}

div.marvel-suggestion figure a img {
    width: 180px;
}

main section div.anime-suggestion figure a,
main section div.anime-promotion figure a,
div.marvel-promotion figure a,
div.marvel-suggestion figure a {
    border-radius: 10px;
    padding: 15px;
    transition: padding 0.3s;
}

main section div.anime-suggestion figure a:hover,
main section div.anime-promotion figure a:hover,
div.marvel-promotion figure a:hover,
div.marvel-suggestion figure a:hover {
    padding: 25px;
    transition: padding 1s;
}

div.marvel-promotion figure a:hover,
div.marvel-suggestion figure a:hover {
    background-color: #00941e;
    color: black;
}

/* Footer */
.footer {
    background-color: #74f6e8;
    color: black;
}

.footer .flag {
    width: 50px;
}


/* Style Card page */
main div.card {
    margin: 20px;
    background-color: #dbff5b;
    padding: 20px;
    border-radius: 10px;
}

main div.card figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

main div.card figure img {
    width: 250px;
    margin: 10px;
}

/* Style comicsList page */
main.comicsList div figure {
    background-color: var(--background-anime);
    margin: 30px;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.3s;
}

main.comicsList div figure a {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px;
    color: var(--text-anime);
    text-decoration: none;
}

main.comicsList div figure:hover {
    background-color: #810c12;
    color: rgb(255, 255, 255);
    transition: background-color 0.3s;
}

main.comicsList div figure:hover a {
    color: white;
}

main.comicsList div figure img {
    width: 200px;
}

/* Register Page */
body.exception {
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between
}

section.open {
    visibility: visible;
    display: flex;
    top: 50%;
    left: 50%;
    opacity: 1;
    flex-direction: column;
    align-items: center;
    background-color: rgb(4, 53, 8);
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    transition: opacity 0.3s ease-in;
    color: white;
}

.hide {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

section form {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    background-color: rgba(255, 255, 255, 0.466);
    color: black;
    padding: 10px;
    border-radius: 10px;
    margin: 15px 5px;
}

section form label {
    display: flex;
    gap: 5px;
}

button.submit-sign,
button.submit-log {
    align-self: flex-start;
    padding: 5px;
    background-color: rgb(29, 29, 160);
    color: white;
    border: none;
    border-radius: 10px;
}
button.submit-sign:hover,
button.submit-log:hover {
    padding: 6px;
    background-color: rgb(124, 207, 255);
    color: rgb(0, 0, 0);
    border: none;
    transition: padding 0.3s;
}

/* Profile Page */
section.section-profile {
    margin: 0;
    padding: 40px;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.welcome-title {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-message {
    color: #000000;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.logout-button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logout-button:hover {
    transform: translateY(-2px);
}

.decoration {
    font-size: 3em;
    margin-bottom: 20px;
}