/* tous les éléments ont pour limite l'écran (pour éviter les dépassements) */
* {
    box-sizing: border-box;
}

body {
    background-color: #E5DBD1;
    padding-bottom: 20px;
}

h1 {
    font-family: "Cinzel", serif;
    color: #21243E;
    text-align: center;
}

p, button {
    font-family: "Lora", sans-serif;
    color: #6a2c05;

    text-align: center;
}

p {
    font-size: 25px;
}

button {
    font-size: 35px;
}

img {
    display: block;
    width: 55%;
    margin: auto auto;
    height: auto;
}

.title {
    animation-name: appear;
    animation-duration: 2500ms;
}

.container {
    display: grid;
    grid-template-rows: auto 1fr auto;

    margin: auto;
    width: 100%;

    justify-content: center;
    align-items: center;
}

.content-container {
    display: grid;
    grid-template-rows: 1fr auto;
}

dialog {
    border: none;
    background: transparent;
}

.buttons {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1em;
}

.button-front {
    display: block;

    padding: 12px 42px;
    
    border-radius: 12px;
    background: linear-gradient(135deg, #f4e4c1 0%, #e8d4a8 50%, #f0dcb3 100%);
    
    transform: translateY(-6px);
    transition: transform 150ms ease;
}

.rules-button,
.download-button,
.tcg-button,
.game-button {
    background: linear-gradient(135deg, #4a2c1a 0%, #3d2415 50%, #2f1a0f 100%);
    border: none;
    border-radius: 12px;
    outline-offset: 4px;
    
    cursor: pointer;

    padding: 0;
    overflow: hidden;

    animation-name: appear;
    animation-duration: 3000ms;
}

.rules-button:hover .button-front,
.download-button:hover .button-front,
.tcg-button:hover .button-front,
.game-button:hover .button-front {
    transform: translateY(-8px);
  }

.rules-button:active .button-front,
.tcg-button:active .button-front,
.download-button:active .button-front,
.game-button:active .button-front {
    transform: translateY(-4px);
}

.close-button {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
    width: 50px;
    cursor: pointer;
}

.app-buttons {
    display: flex;

    justify-content: center;
}

.appstore-button, .playstore-button {
    border: none;
    background: transparent;
    width: 200px;
    cursor: pointer;
}

.logo {
    animation-name: logo-slide;
    animation-duration: 1500ms;
}

@keyframes logo-slide {
    from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}
@keyframes appear {
    from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 600px) {
    p {
        font-size: 16px;
    }

    button {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        font-size: 20px;
    }

    .logo {
        width: 90%;
    }

    .buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .appstore-button, .playstore-button {
        width: 150px;
    }

    .close-button {
        width: 40px;
    }
}