@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap');


:root
{
    --br-big:15px;
    --br-normal:10px;
    --br-small:6px;

    --p-color:#00298a;
    --s-color:#b0bece; 
    --s-color-light:#e2e6ea;   
    --bg-color:#EBF5FB;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

ul
{
    list-style: none;
}

h1
{
    font-size: 27px;
    font-weight: 550;
    color:var(--p-color);
}

button,ul li,.selection :where(input[type="checkbox"],select,label)
{
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body{
    font-family: 'Roboto', sans-serif;

}

main.main-container
{
   background: #fff;
   width: 100%;
   height: 100vh;
   display: flex;
   justify-content: center;
   align-items:center; 
}

.main-container .header
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    display: flex;
    align-items:center;
    padding: 10px 50px;
    background:var(--p-color);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    z-index: 1000;
}

.header .header-title-logo
{
    display: flex;
    align-items:center;    
}

.header .header-title-logo span
{
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    margin-left: 5px;
}

.header .header-title-logo i
{
    font-size: 16px;
}

.main-container .wrapper
{
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 15px;
    background: var(--bg-color);
    width: 800px;
    height: 500px;
    border-radius: var(--br-big);
    padding: 15px;

    box-shadow: 0 2px 10px #a9a6cd;
}

/* ? left section styling */
.wrapper .left-section
{
  
    display: grid;
    grid-template-rows: 60px 2fr 60px;
    row-gap: 40px;
    height: 100%;
}

.wrapper .left-section .qrcode-container
{
    width: 100%;
    background:#fff;
    border-radius:30px;
    display: flex;
    justify-content: center;
    align-items:center;
}   

.wrapper .left-section .qrcode-container ul
{
    display: flex;
    flex-direction: row;
    justify-self:space-around;
    align-items:center;
}


.wrapper .left-section .qrcode-container ul li{
    width: 35px;
    height: 35px;
    margin: 0 10px;
    color: var(--s-color);
    background:transparent;
    border-radius:50%;
    display: flex;
    justify-content: center;
    align-items:center;

    transition: all 0.15s ease;

}
.wrapper .left-section .qrcode-container ul li i
{
    font-size: 13px;
}

.wrapper .left-section .qrcode-container ul li:hover
{
    color:var(--p-color);
}
.wrapper .left-section .qrcode-container ul li.active
{
    box-shadow: 0 0 6px 3px rgb(197, 201, 249);
    color: #fff;
    background:var(--p-color);
}

.wrapper .left-section .forms-container .form
{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: auto;
    row-gap: 15px;
    display: none;
    
}
.wrapper .forms-container .form:nth-child(1)
{
    display: flex;
}

.forms-container .form.form-wifi .selection
{
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 30px;
    flex-direction: row;
    justify-content: space-between;
    align-items:center;
}

.forms-container .form.form-wifi .selection div
{
    display: flex;
    justify-content: space-around;
    align-items:center;
}
.forms-container .form.form-wifi .selection div label
{
 font-size: 12px;
 color:var(--p-color);
 font-family: inherit;
}
.wrapper .forms-container .form :where(input,select,textarea){
    border: none;
    outline: 0;
    background:transparent;
    border-bottom: 1px solid var( --s-color-light);
    padding: 10px 0;

    color:var(--p-color);
    font-family: inherit;
    font-size: 12px;

    transition: border-color 0.15s ease;
}


.wrapper .forms-container .form :where(input,select,textarea):focus-within{
    border-color: var( --p-color);

}

.wrapper .forms-container .form textarea{
    height: 100px;
}


.wrapper .forms-container .form input::placeholder,
.wrapper .forms-container .form textarea::placeholder,
.wrapper .forms-container .form select::placeholder
{
    color:var(--s-color);
}

.wrapper .generate-btn-container
{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items:center;
}

.wrapper .generate-btn-container .btn-qr-generator
{
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    color:#fff;
    background:var(--p-color);
    border: none;
    border-radius: 30px;
    outline: 0;
    padding: 15px 30px;

    transition: background-color 0.20s;
}


.main-container .wrapper .right-section
{
    background: var(--p-color);
    border-radius: var(--br-big);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items:center;
}

.right-section .genetared-qrcode-container
{
    padding: 25px;
    height: 360px;
    width: 100%;
    background:var(--p-color);
}



.right-section .genetared-qrcode-container .qrcode-content
{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items:center;
    height: 100%;
    box-shadow:2px 2px 10px rgb(17, 14, 14),
               -2px -2px 10px rgb(181, 181, 181);

    border-radius:var(--br-big);
    background:var(--p-color);
}

.right-section .genetared-qrcode-container .qrcode-content .qrcode__icontext
{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items:center;
    color: #fff;
    text-align: center;
    width: 100%;
}

.right-section .genetared-qrcode-container .qrcode-content .qrcode__icontext #qrcode__icon
{
    font-size: 20px;
}

.right-section .genetared-qrcode-container .qrcode-content .qrcode__icontext #qrcode__text
{
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-top: 15px;
    color:#a9a6cd;
    white-space: nowrap;
}

.right-section .genetared-qrcode-container .qrcode-content .qrcode__image
{
    position: relative;
    border: 1px solid #fff;
    border-radius: var(--br-normal);
    display: flex;
    justify-content: center;
    align-items:center;
    width: 145px;
    height: 145px;
}

.right-section .genetared-qrcode-container .qrcode-content .qrcode__image:before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    border: 1px solid var(--p-color);
    border-radius: 10%;
    height: 100%;
    width: 100%;
    transition: all 0.15s ease-in-out;
    animation: alternate-reverse linear zoom__in__out 1000ms infinite;
  }

  @keyframes zoom__in__out {
    0%
    {
        border-radius: 10%;
    }
    100%
    {
        border-radius: 15%;
    }
  }

