/*
Theme Name: Blackoot Child
Theme URI: https://strype.uk/
Description: A child theme for My Theme
Author: Samuel Kingston
Author URI: https://strype.uk/
Template: blackoot-lite
Version: 1.0
*/

/* Custom CSS from the original theme */
.parcel-label h2 {
    text-align: center;
    margin-bottom: 15px;
}
.parcel-label div {
    margin-bottom: 10px;
}
.parcel-label .qr-code {
    width: 400px;
    border: 1px solid #000;
    padding: 20px;
    margin: 20px auto;
    text-align: right;
    float: right;
}

#print-label {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
}
#print-label:hover {
    background: #0056b3;
}

.qr-code {
    text-align: center;
    margin-top: 10px;
}

.qr-code img {
    width: 150px;
    height: 150px;
}

.parcel-section {
    display: flex;
    flex-wrap: wrap;
    /*gap: 20px; /* Spacing between columns */
    margin: 20px 0;
}

.parcel-content {
    margin: 20px;
}

/* Flex container for From and To Address */
.parcel-row {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    /*gap: 20px; /* Adds spacing between columns */
    margin-bottom: 20px;
}

/* Flex items for each column */
.parcel-column {
    flex: 1 1 calc(50% - 20px); /* Two equal columns with spacing */
    box-sizing: border-box; /* Prevent padding from breaking layout */
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* Single-column layout for small screens */
@media (max-width: 780px) {
    .parcel-column {
        flex: 1 1 100%; /* Full width */
    }
}

.label-title h1 {
    text-align: center; /* Centers the H1 text */
    font-size: 2.5rem; /* rem scales the size from that defined by H1 globally */
    font-weight: inherit; /* Keeps the weight defined by H1 globally */
    margin: 20px 0; /* Adds some spacing */
    line-height: 1; /* Matches the global line height */
}

/*Code for Forms*/
form {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
}

form label {
    font-size: inherit;
		font-weight: inherit;
    display: block;
    margin-bottom: 5px;
}

form input[type="text"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

form button {
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

form button:hover {
    background-color: #005177;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-top: 20px;
}

/*For Popup*/
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}


.popup-content h2 {
    margin-top: 0;
}

#close-popup {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-popup:hover {
    background-color: #0056b3;
}


/*For Parcel Events*/
.parcel-events {
    list-style-type: none;
    padding: 0;
}

.parcel-events li {
    background: #f9f9f9;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Generic Button Styling */
.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #007bff; /* Primary blue color */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover State */
.button:hover {
    background-color: #0056b3; /* Darker blue */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Active State */
.button:active {
    background-color: #004085; /* Even darker blue */
    transform: scale(0.95); /* Slight press effect */
}

/* Disabled Button */
.button:disabled {
    background-color: #c0c0c0; /* Light grey for disabled */
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

form select,
form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

form select {
    background-color: #2e2e2e; /* Match the dark background of the "Your Name" input */
    color: #fff; /* White text color */
    appearance: none; /* Remove default styling for dropdown */
    -webkit-appearance: none; /* For Safari */
    -moz-appearance: none; /* For Firefox */
}

form input[type="text"] {
    background-color: #2e2e2e; /* Ensure both fields have the same background */
    color: #fff;
}

.print-label-text {
    text-align: left; /* Centers the H1 text */
    font-size: 1.2rem; /* rem scales the size from that defined globally */
    font-weight: inherit; /* Keeps the weight defined by H1 globally */
    margin: 20px 0; /* Adds some spacing */
    line-height: 1; /* Matches the global line height */
}

.button-container-centered {
    text-align: center;
    margin: 20px; /* Adds padding around the button container */
}

/*User Parcel Entry Form*/
#create-parcel-form {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#create-parcel-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#create-parcel-form textarea, 
#create-parcel-form select, 
#create-parcel-form button {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
}

#create-parcel-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#create-parcel-form button:hover {
    background-color: #0056b3;
}

/* Form on QR Scan*/
#parcel-transfer-form {
    display: none; /* Hidden by default */
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#parcel-transfer-form h2 {
    font-size: 18px;
    margin-bottom: 10px;
}
