/* Base Styles */
* {
    padding: 0;
    margin: 0;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

html, body {
    min-height: 100% !important;
    height: 100%;
}

/* App Container */
.App {
    text-align: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-image: url('../images/worldfiber.jpg');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    height: 100vh;
    min-height: 100vh;
}

/* Blurer Container */
.blurer {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    background-color: rgba(0,0,0,0.6);
    width: 100% !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-top: 5%;
    min-height: 100%;
    overflow: scroll;
    overflow-x: hidden;
    align-items: center;
}

/* Form Section */
.container {
    height: 100%;
    background-position-x: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: 1s ease-in-out slideOnStartRight forwards;
    overflow: hidden;
    width: 100% !important;
    padding-right: unset !important;
    padding-left: unset !important;
}

.is-shown {
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    animation: 1s ease-in-out slideOnStartLeft;
    padding: 2%;
}

/* Main Title */
.main-title {
    color: white !important;
    font-size: 50px;
    align-self: center;
    font-family: 'Rubik', 'Roboto', sans-serif;
}

/* Main Paragraph */
.main-paragraph {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(var(--bs-gutter-y) * -1);
    direction: rtl;
    color: white;
    font-size: 18px;
}

/* Form Styles */
.form-div {
    flex: auto !important;
    margin-bottom: 10%;
}

.inputrow {
    direction: rtl;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    --bs-gutter-x: unset !important;
    flex: 0 !important;
    margin: unset !important;
}

.col {
    width: 100%;
    margin: auto;
}

/* Form Labels */
.form-label {
    color: white;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
}
.mb-3 {width:100%;}
/* Form Select */
.form-select {
    background-color: rgba(0,0,0,1) !important;
    color: hsl(0, 0%, 100%) !important;
    width:100%;
    border-radius: 0px !important;
    border: 0px !important;
    border-bottom: 2px solid rgba(255,255,255,0.5) !important;
    background-position: left .7em top 50%, 0 0 !important;
    background-size: 1rem !important;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 16 16' width='20' height='20' stroke='currentColor' stroke-width='0' xmlns='http://www.w3.org/2000/svg'><g><path d='M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z' fill='white'/></g></svg>") !important;
}

.form-select:focus {
    outline: 0px !important;
    box-shadow: none !important;
    border-bottom: 2px solid rgba(255,255,255,0.8) !important;
}

/* Select2 Custom Styling */
.select2-container {
    width: 100% !important;
    direction: rtl;
}

.select2-container--bootstrap-5 .select2-selection {
    background-color: rgba(0,0,0,1) !important;
    border: 0px !important;
    border-bottom: 2px solid rgba(255,255,255,0.5) !important;
    border-radius: 0px !important;
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: auto;
    padding: 0;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: white !important;
    line-height: 38px;
    padding-right: 20px;
    padding-left: 40px;
    font-size: 16px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: auto;
    left: 8px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: white transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent white transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--bootstrap-5 .select2-selection--single:focus {
    outline: none;
    border-bottom: 2px solid rgba(255,255,255,0.8) !important;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: rgba(0,0,0,0.5) !important;
    opacity: 0.6;
}

.select2-dropdown {
    background-color: #154c79 !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 4px;
    direction: rtl;
}

.select2-results__option {
    color: white !important;
    padding: 8px 12px;
    direction: rtl;
    text-align: right;
}

.select2-results__option--highlighted {
    background-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

.select2-results__option[aria-selected=true] {
    background-color: rgba(255,255,255,0.2) !important;
}

.select2-search--dropdown .select2-search__field {
    background-color: rgba(0,0,0,0.5) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px;
    padding: 6px 12px;
    direction: rtl;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6) !important;
}

.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: rgba(255,255,255,0.7) !important;
}

/* Buttons */
.btn-primary {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    border-radius: 0px !important;
    font-weight: bolder;
    font-family: 'Roboto', sans-serif;
    margin-top: 1%;
    font-size: 20px !important;
    width: 100%;
    color: white !important;
}

.btn-primary:focus {
    outline: none !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.street-button {
    background-color: rgb(0,2,44) !important;
    border: 0px !important;
    border-radius: 20px !important;
    margin: 1em;
    width: -webkit-fill-available;
    color: white !important;
}

.street-button:hover {
    background-color: rgba(0,2,44,0.8) !important;
}

/* Loading Spinner */
.loading-spinner, .loading-spinner-hidden {
    margin: 1% !important;
    height: 32px !important;
    width: 32px !important;
}

.loading-spinner-hidden {
    opacity: 0;
}

/* Error Message */
.error-message {
    color: red;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    direction: rtl;
    margin-bottom: 1rem;
}

/* Copyright */
.copyright {
    color: white;
    margin: auto;
    margin-top: 2%;
    font-size: 15px;
    font-weight: normal;
    background: transparent !important;
    border: unset;
}

.bold {
    font-weight: bolder !important;
}

.footer-paragraph {
    width: 100%;
    color: whitesmoke;
    font-weight: lighter !important;
}

.mp-bold {
    margin: 0% 2% !important;
    font-size: 12px !important;
    font-weight: bolder;
}

/* Abdev Logo */
.abdev {
    height: 6vh;
    margin-bottom: 2vh;
}

/* Results Section */
.results {
    margin: auto;
    position: absolute;
    width: 90%;
}

.results-container {
    background-color: rgba(255,255,255,0.2);
    border-radius: 50px;
    border: 0px solid;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    padding: 2%;
    animation: 1s ease-in-out slideOnStartLeft;
    align-self: center;
    margin: auto;
    position: relative;
}

.upper-row, .lower-row {
    margin: 1% !important;
}

.result-box {
    background-color: rgba(255,255,255,0.4);
    border-radius: 35px;
    margin: 1% !important;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.bezeq {
    background-color: rgba(27,37,77,0.8);
}

.cellcom {
    background-color: rgba(144,48,143,0.8);
}

.hot {
    background-color: rgba(254,0,0,0.8);
}

.company-logo-circle {
    display: flex;
    justify-content: center;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.9);
    align-self: center;
    margin-top: 2em;
}

.company-logo {
    width: 70%;
    justify-self: center;
    align-self: center;
    object-fit: fill;
}

.result-paragraph {
    direction: rtl;
    margin-top: 1em;
    color: white;
}

.result-paragraph.success {
    color: white;
}

.new-test {
    padding: 2%;
    border: 2px solid !important;
    background-color: rgba(33,0,70,0.9);
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 25px;
    margin: 2%;
    animation: 1s ease-in-out 0s 1 slideOnStartBottom;
    position: relative;
    border-color: rgba(255,255,255,0.5) !important;
}

.new-test:hover {
    background-color: rgba(33,0,70,1);
}

/* Privacy Modal */
.privacy {
    position: absolute;
    width: 90%;
    top: 0px;
    height: 100vh;
}

.privacy-container {
    background-color: rgba(255,255,255,1);
    border-radius: 50px;
    border: 0px solid;
    display: flex;
    flex-direction: column;
    padding: 1%;
    animation: 1s ease-in-out slideOnStartTop;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    height: 90%;
    position: relative;
    color: black;
}

.privacy-content {
    overflow: scroll;
    overflow-x: hidden;
}

.privacy-content::-webkit-scrollbar {
    width: 15px;
}

.privacy-content::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

.privacy-content::-webkit-scrollbar-thumb {
    background-image: linear-gradient(45deg, #00aeff, #a68eff);
    border-radius: 10px;
    -webkit-box-shadow: rgba(0,0,0,.12) 0 3px 13px 1px;
}

.exit-privacy {
    background-color: transparent;
    border: unset;
    font-size: 30px;
    text-align: left;
    margin: 2%;
    color: black;
    cursor: pointer;
}

.exit-privacy:hover {
    color: #666;
}

.privacytxt {
    direction: rtl;
    text-align: right;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: auto;
    background-color: rgba(255,255,255,0.75);
    border-radius: 20px;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: rgba(255,255,255,0.3);
    border-radius: 25px !important;
    border: 0px solid !important;
    -webkit-backdrop-filter: blur(2px) !important;
    backdrop-filter: blur(2px) !important;
    outline: 0;
}

.modal-header {
    border-bottom: 2px solid rgba(255,255,255,0.2) !important;
    padding: 1rem;
}

.modal-title {
    direction: rtl;
    color: black !important;
    margin: 0;
}

.modal-body {
    padding: 1rem;
    direction: rtl;
}

/* Loader Animation */
@property --a {
    initial-value: 0deg;
    inherits: false;
    syntax: '<angle>';
}

@property --h {
    initial-value: 0;
    inherits: false;
    syntax: '<number>';
}

.loader {
    color: #fff !important;
    font-size: 20px !important;
    --charge: hsl(var(--h, 0), 80%, 50%) !important;
    -o-border-image: conic-gradient(var(--charge) var(--a), transparent calc(var(--a) + 0.5deg)) 20 !important;
    border-image: conic-gradient(var(--charge) var(--a), transparent calc(var(--a) + 0.5deg)) 20 !important;
    -webkit-animation: load 2s infinite ease-in-out !important;
    animation: load 2s infinite ease-in-out !important;
}

@-webkit-keyframes load {
    0%, 10% {
        --a: 0deg;
        --h: 0;
    }
    100% {
        --a: 360deg;
        --h: 100;
    }
}

@keyframes load {
    0%, 10% {
        --a: 0deg;
        --h: 0;
    }
    100% {
        --a: 360deg;
        --h: 100;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media only screen and (min-width: 768px) {
    .App {
        text-align: center;
        background: rgb(0,2,44);
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        overflow: hidden;
        background-image: url('../images/worldfiber.jpg');
        background-size: cover;
        background-position: right;
        background-repeat: no-repeat;
    }
    
    .results-container {
        width: 50%;
        background-color: rgba(255,255,255,0.3);
        border-radius: 50px;
        border: 0px solid;
        display: flex;
        flex-direction: column;
        padding: 2%;
        animation: 1s ease-in-out slideOnStartTop;
        align-self: center;
        backdrop-filter: blur(20px);
    }
    
    .privacy-container {
        width: 40%;
        background-color: rgba(255,255,255,0.3);
        border-radius: 50px;
        border: 0px solid;
        display: flex;
        flex-direction: column;
        padding: 2%;
        animation: 1s ease-in-out slideOnStartTop;
        backdrop-filter: blur(20px);
        position: absolute;
        bottom: 1vh;
        left: 1vw;
        height: 98%;
        color: floralwhite;
    }
    
    .exit-privacy {
        color: white;
    }
    
    .new-test {
        padding: 1%;
        border: 3px solid !important;
        background-color: rgba(33,0,70,0.9);
        color: white;
        font-size: 25px;
        font-weight: bolder;
        border-radius: 25px;
        margin: 2%;
        animation: 1s ease-in-out 0s 1 slideOnStartBottom;
    }
    
    .result-box {
        background-color: rgba(255,255,255,0.4);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin: 0.5% !important;
        display: flex;
        flex-direction: column;
    }
    
    .blurer {
        backdrop-filter: none;
        background-color: rgba(0,0,0,0.0);
        width: 100% !important;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0% !important;
        overflow: hidden;
    }
    
    .inputrow {
        direction: rtl;
        width: 25% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-right: 2%;
    }
    
    .main-title {
        color: white !important;
        font-family: 'Rubik', 'Roboto', sans-serif;
        font-size: 5vw;
        justify-content: flex-end;
        flex: auto;
        margin-right: 2% !important;
        align-self: flex-end;
    }
    
    .main-paragraph {
        color: white;
        font-size: 18px;
        font-weight: normal;
        direction: rtl;
        align-self: flex-end;
        text-align: right;
        margin: 2% 2% 0% 50% !important;
    }
    
    .btn-primary {
        background-color: transparent !important;
        border: 2px solid !important;
        border-color: rgba(255,255,255,0.5) !important;
        border-radius: 0px !important;
        font-weight: bolder;
        font-family: 'Roboto', sans-serif;
        font-size: 20px !important;
        margin-top: 10% !important;
    }
    
    .loading-spinner, .loading-spinner-hidden {
        margin: 5% !important;
        height: 32px !important;
        width: 32px !important;
    }
    
    .error-message {
        text-align: right !important;
        margin-right: 2%;
    }
    
    .container {
        height: 0%;
        background-position-x: 65%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        animation: 1s ease-in-out slideOnStartRight;
        overflow: hidden;
    }
    
    .is-shown {
        height: 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0% !important;
        background-position-x: 65%;
        display: flex;
        flex-direction: column;
        animation: 1s ease-in-out slideOnStartLeft;
    }
}