.right-section .genetared-qrcode-container .qrcode-content .qrcode__image #qrcode__image
{
    width: 80%;
    height: 80%;
    border-radius: 5px;
}




.right-section .downloadbtn-qrcode-container
{
    padding: 25px;
    padding-top: 0;
    width: 100%;
}

.right-section .downloadbtn-qrcode-container .downloadbtn-content
{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items:center;
}

.right-section .downloadbtn-qrcode-container .downloadbtn-content .downloadbtn
{
    font-size: 13px;
    font-weight: 400;
    font-family: inherit;
    color: var(--p-color);
    background: #fff;
    border: none;
    border-radius: 30px;
    outline: 0;
    padding: 15px 30px;
    width: 100%;


    
    transition: background-color 0.20s;
}


.right-section .downloadbtn-qrcode-container .downloadbtn-content .downloadbtn:active
{
    background-color:#c9c7e4; 
}
.wrapper .generate-btn-container .btn-qr-generator:active
{
 background-color:#4938fb;   
}


@media (max-width:600px) {

    main.main-container 
    {
        height: 100%;
        margin-top: 43px;
    }
    .main-container .header
    {
        padding: 13px 10px;
    }
    .header .header-title-logo span
    {
        font-size: 14px;
    }
    .header .header-title-logo i
    {
        font-size: 15px;
    }
    .main-container .wrapper {
        grid-template-columns: 1fr;
        width: 100%;
        height: max-content;
        margin: 15px;
    }
    .main-container .wrapper .left-section
    {
       
        display: grid;
        grid-template-rows: 1fr 2fr 1fr;
        /* flex-direction: column; */
        /* justify-content: space-around; */
        row-gap: 40px;
        height: 600px; 
    }
    .wrapper .left-section .qrcode-container
    {
        border-radius:10px;
    }

    .wrapper .left-section .qrcode-container ul li
    {

        width: 40px;
        height: 40px;
    }
    .main-container .wrapper .right-section
    {
        height:600px;
    }

    .right-section .genetared-qrcode-container
    {
        height: 430px;
        width: 100%;
        padding: 30px;
        background: var(--p-color);
    }


    .right-section .genetared-qrcode-container .qrcode-content .qrcode__icontext
    {
        height:70px;
    }

    .right-section .genetared-qrcode-container .qrcode-content .qrcode__icontext #qrcode__icon
    {
        font-size: 23px;
    }
    .right-section .genetared-qrcode-container .qrcode-content .qrcode__image
    {
        height: 185px;
        width: 185px;
    }

    
    .forms-container .form.form-wifi .selection
    {
        grid-template-columns: 1fr 1fr;
        column-gap:20px;
    }



    .right-section .downloadbtn-qrcode-container
    {
        width: 100%;
        padding:30px;
        padding-top: 0;
    }
}