* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    background: #050505;
    color: #ccc;

    font-family: monospace;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */

header {
    text-align: center;
    margin: 60px 20px 40px;
}

header h1 {
    margin: 8px 0;
    color: #ddd;
    font-size: 36px;
}

header p:last-child {
    color: #666;
    margin-top: 10px;
}

.terminal-text {
    color: #00ff66;
    margin: 0;
}

/* Cards */

#contain {
    display: flex;
    gap: 50px;
    justify-content: center;
    padding: 20px;
}

#fun,
#lame {
    position: relative;

    width: 300px;
    height: 600px;

    overflow: hidden;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

/* FUN TERMINAL */

#fun {
    background: #071107;
    color: #00ff66;

    border: 1px solid #126b32;

    box-shadow:
        0 0 20px rgba(0, 255, 100, 0.05);
}

/* Boring version */

#lame {
    background: #050505;
    color: #aaa;

    border: 1px solid #222;
}

/* Images */

#fun img,
#lame img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        filter 0.3s ease,
        transform 0.3s ease;
}

/* Terminal image */

#fun:hover img {
    opacity: 0.35;
    filter: grayscale(100%) sepia(100%) hue-rotate(90deg)
            saturate(300%) brightness(45%);

    transform: scale(1.03);
}

/* Basic image */

#lame:hover img {
    opacity: 0.5;
    filter: grayscale(100%) brightness(40%);

    transform: scale(1.02);
}

/* Content */

.card-content {
    position: absolute;

    left: 25px;
    right: 25px;
    bottom: 25px;

    z-index: 2;
}

.number {
    font-size: 12px;
    opacity: 0.5;
}

.card-content p {
    margin: 8px 0 20px;

    font-size: 18px;
    line-height: 1.4;
}

/* Terminal text */

#fun .card-content p {
    color: #00ff66;
}

.select {
    font-size: 13px;
    opacity: 0.55;
}

#fun .select {
    color: #00ff66;
}

/* Hover */

#fun:hover {
    transform: translateY(-5px);

    border-color: #00ff66;

    box-shadow:
        0 0 25px rgba(0, 255, 100, 0.12);
}

#lame:hover {
    transform: translateY(-5px);

    border-color: #555;

    box-shadow:
        0 0 25px rgba(255, 255, 255, 0);
}

/* Little terminal cursor */

#fun:hover .select::after {
    content: " █";
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Mobile */

@media (max-width: 700px) {

    header {
        margin-top: 35px;
    }

    header h1 {
        font-size: 28px;
    }

    #contain {
        flex-direction: column;
        gap: 30px;
    }

    #fun,
    #lame {
        width: 280px;
        height: 450px;
    }
}
