/* margin: top right bottom left */

/* Implement variables Very important */
@tailwind base;
@tailwind components;
@tailwind utilities;


:root{
    --max-width: 1400px;
    --aspect-ratio: 16 / 6;
    --glass-max-width: 27%;
}

@media(max-width: 1920px){
    :root{
        --max-width: 1920px;
    }    
}

@media(max-width: 910px){
    :root{
        --aspect-ratio: 16 / 9;
        --glass-max-width: 70%;
    }
}

*{
    margin: 0;
    padding: 0;
    box-sizing: content-box;
    list-style: none;
    text-decoration: none;
    color: black;
    outline: none;
}

.show-overflow{
    overflow: visible !important;
}

body, footer{
    touch-action: pan-y !important;
}

.underline{
    text-decoration: underline; 
    text-underline-offset: 7px; 
    text-decoration-thickness: 3px;
}

.navbar{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Calibri;
}

#upper{
    display: flex;
    flex-direction: row;
    font-size: 16px;
    margin-left: 2%;
}

#upper h4 {
    margin-top: 0.7%;
}

#upper h4 pre{
    font-size: 20px;
}

.nav-holder{
    display: flex;
    position: relative;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    height: 100%;
    max-width: var(--max-width);
}

.nav-holder label svg{
    fill: black;
}

#sidebar-activate{
    z-index: -1;
}

.open-sidebar-button, .close-sidebar-button{
    display: none;
}

.nav-holder h4 pre{
    font-size: 17px;
}
.nav-menu{
    display: flex;
    list-style: none;
    font-weight: bold;
}

.nav-menu li{
    padding: 28px 16px;
}

.nav-menu li a{
    font-size: 20px !important;
}

summary{
    user-select: none; 
    -webkit-user-select: none;
}

.nav-menu li details summary h4{
    font-weight: bold !important;
    font-size: 20px;
}

.nav-menu li details summary pre{
    font-weight: normal;
    /* margin-top: 2px; */
    font-size: 18px;
}

.nav-menu li details ul li a{
    font-size: 17px !important;
}

.nav-menu li a:hover{
    color: #1E88E5;

}

.nav-menu li details summary h4:hover{
    color: #1E88E5;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  width: 100%;
  height: 100%;
}

.main-content-2{
    max-width: var(--max-width);
    margin: auto;
}

.slideshow-container {
  width: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  position: relative;
  max-width: var(--max-width);
}

.slider {
  display: flex;
  aspect-ratio: var(--aspect-ratio);
  transition: transform 0.5s ease-in-out; /* Smooth sliding */
  will-change: transform;
}

.mySlides {
  flex: 0 0 100%; /* Each slide takes up the full width */
  max-width: 100%;
  position: relative;
}

.mySlides .home-img{
    padding-left: 4px;
    padding-right: 4px;
    width: 100%;
    filter: brightness(57%);
}

.glassWelcome {
  position: absolute;
  top: 45%;
  left: 5%;
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 16px;
  border-radius: 15px;
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.8);
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
  max-width: var(--glass-max-width);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: normal;
}

.glassWelcome h4{
    font-family: Verdana, Arial, Helvetica, sans-serif; 
    color: #1E88E5
}

.prev, .next {
  z-index: 1;
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.05);
  text-shadow: 0px 0px 1px rgba(255, 255, 255, 0.8);
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
    
.nav-menu li a{
    font-size: 17px;
}

#headache{
    margin: 12px 12px;
}

#lastChild{
    position: relative;
    margin-right: 30px;
}

.details-list li a{
    font-family: Corbel;
}

.details-list{
    display: flex;
    flex-direction: column;
    position: absolute;
    background: #fff;
    margin-top: 8px;
    z-index: 10;
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.1);
}

.details-list li{
    padding: 0;
    margin-left: 8px;
    padding-right: 8px;
}

.details-list li a:hover{
    color: #1E88E5;
}

#index-wrapper{
    margin: 0; 
    margin-top: 40px; 
    background-color: white; 
    flex-direction:column; 
    border: none;
    width: 100%;
}

#name, #contact-number{
    caret-color: #1E88E5;
    font-weight: bold;
    font-family: Calibri;
}

@media(max-width: 390px){

    .glassWelcome{
        font-size: 10px;
    }
}

@media(max-width: 900px){
    #Arihant-home-info tr{
        display: flex;
        flex-direction: column;
    }

    #Arihant-home-info tr td{
        width: fit-content !important;
        text-align: justify;
    }

    #Arihant-home-info tr td h1{
        text-align: center;
    }

    #Arihant-home-info tr td img{
        max-width: 50%;
        margin-left: 25% !important;
    }
}


@media(max-width: 420px){

    #upper h4 pre{
        font-size: 14px;
    }
}

@media(max-width: 510px){
    
    :root{
        --aspect-ratio: 16 / 9;
        --glass-max-width: 70%;
    }

    .glassWelcome{
        font-size: 14px;
        left: 10%;
        top: 40%;
    }

    .prev, .next{
        font-size: 19px;
    }

    #Arihant-home-info tr{
        display: flex;
        flex-direction: column;
    }

    #Arihant-home-info tr td{
        text-align: center;
        align-items: center;
        width: fit-content !important;
    }

    #Arihant-home-info tr td img{
        max-width: 100%;
        margin-left: auto !important;
    }

    #Arihant-home-info tr td div p{
        text-align: justify;
    }

    #Arihant-home-info tr td:first-child{
        border-bottom: none !important;
    }

    #index-table {
        width: fit-content !important;
    }

    #index-table td{
        width: 100%;
    }

    #service-info{
        font-size: 20px !important;
    }

    #service-button{
        font-size: 15px;
    }

}

