/*
Theme Name: ValidateBP
Theme URI: https://validatebp.org/
Author: Vokal
Author URI: https://www.vokal.io/
Description: Custom WordPress theme for ValidateBP
Tags: custom-theme, react.js
Version: 2023
Requires at least: 5.2
Tested up to: 6.1
Requires PHP: 7.0
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: validatebp
*/


@font-face {
    font-family: 'Open Sauce Sans';
    font-weight: 400;
    /* Normal weight (Regular) */
    font-style: normal;
    /* Normal font style (non-italic) */
    src: url('fonts/OpenSauceSans-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sauce Sans';
    font-weight: 600;
    /* SemiBold weight */
    font-style: normal;
    /* Normal font style (non-italic) */
    src: url('fonts/OpenSauceSans-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sauce Sans';
    font-weight: 700;
    /* Bold weight */
    font-style: normal;
    /* Normal font style (non-italic) */
    src: url('fonts/OpenSauceSans-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sauce Sans';
    font-weight: 400;
    /* Normal weight (Regular) */
    font-style: italic;
    /* Italic font style */
    src: url('fonts/OpenSauceSans-Italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sauce Sans';
    font-weight: 700;
    /* Bold weight */
    font-style: italic;
    /* Italic font style */
    src: url('fonts/OpenSauceSans-BoldItalic.woff2') format('woff2');
}

html,
body,
input,
input::placeholder {
    font-family: 'Open Sauce Sans', Arial, sans-serif;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
}

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

.container,
main {
    width: 95%;
    margin: auto;
}

main {
    margin-top: 52px;
}

button {
    cursor: pointer;
}

/* Header CSS */

header {
    border-bottom: 1px solid #000000;
}

.header-left a.custom-logo-link img {
    width: 132px;
    height: 100px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.header-left img {
    max-width: 100%;
    height: auto;
}

.header-right {
    display: flex;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 40px;
    font-size: 16px;
    font-weight: 600;
}

nav ul li:last-child {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
}

.submit-device-btn {
    background-color: #4eb7f8;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.share-icon {
    margin-left: 5px;
    cursor: pointer;
}

ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    width: max-content;
    min-width: 100%;
    border-radius: 8px;
}

li.menu-item {
    position: relative;
}

nav ul li:hover ul.sub-menu {
    display: block;
    z-index: 999;
}

ul.sub-menu {
    box-shadow: 0px 8px 16px 0px #00000009;
    padding-top: 13px;
    padding-bottom: 8px;
}

ul.sub-menu li {
    padding: 5px;
    margin: auto;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
}

.header-right nav .mobile-nav-header {
    display: none;
}

header #open-menu {
    display: none;
}

/* Media Query for Mobile */
@media screen and (max-width: 768px) {
    .header-left img {
        width: 100px;
        height: 75px;
    }

    .header-right {
        display: none;
        max-height: 0;
        height: 100vh;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 90;
        overflow: hidden;
        position: fixed;
        background-color: #fff;
    }

    .header-right.mobile-menu {
        display: flex;
        max-height: 100vh;
    }

    header #open-menu {
        display: block;
    }

    header button {
        background-color: transparent;
        outline: none;
        border: none;
        padding: 5px;
    }


    .header-right nav {
        display: flex;
        flex-direction: column;
        height: 100vh;
        width: 100%;
    }

    .header-right nav .mobile-nav-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: calc(100% - 60px);
        padding: 30px 40px;
    }

    .header-right nav .menu-header-nav-menu-container {
        overflow: auto;
        position: relative;
        height: 100vh;
    }

    .header-right nav .mobile-nav-header>.mobile-menu-title {
        font-size: 1.8rem;
        font-weight: 500;
    }

    .header-right nav ul#menu-header-nav-menu {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
        padding: 40px 0;

    }

    .header-right nav ul#menu-header-nav-menu li {
        font-size: 2rem;
    }

    .header-right nav ul#menu-header-nav-menu li.active a::before {
        content: ' ';
        display: inline-block;
        left: 0;
        border-radius: 0 40px 40px 0;
        position: absolute;
        width: 40px;
        height: 80px;
        background-color: #4EA6DD;
        margin-left: -20px;
        margin-top: -20px;
    }

    .header-right nav ul#menu-header-nav-menu .submit-device-btn {
        background-color: transparent;
        color: #333;
        font-size: 2rem;
        border: none;
        padding: 0;
        font-weight: 600;
        font-family: 'Open Sauce Sans';
    }

    .header-right nav ul#menu-header-nav-menu .submit-device-btn:hover {
        color: #4EA6DD;
    }

    nav ul li:hover ul.sub-menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 10px;
    }

    nav ul li:hover ul.sub-menu li {
        margin: 0;
        font-size: 1.5rem !important;
    }
}

