@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

p, h1, h2, h3, h4, h5, h6, button, a, li, span, textarea, input{
    font-family: "Roboto", sans-serif;
    line-height: 1.3;
    text-decoration: none;

}
button, a{
    -webkit-tap-highlight-color: transparent !important;
}
main{
    padding-bottom: 2vh;
}

a {
  -webkit-tap-highlight-color: transparent; /* убирает синий фон при тапе в iOS/Android */
  outline: none;                            /* убирает обводку при фокусе */
  -webkit-focus-ring-color: transparent;    /* для Safari */
  text-decoration: none;                    /* если нужно убрать подчёркивание */
  color: inherit;                           /* если нужно убрать синий цвет */
}




:root{


    /*цвета*/
    --main-text-color: #1E1E1E;
    --nav-text-color:#393939;
    --feedback-text-color:#6F6F6F;
    --text-color:#84674F;

    --bg-color: #F7F9ED;
    --main-elem-color:#B7957A;
    --active-elem-color:#B7957A;



    /*размеры шрифтов*/
    --h1-font-size: clamp(10px, 3.3vw, 64px);
    --h2-font-size: clamp(10px, 2.5vw, 48px);
    --h3-font-size: clamp(10px, 2vw, 40px);
    --h4-font-size: clamp(10px, 1.7vw, 32px);
    --p-a-font-size: clamp(10px, 1.4vw, 24px);


    /*толщина*/
    --main-weight: 400;

    --leaf-size:clamp(10px, 6.25vw, 120px);
    
}
body{
    background-color: var(--bg-color);
    overflow-x: hidden;
}


h1{
    font-size:var(--h1-font-size);
    font-weight: var(--main-weight);
    margin: 0;
    color: var(--text-color);
}
h2{
    font-size:var(--h2-font-size);
    font-weight: var(--main-weight);
    margin: 0;
    color: var(--text-color);
}
h3{
    font-size: var(--h3-font-size);
    font-weight: var(--main-weight);
    margin: 0;
    color: var(--text-color);
}
h4{
    font-size: var(--h4-font-size);
    font-weight: var(--main-weight);
    margin: 0;
    color: var(--text-color);
}
h5{
    font-weight: var(--main-weight);
    margin: 0;
    color: var(--text-color);
}

h6{
    font-weight: var(--main-weight);
    margin: 0;
    color: var(--text-color);
}
p{
    color: var(--text-color) !important;   
}
button{
    background-color: #C9E6A1;  
    border-radius: clamp(10px, 0.625vw, 12px);
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    border: none;
    color: var(--text-color);
} 
textarea, input{
    border: none;        
    outline: none;
    resize:none;
    font-size: clamp(10px, 1vw, 20px);
    padding: 5px clamp(10px, 1vw, 19px);
    font-weight: 300;
}
header{
    display: flex;
    justify-content: space-between;
    width:100vw;
    padding: clamp(10px, 1vw, 19px) clamp(10px, 5vw, 96px);

}

  
.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}
.go-home{
    position: fixed;
    font-family: "Roboto", sans-serif;
    bottom: 10px;
    z-index: 999; /* если нужно поверх другого */
    font-size:var(--h4-font-size);
    color: var(--nav-text-color);
    font-weight: var(--main-weight);
}
a{
    cursor: pointer;
    transition: transform 0.3s ease;
}


.text-card{
    text-align: center;
}
.sound{
    padding: 0 !important;
    background-color: transparent;
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.auth-links a{
    color: #393939;
    font-size: var(--p-a-font-size);
    text-align: center;
}
.auth-links {
    display: flex;
    align-items: center;
    gap:clamp(10px, 2vw, 38px);
    
}


/*анимации*/
a:hover, .auth-links a:hover{
  color: var(--active-elem-color);
  transition: color 0.3s ease;
  text-decoration: none;
}

button:active {
  transform: scale(0.95);
  transition: transform 0.4s ease ;
}
.character  svg path {
    color: var(--text-color) !important;
}


/*адаптив*/

@media (max-width: 1100px) {
    :root{
        --h1-font-size:5vw;
        --h2-font-size:4vw;
        --h3-font-size:2.5vw;
        --h4-font-size:2.5vw;
        --p-a-font-size:2.3vw;
        
    }

}
@media (max-width: 768px) {
    :root{
        --h1-font-size:8vw;
        --h2-font-size:8vw;
        --h3-font-size:5.1vw;
        --h4-font-size:5.1vw;
        --p-a-font-size:4.6vw;
        --leaf-size:15vw;
        
    }
    main{
        padding-bottom: 5vh;
    }
    .auth-links {
        display: flex;
        align-items: center;
        gap:10vw;
        
    }
}
