/* Ensuring that the icon classes use the original Open Iconic font */
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.form-control {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.btn {
    margin-top: 1rem;
}


html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5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DI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.app-logo {
    width: 70px; /* Adjust width to make it wider */
    height: 35px; /* Height remains smaller to create an oval shape */
    border-radius: 50%; /* Creates the oval shape */
    object-fit: cover; /* Ensures the image fills the oval area without stretching */
    display: block; /* Make the image a block-level element */
    margin: 0 auto; /* Centers the logo horizontally */
    vertical-align: middle; /* Aligns the logo vertically with text */
    transform: translateY(-2px); /* Adjust vertical positioning */

}


/* Top navigation menu */
.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #15355a, #15355a); /* Gradient background */
    padding: 10px 20px;
    justify-content: space-between; /* Space out the items */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow effect */
}

.top-row a {
    color: #ffffff; /* White text color for links */
    text-decoration: none; /* Remove underline from links */
    margin: 0 15px; /* Space between links */
    font-weight: bold; /* Make the links bold */
    transition: color 0.3s ease; /* Smooth color transition */
}

.top-row a:hover {
    color: #ffd700; /* Change color on hover for a nice effect */
}

.top-row .login-display {
    margin-left: auto; /* Pushes the login display to the far right */
}

/*search icon on the top row navigation menu*/
.login-search-container {
    display: flex;
    align-items: center;
}

.search-icon-button {
    background-color: transparent; /* No background color */
    border: none; /* Remove default border */
    cursor: pointer; /* Show pointer cursor on hover */
    padding: 0; /* Remove padding */
    margin-left: 10px; /* Space between login display and search icon */
}

    .search-icon-button i {
        font-size: 20px; /* Size of the icon */
        color: #009999; /* Icon color */
    }


/* The EN icon (Language preference) on the top row nav menu */
.nav-icon-list {
    display: flex;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.translate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Adjust width to fit design */
    height: 30px; /* Adjust height to fit design */
    border: 1px solid #ddd; /* Light border to match your theme */
    border-radius: 5px; /* Slight rounding for the square shape */
    background-color: transparent; /* Transparent background */
    margin-right: 10px; /* Space between elements */
    cursor: pointer; /* Indicates clickable element */
    font-size: 14px; /* Font size for "en" text */
    color: #ffffff; /* White text color */
}

    .translate:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent hover effect */
        border-color: #ccc; /* Change border color on hover */
    }

    /*The + icon css near the EN icon on the top row nav menu*/
.plus-icon-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 20px; /* Add space between icons */
}

.plus-icon-button {
    background: none; /* Transparent background */
    border: none;
    font-size: 16px; /* Adjust icon size as needed */
    cursor: pointer;
    color: white; /* White color for the plus icon */
    margin-right: 10px; /* Space between plus icon and message */
}

.info-message {
    display: none; /* Hidden by default */
    position: absolute;
    left: 100%; /* Position it to the right of the plus icon */
    margin-left: 10px; /* Adjust spacing from the icon */
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    white-space: nowrap; /* Prevent message from wrapping */
}

/*Body */
body {
    background-image: url('check2.jpg'); /* Path to your background image */
    background-size: cover; /* Cover the entire viewport */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent repeating the image */
    background-attachment: fixed; /* Keep the background fixed during scroll */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    height: 100vh; /* Full viewport height */
    display: flex; /* Use flexbox for centering content */
    flex-direction: column; /* Stack content vertically */
}

.nav-container {
    display: flex;
    justify-content: left;
    flex-grow: 1;
    transform: translateX(80px);
}

.nav-container a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}
/* For logout - Logout button styling */
.logout-button {
    color: #ffffff; /* White text color */
    background: none; /* Remove button background */
    border: none; /* Remove button border */
    font-weight: bold; /* Bold text */
    margin: 0 15px; /* Space between other elements */
    padding: 5px 10px; /* Padding for the button */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    cursor: pointer; /* Change cursor to pointer on hover */
}

.logout-button:hover {
    color: #ffd700; /* Change text color on hover */
    background-color: rgba(255, 255, 255, 0.2); /* Light background on hover */
}

/* For sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    background-color: #87CEFA; /* Light blue color for sidebar background */
}

/* Ensure the nav section takes all available space, pushing footer down */
nav {
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
}

/* Style for the footer section */
.footer-section {
    margin-top: auto; /* Push footer to the bottom */
    padding: 10px 0; /* Add padding for spacing */
    border-top: 1px solid #ccc; /* Optional border for separation */
}

/* Style for nav links in footer */
.footer-section .nav-item .nav-link {
    display: flex;
    align-items: center;
}

.footer-section .nav-item .nav-link span {
    margin-right: 5px; /* Space between icon and text */
}

.header-background {
    position: relative;
    background-image: url('/Photo2.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 0;
    margin-top: -20px; /* Adjust this based on your navigation bar height */
    z-index: 1;
}

.header-content {
    padding-left: 265px;
    color: white;
    z-index: 2; /* Make sure the content is above the background */
    position: relative;
}

.header-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Optional: Adds a dark overlay for better text visibility */
    z-index: 1;
}

/* Ensure the next section is unaffected by the background */
section {
    position: relative;
    z-index: 3;
    background-color: inherit;
}

/* Search bar container alignment */
.search-bar-container {
    max-width: 995px;
    margin: 0 auto; /* Centers the search bar container */
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-4%);
}

/*PublicHomepage search results display by thumbnails css*/
/* Container for the grid of movies */

.poster-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 200px; /* Adjust the width as needed */
    height: auto;
    border: 1px solid #ccc; /* Optional: for visual debugging */
    border-radius: 5px;
    overflow: hidden;
   /* background: linear-gradient(to right, red, orange);*/ /* Optional: to match the movie-card background */
}

.movie-poster {
    position: relative;
    width: 100%;
}

.movie-poster-image {
    width: 100%;
    height: auto;
    display: block;
}

.rating-circle-container {
    position: absolute;
    bottom: 10px; /* Moved 10 times further down */
    right: 10px; /* Position it from the right */
    width: 60px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    display: flex;
    justify-content: center;
    align-items: center;
}


.rating-circle {
    width: 100%;
    height: 80%;
    background-color: darkgrey;
    border-radius: 50%; /* Oval shape achieved with different width/height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: red;
    text-align: center;
    border: 5px solid orange;
}

    .rating-circle .fill {
        background-color: #3498db; /* Change this color to your preference */
        border-radius: 50%;
        clip: rect(0, 100%, 100%, 0);
        position: absolute;
        top: 0;
        left: 0;
        transition: all 1s ease;
    }

    .rating-circle span {
        position: relative;
        z-index: 1; /* Ensure text is on top of the circle */
        text-decoration: none; /* Ensure no underline */
    }

.rating-tooltip {
    visibility: hidden;
    width: 100px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    bottom: 60px; /* Position the tooltip above the circle */
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.rating-circle-container:hover .rating-tooltip {
    visibility: visible;
    opacity: 1;
}

.card-body {
    padding: 15px;
    background-color: #fff;
    color: black; /* Text color for better contrast */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content in the card */
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center; /* Center-align text */
}

.card-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center; /* Center-align text */
}

/* Additional styles for your movie grid and cards */
.movie-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.movie-card {
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(to right, red, orange);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .movie-card:hover {
        transform: scale(1.05);
    }

.movie-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content in the details section */
}

.movie-title {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    text-align: center; /* Center-align text */
}

.movie-release-year {
    font-size: 0.9rem;
    color: #666;
    text-align: center; /* Center-align text */
}

body {
    font-family: 'Source Sans 3', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Sans 3', sans-serif;
}

