* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
    -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
    background-color: #fff;
    /* font-family: system-ui, -apple-system, -apple-system-font, 'Segoe UI', 'Roboto', sans-serif;  */
    /*font-size: 12px;*/
    height: 100vh;
    margin: 0;
    /* Padding to avoid the "unsafe" areas behind notches in the screen */
    padding: constant(safe-area-inset-top);
    padding: env(safe-area-inset-top, 32px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-right, 0px);
    /*15-12-19*/
}

button:focus {
    outline: none;
}

/* Portrait layout (default) */
.app {
    background: url(../img/logo.png) no-repeat center top; /* 170px x 200px */
    position: absolute; /* position in the center of the screen */
    left: 50%;
    top: 50%;
    height: 50px; /* text area height */
    width: 225px; /* text area width */
    text-align: center;
    padding: 180px 0px 0px 0px; /* image height is 200px (bottom 20px are overlapped with text) */
    margin: -115px 0px 0px -112px; /* offset vertical: half of image height and text area height */
    /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position: left center;
        padding: 75px 0px 75px 170px; /* padding-top + padding-bottom + text area = image height */
        margin: -90px 0px 0px -198px; /* offset vertical: half of image height */
        /* offset horizontal: half of image width and text area width */
    }
}

/*MODAL TEST DONE DIALOG*//*--------------------------------------------------------------------------------*/

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
   z-index: 1000;
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background: rgba(45, 52, 54, 0.45) !important;
     backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  border: none !important;
  width: min(92%, 460px);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 25px 70px rgba(0,0,0,0.22);
  animation: modalPop 0.28s ease-out;
  position: relative;
}

/* Decorative honey bar on top */
.modal-content::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height: 6px;
  background: linear-gradient(90deg, var(--honey-secondary), var(--honey-primary), var(--honey-dark));
}

/* nicer animation */
@keyframes modalPop {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
.modal-header {
  background: linear-gradient(135deg, var(--honey-secondary) 0%, var(--honey-primary) 100%) !important;
  color: white !important;
  padding: 18px 18px 14px 18px !important;
  border-radius: 0 !important;
  text-align: center;
  position: relative;
}

#modal_title {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.05rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

/* Body */
.modal-body {
  padding: 20px 18px 14px 18px !important;
  background: var(--white);
}

#final_score {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

#completings_weekly_test {
  margin: 0 0 14px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Loader row: make it look neat */
#loader_div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: rgba(255, 183, 0, 0.10);
  border: 1px solid rgba(255, 183, 0, 0.18);
}

#loader_div span {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 !important;
}

/* Footer */
.modal-footer {
  background: #fff !important;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 14px 16px !important;
  border-radius: 0 !important;
}

/* Buttons layout */
#box_dialog_buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Make both footer buttons same height, nice touch target */
#repeat_test_button,
#from_test_to_home_button {
  flex: 1;
  min-height: 46px;
  border-radius: 50px !important;
}

/* Primary + Secondary (keep honey theme) */
#repeat_test_button {
  background: transparent !important;
  border: 2px solid var(--honey-primary) !important;
  color: var(--honey-dark) !important;
  box-shadow: none !important;
}

#from_test_to_home_button {
  background: linear-gradient(135deg, var(--honey-primary) 0%, var(--honey-dark) 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(245, 127, 23, 0.25);
}

/* Active press */
#repeat_test_button:active,
#from_test_to_home_button:active {
  transform: scale(0.98);
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }
    to {
        top: 0;
        opacity: 1
    }
}


/* The Close Button */
.modal-header .close {
  position: absolute;
  right: 14px;
  top: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 30px;
  font-weight: 900;
  opacity: 0.85;
}
.modal-header .close:hover {
  opacity: 1;
}

/* MODAL LOGIN DIALOG*//*--------------------------------------------------------------------------------*/

.modal-content-register {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 95%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 12px;
}

.vertical-horrizontal-center {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.login_button {
    background-color: #8e44ad;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 25px;
}

/* Full-width input fields */
input[type=text], input[type=email], input[type=password], input[type=number] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 25px;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 25px;
}

/* Add a blue text color to links */
a {
    color: dodgerblue;
}

/* Set a grey background color and center the text of the "sign in" section */
.signin {
    text-align: center;
}

/* Center the image and position the close button */
.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

#footer_login {
    border-radius: 0 0 25px 25px;
}

#login_button, #register_button {
    border-radius: 25px;
}


span.psw {
    float: right;
    padding-top: 16px;
}

/* The Modal (background) */
/* .modal  -- same as upper */

/* Modal Content/Box */
.modal-content-login {
    background-color: #fefefe;
    /*margin: 5% auto 15% auto; 5% from the top, 15% from the bottom and centered */
    border: 1px solid #888;
    width: 95%; /* Could be more or less, depending on screen size */
    border-radius: 25px;
}
.form_container {
    padding: 12px;
}

/* The Close Button (x) */
.close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    cursor: pointer;
}


/* Extra styles for the cancel button */
.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}


/* Add Zoom Animation to login dialog*/
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes animatezoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
    span.psw {
        display: block;
        float: none;
    }

    .cancelbtn {
        width: 100%;
    }
}		

/* loader */                         /*--------------------------------------------------------------------------------*/

/* Center the loader */
#loading_info {
    width: 100%;
    position: fixed;
    margin: 0 auto;
    padding: 10px;
    padding-top:26px;
    text-align: center;
    background-color: rgba(238, 221, 0, 1);
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    z-index: 10;
}

#full_page_loader_div {
    z-index: 1000;
    background-color: rgba(230, 230, 230, 0.2);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    padding-top: env(safe-area-inset-top, 32px);
}

#full_page_loader {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid rgba(238, 221, 0, 0.70); /*#3498db;*/
    width: 120px;
    height: 120px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

.small_loader {
    z-index: 10;
    border: 7px solid #f3f3f3;
    border-radius: 50%;
    border-top: 7px solid #3498db;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
#social-div {
    margin-left: auto;
    margin-right: auto;
    width: 310px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.fa {
    padding: 10px;
    font-size: 13px;
    color: white !important;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    margin: 0px 12px;
}
    .fa:hover {
        opacity: 0.7;
    }

.fa-google {
    background: #dd4b39;
    color: white;
}
.fa-facebook {
    background: #3B5998;
    color: white;
    padding-left: 13px;
    padding-right: 13px;
}
.fa-youtube {
    background: #bb0000;
    color: white;
}
.fa-instagram {
    background-color: red; /* For browsers that do not support gradients */
    background-image: linear-gradient(45deg, #feda77, #f58529, #dd2a7b, #8134af, #515bd4);
    color: white;
}
.fa-email {
    background: #4345a2;
    color: white;
}
