/* Import Roboto Font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Page Styling */
body {
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
}

/* Header and Banner Styling */
.banner {
    background-color: #050505;
    color: white;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-title {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #3, 3, 3; /* Light color for dark backgrounds */

}

/* Styling for the login button */
.login-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent;
    color: #fff;
        filter: grayscale(0%); /* Initially make the image grayscale */

    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

/* Add styling for the image inside the login button */
.login-icon {
    width: 48px; /* Set the width of the image */
    height: 48px; /* Set the height of the image */
    margin-right: 8px; /* Space between the image and the text */
}

/* On hover, make the button 50% visible */
.login-btn:hover {
    opacity: 0.5; /* 50% opacity on hover */
            background-color: transparent; /* Keep it transparent */
                transform: scale(1.05);
}


/* Styling for the logout button */
.logout-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: transparent; /* Keep it transparent */
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease; /* Only transform on hover, no opacity change */
}

/* Styling for the image inside the logout button */
.logout-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Make sure the image stays within the circular button */
    object-fit: cover; /* Ensure the image covers the button space */
    filter: grayscale(0%); /* Initially make the image grayscale */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for opacity and scale */
    opacity: 1; /* Fully visible by default */
}

/* On hover, change the opacity of the image and scale it up */
.logout-icon:hover {
    opacity: 0.7; /* Lower the opacity on hover */
    transform: scale(1.1); /* Scale up the image slightly */
}

/* Remove opacity change from button on hover */
.logout-btn:hover {
    transform: scale(1.1); /* Scale up the button without changing opacity */
        background-color: transparent; /* Keep it transparent */
}


/* Overlay Background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Popup Menu Styling */
.popup-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Close Button (X) */
.close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Input Fields */
input[type="text"], input[type="password"], input[type="email"] {
    padding: 0.7rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Buttons */
button {
    padding: 0.7rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    /*background-color: #777;*/
}

/* Specific Button Colors */
.submit-btn {
    background-color: #008CBA; /* Blue */
    color: white;
}

.remember-me-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.remember-me-container input {
    margin-right: 5px;
}

/* Games Section */
.games-container {
    text-align: center;
    padding: 40px 0;
    background-color: #fff;
}

.games-container .games-title {
    font-size: 2em;
    font-weight: bold;
    color: #171717;
    margin-bottom: 20px;
}

.games-images {
    display: flex;
    justify-content: center;
    gap: 50px;
}

/* Simplified Game Button */
.game-button {
    width: 300px;
    height: 225px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 15px;
}

.game-button img {
    width: 115%;
    height: 115%;
    object-fit: cover;
}

.game-button .game-name {
    position: absolute;
    color: white;
    font-size: 1.9em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.game-button:hover {
    transform: scale(1.05);
}

.game-button:hover .game-name {
    opacity: 1;
}

/* General Container Styles */
.container {
    padding: 40px 20px;
    margin: 00px 0;
    border-radius: 0px;
    font-family: 'Roboto', sans-serif;
    text-align: center; /* Center text and titles */
}

/* Dark Section */
.container-dark {
    background-color: #020914; /* Dark background */
    color: #f5f5f5; /* Light text */
}

/* Light Section */
.container-light {
    background-color: #f5f5f5; /* Light background */
    color: #020914; /* Dark text */
}

/* Title Styles */
.title-dark {
    font-size: 2.4em;
    font-weight: 300; /* Thin Roboto */
    color: #3, 3, 3; /* Light color for dark backgrounds */
    margin-bottom: 0px;
    text-align: center;
}

.title-light {
    font-size: 2.4em;
    font-weight: 300; /* Thin Roboto */
    color: #020914; /* Dark color for light backgrounds */
    margin-bottom: 0px;
    text-align: center;
}

/* Text Styles */
.text-dark {
    font-size: 1.1em;
    font-weight: 400; /* Normal Roboto */
    color: #f5f5f5; /* Light text for dark backgrounds */
    line-height: 1.5;
    text-align: center;
    max-width: 700px; /* Limit width to 600px */
    margin: 0 auto; /* Center the text horizontally */
}

.text-light {
    font-size: 1.1em;
    font-weight: 400; /* Normal Roboto */
    color: #171717; /* Dark text for light backgrounds */
    line-height: 1.5;
    text-align: center;
    max-width: 700px; /* Limit width to 600px */
    margin: 0 auto; /* Center the text horizontally */
}


.main-title{
    font-size: 3em;
    font-weight: 300; /* Thin Roboto */
    color: #26fbff; /* Dark color for light backgrounds */
    margin-bottom: 0px;
    text-align: center;
}
.main-subheader{
     font-size: 1.2em;
    font-weight: 600; /* Normal Roboto */
    color: #f5f5f5; /* Light text for dark backgrounds */
    line-height: 1.5;
    text-align: center;
    margin-top: 10px;
}

.banner-title{
font-size: 1.5em;
    font-weight: 400; /* Normal Roboto */
    color: #f5f5f5; /* Light text for dark backgrounds */
    line-height: 1.5;
    text-align: center;
}

.banner-text{
font-size: 1.5em;
    font-weight: 300; /* Normal Roboto */
    color: #f5f5f5; /* Light text for dark backgrounds */
    line-height: 1.5;
    text-align: center;
}

/* On hover, change the background color to a light shade while keeping text fully visible */
.login-btn:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light white background on hover */
}

.vf-icon {
    width: 128px;  /* Set the width to 128px */
    height: 128px; /* Set the height to 128px */
    object-fit: cover; /* Ensures the image maintains its aspect ratio without distortion */
    margin-bottom: 15px;
}


/* Styling for the user-info container */
.user-info {
    display: flex;
    align-items: center; /* Align text and button vertically */
    gap: 10px; /* Add space between the username and the logout button */
}

/* Styling for the user display text */
#user-display {
    font-size: 1rem; /* Adjust text size */
    color: #fff; /* White text color */
    font-weight: bold; /* Make text bold for emphasis */
}