/* Main Banner Content */

.banner {
    min-height: 300px;
    width: 100%;
    background-color: #4eb7f8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.banner-content {
    text-align: center;
}

h1 {
    font-size: 54px;
    font-weight: 500;
    margin: 0;
    padding: 10px;
    color: #121212;
}

h3 {
    font-size: 34px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 38px;
}

p {
    font-size: 16px;
    font-weight: 400;
    margin: 16px 0;
    color: #605F5F;
    line-height: 26px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
}

/* footer css */
.row {
    display: flex;
    flex-direction: row;
}

.column {
    display: flex;
    flex-direction: column;
}

footer {
    background-color: #fafafb;
    padding-top: 72px;
    padding-bottom: 32px;
    margin-top: 40px;
}

footer>div:first-child {
    justify-content: space-between;
}

footer>.newsletter-section-container {
    padding-bottom: 20px;
}

.newsletter {
    width: 400px;
}

.footer-links-row {
    gap: 120px;
    padding: 0 20px;
}

.footer-link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newsletter>form {
    justify-content: space-between;
    border-bottom: 1px solid black;
    align-items: center;
    padding: 10px 0px;
}

.newsletter>form>div {
    align-items: center;
}

.newsletter>form>div>input {
    border: none;
    background-color: #fafafb;
    margin-left: 10px;
}

.newsletter button {
    border: none;
    background-color: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #121212;
    line-height: 28px;
}

.newsletter>form>input::placeholder {
    color: #807e7e;
    font-size: 16px;
    font-weight: 500;
    line-height: 26px;
}

.footer-link h3 {
    font-size: 14px;
    font-weight: 800;
    line-height: 24px;
    color: #121212;
}

.footer-link>ul {
    list-style-type: none;
    margin: 12px 0;
    padding: 0;
}

.second-link-list {
    margin-right: 0px !important;
}

.footer-link>ul>li {
    padding-bottom: 12px;
    font-weight: 100;
    font-size: 16px;
}

