/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Slab', serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
}

h1 {
    text-align: center;
}

#coin {
    margin: auto;
    width: 100px;
    height: 100px;
    cursor: pointer;
    perspective: 1000px;
    
}

/* May be used for a loading prank in the future */
body.waiting {
    cursor: wait;
}


@keyframes coinFlip {
    0% {
        transform: rotateY(0deg) scale(1);
    }

    60% {
        transform: rotateY(1080deg) scale(1.05);
    }

    80% {
        transform: rotateY(1260deg) scale(0.97);
    }

    100% {
        transform: rotateY(1440deg) scale(1);
    }
}

#coin img {
    width: 100%;
    height: 100%;
    transition: none;
    /* Disable regular transition */
}

#coin.flipping img {
    animation: coinFlip 1.2s ease-in-out forwards;
}

@font-face {
    font-family: customFont;
    src: url(../fonts/SymphonyoftheNightfont.ttf);
}

#resultText {
    margin-top: 10px;
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    color: white;
    font-family: customFont, sans-serif;
}


.wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    width: 90vw;
    margin: auto;
}

.hide {
    display: none !important;
}

/* Media Section */
.media-area {
    display: grid;
    grid-template-columns: 3fr 1fr;
    /* stream 3/4, chat 1/4 */
    gap: 1.5rem;
    align-items: start;
}

.media-area img {
    width: 100px;
}

.media,
.chat {
    width: 100%;
    background-color: #000;
    border-radius: 8px;
}

.chat {
    height: 100%;
}

.chat img {
    display: flex;
    width: 100%;
    image-rendering: pixelated;
    transform: scaleX(-1);
}

/* Responsive tweaks */
@media screen and (max-width: 768px) {
    .media-area {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .chat img {
        display: none;
    }

    .chat {
        height: 300px;
    }

    .media {
        aspect-ratio: auto;
    }
}

.media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    background-color: #000;
}



/*  Social Links */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
    font-family: customFont, sans-serif;
}

.social-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    background-color: #282c34;
    color: #fff;
    text-decoration: none;
    padding: 0.6em 1em;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.social-btn img {
    height: 20px;
    width: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.social-btn:hover {
    background-color: #444;
}

.container {
    text-align: center;
}

.container a {
    text-decoration: none;
}

.hidden-button {
    visibility: hidden;
}

.container:hover .hidden-button {
    display: inline-flex;
    align-items: center;
    background-color: #282c34;
    color: #fff;
    text-decoration: none;
    padding: 0.6em 1em;
    border-radius: 8px;
    font-weight: 500;
    visibility: visible;
}