/* For game pages */
/* Styling for the clickable banner link */
.banner-link {
    text-decoration: none; /* Remove the default underline */
    display: inline-block; /* Ensure it behaves like a block-level element while keeping the inline behavior */
}
/* Styling for iframe */
iframe {
    width: 100%;
    height: 1200px;
    border: none;
    padding-top: 170px;
    outline: none;
}

/* Prevent focus outline when iframe is active */
iframe:focus, .gameContainer:focus, #gameIframe:focus {
    outline: none !important;
    
}
/* Styling for the game container */
#gameContainer {
    width: 1280px;
    height: 720px;
    margin-top: 30px;
}

.comment-container {
    max-width: 1000px;
    margin: 0px auto;
    padding: 00px;
    /*background-color: #1e1e1e;*/
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* Stack content vertically */
    gap: 20px; /* Adjust spacing between child elements */
    position: relative;
}


/* Profile picture */
.comment-profilepic {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: -60px;
    border: 2px solid rgba(255, 255, 255, 0.1); /* Optional border for contrast */
    object-fit: cover; /* Ensures the image scales correctly */
    margin-top: 10px;
}

.comment-header {
    display: flex; /* Use flex for alignment */
    justify-content: flex-start; /* Ensure content aligns to the left */
    align-items: center; /* Align vertically */
    gap: 10px; /* Add space between username and time */
    margin-top: 25px;
}

.comment-username {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
        text-align: left; /* Ensure text alignment to the left */

}

.comment-timeago {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
    margin-left: 10px;
    display: inline-block;
}

.comment-text {
    margin: 0; /* Remove all margins */
    padding: 0; /* Remove padding */
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-align: left; /* Ensure text alignment to the left */
    line-height: 1.5; /* Improve readability with consistent line height */
    word-wrap: break-word; /* Prevent overflow */
}

/* Buttons common styling */
.comment-action-btn {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 24px; /* Adjust based on the icon size */
    height: 24px;
    border: none;
    background-color: transparent; /* Transparent background */
    cursor: pointer;
    display: inline-block;
    margin: 0; /* Ensure buttons have no margin */
    padding: 0; /* Remove default padding */
}

/* Like button */
.comment-likebtn {
    background-image: url('img/like_icon.png'); /* Replace with the actual image path */
}

/* Dislike button */
.comment-dislikebtn {
    background-image: url('img/dislike_icon.png'); /* Replace with the actual image path */
}

.comment-repliesbtn {
    background-image: url('img/comment_icon.png'); /* Icon image */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 20px;
    width: 24px;  /* Adjust the width to your desired size */
    height: 24px; /* Adjust the height to your desired size */
    border: none;
    cursor: pointer;
    filter: invert(37%) sepia(100%) saturate(591%) hue-rotate(151deg) brightness(74%) contrast(87%);
}

.reply-count{
        filter: invert(37%) sepia(100%) saturate(591%) hue-rotate(151deg) brightness(74%) contrast(87%);

}


/* Reply button */
.comment-replybtn {
    background-image: url('img/reply_icon.png'); /* Replace with the actual image path */
}

/* Align action buttons horizontally */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* Spacing between buttons */
    margin-top: 10px; /* Spacing above the buttons */
}



/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal container */
.modal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-sizing: border-box;
}



.reply-input-container {
    margin-top: 10px;
}

.reply-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 18 px;
    max-height: 200px;
    padding: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    resize: none; /* Disable mouse resizing */
    background-color: transparent;
    color: white;
}

.reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.char-count {
    font-size: 12px;
    color: #666;
}

.reply-submit-btn {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.reply-submit-btn:hover {
    background-color: #45a049;
}


.reply-submit-btn:hover {
    background-color: #45a049;
}

.replies-wrapper {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: 20px; /* Indent replies */
    border-left: 1px solid #4a4a4a; /* Soft dark grey */
}

.nested-reply {
    max-width: 90%; /* Adjust the width relative to the parent */
    margin-left: 5%; /* Indent replies slightly */
    /*background-color: #2a2a2a;  Slightly darker background to distinguish */
}

.close-replies-btn {
    position: absolute; /* Absolute positioning for placement */
    bottom: -15px; /* Align with the bottom */
    left: -15px; /* Align with the left */
    width: 30px;
    height: 30px;
    background-color: rgba(100, 100, 100, 0.9); /* Dark grey with slight transparency */
    border: none;
    cursor: pointer;
    padding: 0; /* Remove extra padding */
    border-radius: 50%; /* Circular button */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3); /* Slightly more pronounced shadow */
    display: flex; /* Align image inside the button */
    justify-content: center;
    align-items: center;
}

.close-replies-btn img {
    width: 70%; /* Scale the image inside the button */
    height: 70%;
    object-fit: contain; /* Ensure proper scaling */
    filter: sepia(50%) hue-rotate(-20deg) brightness(1.1) saturate(1); /* Soft red filter */
}


.close-replies-btn:hover {
    background-color: #d32f2f; /* Darker red on hover */
}
.comment-section{
    padding-bottom: 300px;
}