@media(max-width: 648px){
    #index-table td:last-child{
        display: none !important;
    }
}

@media(max-width: 1030px){
    .catalog-and-image-holder{
        width: 90%;
    }
}

@media(max-width: 910px){

    #index-table{
        display: block;   
    }

    .nav-holder {
        flex-direction: column;
    }
    
    .nav-menu {
        position: relative;
        top: 0;
        width: 100%;
        max-height: 0; 
        overflow: hidden;
        display: flex;
        flex-direction: column;
        background-color: #fff; 
        transition: max-height 0.5s ease-out;
        z-index: 10;
    }
    
    .open-sidebar-button {
        cursor: pointer;
        display: block;
        position: absolute;
        right: 30px;
        top: 20px;
        z-index: 11;
    }
    
    .close-sidebar-button {
        cursor: pointer;
        display: none; 
    }

    #sidebar-activate:checked ~ .nav-menu {
        max-height: 500px;
    }
    
    #sidebar-activate:checked ~ .close-sidebar-button {
        display: block;
        position: absolute;
        top: 18px;
        right: 26px;
    }
    
    #sidebar-activate:checked ~ .open-sidebar-button {
        display: none;
    }
    
    #headache{
        pointer-events: none;
    }

    #image{
        pointer-events: auto;
    }

    .details-list{
        margin-top: 12px;
    }

    .details-list li{
        margin-left: 0;
    }

    .nav-menu li{
        padding: 12px 12px; 
        border-bottom: 1px solid grey;
        background-color: rgb(245, 245, 245);
        width: 100%;
    }

    #myHome{
        border-top: 1px solid grey;
    }
}

.ft{
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: auto;
}

.mega-footer{
    width: 100%;
    max-width: var(--max-width);
    padding: 12px 28px;
    display: grid;
    column-gap: 16px;
    grid-template-areas: "mini1 mini2 mini3 mini4"
}

.foot{
    grid-area: mini1;
}

#request-callback{
    grid-area: mini2;
}

#footer-links{
    grid-area: mini3;
}

#get-in-touch{
    grid-area: mini4;
}

.foot .nav-links{
    margin-top: 20px; 
    font-weight: bold;
}

.nav-links li{
    margin: 4px 0;
}

.nav-links li a{
    font-size: 22px;
}

.nav-links li a:hover{
    color: red;
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinner[type="number"] {
    -moz-appearance: textfield;
}

#request-callback{
    font-family: Tahoma;
}

#request-callback h1{
    margin-bottom: 24px;
    color: rgb(0, 18, 154);
}

#request-callback form{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
}

#request-callback form input{
    height: 40px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    padding-left: 10px;
    border-radius: 4px;
    box-shadow: 1px 1px 10px grey;
    transition: border-color 0.3s ease;
}

#request-callback form input:focus{
    border-color: rgb(242, 61, 73)
}

#sending{
    background-color: rgb(242, 61, 73);
    cursor: pointer;
    color: white;
    padding: 12px 12px;
    width: 180px;
    margin-top: 7%;
}

#sending:hover{
    background-color: rgb(209, 53, 63);
}

#footer-links{
    font-family: Verdana, Arial, Helvetica, sans-serif;
}

#footer-links h1{
    color: rgb(0, 18, 154);
}

#footer-links ul{
    margin-top: 20px;
    line-height: 1.3;
}

#footer-links ul li{
    margin-top: 4px;
}

#footer-links ul li a{
    font-size: 20px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-family: Arial;
}

#footer-links ul li a:hover{
    color: red;
}

#get-in-touch{
    margin-right: 24px;
}

#get-in-touch h1{
    margin-bottom: 16px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: rgb(0, 18, 154);
}

#get-in-touch h2{
    font-family: Tahoma;
    color: rgb(255, 42, 20);
}

#get-in-touch h3{
    margin-top: 7px;
    font-size: 22px !important;
    font-family: Calibri;
}

#get-in-touch p{
    margin-top: 5px;
    font-family: Tahoma;
    font-size: 18px !important;
}

@media(max-width: 1030px){
    #certification{
        min-height: 63vh;
    }
}

@media(max-width: 1009px){

    .mega-footer{
        grid-template-areas: 
            "mini1 mini2" 
            "mini3 mini4";
        row-gap: 32px;
    }

    #get-in-touch{
        margin-top: 15%;
    }
}

@media(max-width: 820px){

    #certification{
        min-height: 55vh;
    }

    #upper{
        display: none;
    }
}

@media(max-width: 650px){
    
    #certification{
        min-height: 45vh;
    }

    .mega-footer{
        grid-template-areas:
            "mini1" 
            "mini2" 
            "mini3" 
            "mini4";
        row-gap: 32px;
    }

    .foot{
        margin-top: 12px;
    }

    #get-in-touch{
        margin-bottom: 28px;
    }

    #sending{
        margin-bottom: 10%;
    }

    #footer-links{
        margin-top: 15%;
    }

    #get-in-touch{
        margin-top: 0%;
    }
}

#certification{
    text-align: center;
    width: 100%;
    display: flex;
    height: 100%;
    max-height: 100%;
    justify-content: center;
    padding: 16px 16px;
    font-family: Calibri;
    font-size: 16px;
}