/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header Styles */
.news-header {
    background-color: #003366; /* Dark Blue */
    color: white;
    padding: 20px 0;
    position: relative;
    top: 0;
    z-index: 1;
}

.news-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-header h1 {
    font-size: 2em;
}

.news-header nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.news-header nav a:hover {
    color: #e74c3c; /* Accent color */
}

/* Container for Articles */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Article Styles */
.news-article {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-article h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.article-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.read-more {
    background-color: #e74c3c; /* Accent Color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.read-more:hover {
    background-color: #c0392b; /* Darker Red */
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%; /* Change this for a responsive modal width */
    max-width: 600px; /* Maximum width to fit larger screens */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the content horizontally */
}

.publisher-logo {
    width: 200px; /* Larger size for visibility */
    margin-bottom: 15px;
}

/* Modal Header */
.modal-header {
    text-align: center;
    font-size: 18px;
    padding-bottom: 10px;
}

/* Subscription Options */
.modal-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    justify-content: center;
    text-align: center;
    font-size: .8em;
}

.option {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: center;
    text-align: center;
}

.option h3 {
    color: #333;
    margin-bottom: 10px;
    justify-content: center;
    text-align: center;
}

.option p {
    color: #666;
    margin-bottom: 15px;
    justify-content: center;
    text-align: center;
}

/* Button Styles */
.btn-primary {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-content: center;
    text-align: center;
}

.btn-primary:hover {
    background-color: #c0392b; /* Darker Red */
}

.btn-secondary {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
    justify-content: center;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #2980b9; /* Darker Blue */
}

/* Modal Footer */
.modal-footer {
    padding-top: 20px;
    text-align: center;
}

.unlock-media-logo {
    width: 100px; /* Adjust width as needed */
    height: auto; /* Keeps the aspect ratio */
    margin-left: 10px; /* Adds some space between the text and the logo */
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark background */
    display: none; /* Initially hidden */
    z-index: 10; /* Sit above other content */
}

/* Ad Modal */
#adModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20; /* Sit above the overlay */
    background: white; /* Optional: background for ad modal */
    padding: 20px; /* Optional: some padding */
    border-radius: 8px; /* Optional: rounded corners */
    text-align: center; /* Center content */
    overflow: visible; /* Ensure overflow is visible */
    width: 80%; /* Set width of the modal to 80% of the viewport */
    max-width: 800px; /* Maximum width for larger screens */
    height: auto; /* Automatically adjust height based on content */
}

#adVideoPlayer {
    width: 100%; /* Make the video player take the full width of the modal */
    height: auto; /* Automatically adjust height to maintain aspect ratio */
    max-height: 450px; /* Optional: set a maximum height for the video */
}


/* Additional CSS for prominent option */
.prominent-option {
    background-color: #f0f0f0; /* Light grey background */
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0; /* Space around the option */
    text-align: center; /* Center text */
    width: calc(100% - 40px); /* Full width minus padding */
    max-width: 500px; /* Maximum width */
    margin-left: auto; /* Centering */
    margin-right: auto; /* Centering */
}

.prominent-btn {
    display: block; /* Make the button a block element to center it */
    margin: 0 auto; /* Center the button */
}

.prominent-option small {
    display: block; /* Ensure small text is on a new line */
    margin-top: 10px; /* Space between button and small text */
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Styles for the Payment Modal */
.modal-content {
    padding: 20px; /* Adjust padding as necessary */
}

/* Stripe Element Styles */
.StripeElement {
    box-sizing: border-box;
    height: 40px; /* Adjust height as needed */
    padding: 10px; /* Add some padding */
    border: 1px solid #ccc; /* Border color */
    border-radius: 4px; /* Rounded corners */
    background-color: #fff; /* Background color */
    transition: border-color 150ms ease; /* Transition for border color */
    margin-bottom: 20px; /* Space below each input field */
}

/* Change border color on focus */
.StripeElement:focus {
    border-color: #4CAF50; /* Green border on focus */
    outline: none; /* Remove outline */
}

/* Error message styling */
.StripeElement--invalid {
    border-color: #fa755a; /* Red border for invalid input */
}

.StripeElement--complete {
    border-color: #4CAF50; /* Green border for valid input */
}

/* Optional: Button styling */
button {
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 10px 20px; /* Some padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    margin-top: 10px; /* Space above the button */
}

button:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Styles for the Payment Modal */
#payment-modal {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Align items to stretch */
}

#payment-form {
    width: 100%; /* Ensure full width for the payment form */
    align-items: center; /* Center contents of the form */
}

/* Credit Card Input Styles */
#card-element {
    margin-bottom: 20px; /* Space below the card element */
}

/* Error message for card input */
#card-errors {
    color: red; /* Error message color */
    margin-bottom: 10px; /* Space below the error message */
}

.btn-secondary {
    background-color: #3498db; /* Adjust to your liking */
    color: white;
    display: inline-block; /* Ensure buttons are inline block */
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #2980b9; /* Darker shade for hover effect */
}