.footer-link ul li a {
    text-decoration: none;
    color: #3e3e59;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

.wrap {
    flex-wrap: wrap;
}

.cookies {
    background: #ffffff;
}

.cookies>div {
    padding: 30px 30px 5px 30px;
}

.cookies>div>p {
    font-size: 14px;
    line-height: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.cookies>div>h3 {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    margin: 0;
    padding: 0;
    line-height: 24px;
}

.on-off-button {
    margin-right: 45px;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.on-off-button>span {
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    color: #000000;
    margin: 0;
}

.on-off-button>a {
    text-decoration: none;
    color: #605f5f;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    margin-bottom: 0px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 1px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: black;
    margin-bottom: 0px;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196f3;
    margin-bottom: 0px;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.cookies-button {
    background-color: white;
    border: none;
    color: black;
    padding: 10px 50px;
    border-radius: 50px;
    font-size: 16px;
    margin: 8px 2px;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid #4EA6DD;
}

.cookies-button.active {
    background-color: #4EA6DD;
}

.copy-right>p {
    font-size: 12px;
    line-height: 22px;
    font-weight: 400;
    margin: 40px 0;
    padding: 0 20px;
    color: #807E7E;
}

.copy-right span {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: #3E3E59;
}

.newsletter .email-row,
input.email {
    flex-grow: 1;
}

@media only screen and (max-width: 1024px) {
    .cookies .on-off-buttons-container {
        gap: 20px;
    }

    .newsletter {
        width: auto;
    }

    .footer-links-row {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 20px;
        width: 100%;
    }

}

@media only screen and (max-width: 769px) {
    footer>div:first-child {
        flex-wrap: wrap;
        justify-content: center;
    }

    .newsletter {
        width: 400px;
    }

    .footer-links-row {
        justify-content: flex-start;
    }

    .newsletter-section-container {
        justify-content: flex-start !important;
    }

    .newsletter {
        margin: 20px 0;
        padding: 0 20px;
        justify-content: flex-start;
    }

    .cookies {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookies .on-off-buttons-container {
        flex-direction: column;
        gap: 20px;
    }

    .cookies .cookies-buttons-container {
        width: 100%;
        max-width: 320px;
    }

    .cookies>div {
        padding: 10px 30px;
    }


}

@media screen and (max-width: 480px) {
    .newsletter>form {
        display: flex;
        flex-direction: column;
        border-bottom: none;
    }

    .newsletter>form>div {
        width: 100%;
        border-bottom: 1px solid black;
        padding: 10px 0;
    }

    .newsletter>form>button {
        background-color: #4EA6DD;
        border-radius: 24px;
        padding: 12px 24px 12px 24px;
        width: 100%;
        font-size: 16px;
        font-weight: 600;
        line-height: 19.79px;
        color: #000000;
        font-family: 'Open Sauce Sans';
        border: 0;
        margin-top: 20px;
    }

    .footer-links-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }
}

/*  */

.bg-gray {
    background-color: #F5F5F5;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: transparent;
    margin: 15% auto;
    padding: 20px;
}

.modal-content .qrcode-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.modal-content .qrcode-container #qrcode {
    text-align: center;
}

.modal-content .qrcode-container .download-button {
    background-color: #4eb7f8;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

#qrCodeModal {
    z-index: 9999999999;
}

#qrCodeContainer img {
    margin: auto;
}

.copy-feedback {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    align-items: center;
}

.checkmark {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 5px;
}

.show-feedback {
    display: flex;
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

a:hover {
    color: rgba(16, 122, 188, 0.94);
}

a.ga-btn {
    color: rgba(78, 166, 221, 0.94);
    text-decoration: underline;
}

.entry-header {
    background-color: #3498db;
    padding: 20px;
    text-align: center;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.entry-title {
    font-size: 28px;
    margin: 0;
    padding: 10px;
    border: 2px solid white;
    border-radius: 5px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out;
}

.entry-title:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 30px;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.sitemap-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sitemap-item:hover {
    transform: translateY(-5px);
}

a.sitemap-link {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sitemap-link:hover {
    color: #4eb7f8;
}

@media (max-width: 1025px) {
    .sitemap-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

#terms-of-use,
#privacy-policy,
#code-of-conduct {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 30px;
    padding-top: 0;
}

.banner h1 {
    color: #fff;
}

#terms-of-use h1,
#privacy-policy h1,
#code-of-conduct h1 {
    -ms-flex-item-align: center;
    align-self: center;
    font-size: 20px;
    line-height: 24px;
    text-decoration: underline;
}

#terms-of-use p,
#privacy-policy p,
#code-of-conduct p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 20px;
}

#terms-of-use ul,
#privacy-policy ul,
#code-of-conduct ul {
    list-style-type: disc;
    padding-left: 20px;
}

.share-twitter-item:hover,
.share-facebook-item:hover {
    cursor: pointer;
}

#share-device ul.sub-menu {
    display: block;
    position: relative;
    list-style: none;
    left: 0;
    box-shadow: none;
    width: 100%;
    text-align: center;
}

#share-device ul.sub-menu a {
    font-size: 20px;
    text-decoration: none;
    color: #333
}

#share-device ul.sub-menu a:hover {
    color: rgba(78, 166, 221, 0.94);
}

div:has(>.info_text) .info_text {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

div:has(>.info_text) .info_text .text {
    visibility: hidden;
    min-width: 120px;
    max-width: 240px;
    background-color: black;
    color: #fff !important;
    text-align: left;
    padding: 10px !important;

    /* Position the tooltip */
    position: fixed;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s;
}

div:has(>.info_text) .info_text .text::after {
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    /* To the left of the tooltip */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

div:has(>.info_text) .info_text.visible .text {
    visibility: visible !important;
    opacity: 1 !important;
}

.header-left .title {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-self: flex-start;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    text-transform: uppercase;
    color: #4eb7f8;
}

.header-left .title>.small {
    font-size: 15px;
    line-height: 30px;
    white-space: nowrap;
}

.header-left .title>.medium {
    font-size: 19px;
    line-height: 30px;
}

.header-left .title>.large {
    font-size: 27px;
    line-height: 30px;
    white-space: nowrap;
}

.header-left .title>.light {
    font-weight: 600;
}

.header-left .title>.regular {
    font-weight: 600;
}

.header-left .title>.bold {
    font-weight: 700;
}

.header-left .title>.white {
    color: #333;
}
