/**
 * Public styles for HTML5 Game Manager
 */

/* Game Container */
.html5-game-container {
    margin: 0; /* Removed top/bottom margins */
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f9f9f9;
    width: 100%; /* Ensure it takes full width */
}

/* Game Iframe Container */
.html5-game-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin: 0; /* Ensure no margins */
    padding-left: 0; /* Remove left padding */
    padding-right: 0; /* Remove right padding */
}

.html5-game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Game Controls - Hidden as per request */
.html5-game-controls {
    display: none; /* Hide the controls completely */
    padding: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
}

/* Game Button Styles */
.html5-game-like-button,
.html5-game-dislike-button,
.html5-game-favorite-button,
.html5-game-fullscreen-button {
    margin: 0 5px;
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.html5-game-like-button:hover,
.html5-game-dislike-button:hover,
.html5-game-favorite-button:hover,
.html5-game-fullscreen-button:hover {
    background-color: #45a049;
}

.html5-game-dislike-button {
    background-color: #f44336;
}

.html5-game-dislike-button:hover {
    background-color: #d32f2f;
}

.html5-game-favorite-button {
    background-color: #FFC107;
    color: #333;
}

.html5-game-favorite-button:hover {
    background-color: #FFA000;
}

.html5-game-fullscreen-button {
    background-color: #2196F3;
}

.html5-game-fullscreen-button:hover {
    background-color: #1976D2;
}

/* Ads Styling */
.html5-game-popup-ad {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.html5-game-popup-ad-content {
    position: relative;
    width: 250px;
    height: 250px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.html5-game-popup-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.html5-game-popup-ad-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.html5-game-banner-ad {
    position: absolute;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.html5-game-banner-ad-top {
    top: 0;
}

.html5-game-banner-ad-bottom {
    bottom: 0;
}

.html5-game-banner-ad-content {
    position: relative;
    width: 728px;
    height: 90px;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.html5-game-banner-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
}

.html5-game-banner-ad-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .html5-game-controls {
        flex-direction: column;
        height: auto;
    }
    
    .html5-game-info {
        margin-bottom: 10px;
    }
    
    .html5-game-buttons {
        width: 100%;
        justify-content: space-around;
    }
    
    .html5-game-button {
        margin: 0 5px;
    }
    
    .html5-game-banner-ad-content {
        width: 100%;
        max-width: 728px;
    }
}

/* Landscape mode for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .html5-game-iframe-container {
        padding-bottom: 75%; /* 4:3 aspect ratio */
    }
}