@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto+Slab:wght@100..900&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(40deg, rgb(127, 7, 175) 0%, rgb(9, 62, 96) 100%);
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
}

.container {
    display: flex;
    opacity: 0.9;    
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    height: 70vh;
    transition: height 0.5s ease, opacity 0.5s ease;
    margin-top: 100px;
}

.cursor-pointer { cursor: pointer; }

.cookie img {
    filter: drop-shadow(2px 10px 10px #00000093);
    animation: pulse-1 2s infinite;
}

.cookie img.disappear-animation {
    animation: disappear 1s forwards;
}

.message {
    width: 80%;
    max-width: 500px;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;    
    opacity: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 0.4em;
    transform: scale(1);
    margin-top: 3em;
}

.message:hover,
.message:active {
    transform: scale(1.3);
}

.message img {
    width: 70%;
    border-radius: 0.4em;
    border: 7px solid rgba(0, 0, 0, 0.202);
}

.message h1 {
    font-size: 2.1rem;
    margin-bottom: 0.4em;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
}

.message.show {
    display: flex;
    opacity: 1;
    animation: pulse-2 10s infinite;
}

.message h1,
.message span,
.message p {
    color: #e6dfdf;
}

.message p a {
    text-decoration: none;
}

.message p a:hover {
    text-decoration: underline;
}

.message span {
    font-size: 1.4rem;
}

/* Keyframes for animations */
@keyframes pulse-1 {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-2 {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes disappear {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.7) rotate(190deg); opacity: 0; }
}

/* Media query for mobile devices */
@media (hover: none) {
    .message:hover {
        transform: scale(1);
    }
    .message:active {
        transform: scale(1.3);
    }
}