* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

:root {
    --bg-dark: #1d1616;
    --bg-dark-bg: #06538d;
    --bg-white: #fff;
    --bg-morotka: #fff280;
    /* --color-font: #012f31; */
    --color-font: #28292b;
    --color-font2: #6b7c84;
    --color-box1: #e1f296;
    --color-box2: #08cef6;
    --color-box3: #04565b;

    --s:  400px;  /* size  */
    --m: 0px;   /* margin */
    --size-menu: clamp(250px, 40vw  , 350px);
}

html {
    overflow-x: none;
}

body {
    background-color: var(--bg-white);
    color: var(--color-font);
    background-image: url('../img/bg.png');
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
}

section {
    display: grid;
    place-items: center;
    height: 100svh;
    
}

.hex.generic {
    width: var(--s);
    margin: var(--m);
    height: calc(var(--s) * 1.1);
    display: inline-block;
    font-size: initial; 
    background-color: var(--color-box2);
    padding-top: calc(var(--s) * 1.1547/6); 
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    z-index: 5;
    border-radius: 2rem;
    border: 4px solid var(--color-box2);
     
  }


  @supports(backdrop-filter: blur(1rem)) {
    .hex.generic {
        background: hsl(0 0% 100% / 0.05);
        backdrop-filter: blur(16px);
    }
}

.hex.generic h2 {
    font-size: 1.6rem;
    text-align: center;
    color: var(--color-font);
    font-weight: 700;
    letter-spacing: 0.3rem;
    opacity: 1;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 3px solid var(--color-box2);
    margin: 30px 0;

    label {
        position: absolute;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        font-size: 1em;
        color:var(--bg-white);
        font-weight: 400;
        pointer-events: none;
        transition: 0.5s;
    }
        
    input:focus~label,
    input:valid~label {
        top: -5px;
        font-weight: 300;
    }

    input {
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        outline: none;
        font-size: 1.1em;
        color:var(--bg-morotka);
        font-weight: 600;
        padding: 0 35px 0 5px;
    }

    .icon {
        position: absolute;
        right: 8px;
        font-size: 1.2em;
        color: var(--bg-dark-bg);
        line-height: 57px;
    }

}


.btn {
    appearance: button;
    width: 50%;
    height: 45px;
    background-image: linear-gradient(to bottom, var(--bg-white), var(--color-box2));
    border: none;
    border-radius: .4rem;
    outline: none;
    cursor: pointer;
    font-size: 1.2em;
    color: var(--color-font);
    font-weight: 500;
    outline: 0px solid transparent;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    &:active {
        transform: translateY(0.125rem);
    }

    &:hover {
        transform: scale(1.1);
        transition-duration: 500ms;
    }

}

@media screen and (max-width: 480px){
    .hex.generic{

        width: 96%;
        /* border: 0px !important ; */
        margin: var(--m);
    }
}
