/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    padding: 20px;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
    align-items: center;
}

.game-icon {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    margin-right: 10px;
}

.portfolio {
    width: 90%;
    max-width: 900px;
}

.game {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #444;
    border-radius: 8px;
}

.game-info {
    flex: 1;
    padding: 20px 20px;
}

.download-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 19px;
}

.download-button:hover {
    background-color: #45a049;
}

.media {
    display: flex;
    gap: 10px;
}

.media img {
    width: 150px;
    background-color: #777;
    border-radius: 4px;
    cursor: pointer;
}

/* Fullscreen overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-overlay .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 10px;
    font-size: 18px;
    background-color: #555;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.fullscreen-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Media query for mobile screens */
@media (max-width: 600px) {
    .game {
        flex-direction: column; /* Stack elements vertically */
        align-items: flex-start;
    }

    .media {
        display: flex;
        flex-direction: column; /* Stack screenshots vertically */
        width: 100%;
        margin-top: 10px;
        align-items: center;
    }

    .media img {
        display: block; /* Fix for iOS Safari */
        max-width: 300px; /* Set max width instead of width: 100% */
        margin-bottom: 10px;
        border-radius: 4px;
    }
}

@supports (-webkit-touch-callout: none) {
    /* Specific for Safari on iOS */
    .game {
        flex-direction: column;
        align-items: flex-start;
    }

    .media {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .media img {
        width: 100%;
        height: auto;
        max-width: 300px;
        border-radius: 4px;
    }
}

/* Add these styles at the end of your CSS file */
.links {
    text-align: center;
    padding: 40px 0;
    margin-top: 20px;
}

.links-text {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    margin: 10px;
    background-color: #444;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.links-text:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.lazy-gif {
    min-height: 150px;
    background: #555; /* Loading placeholder color */
}
