/* CSS rules for small screens */
@media screen and (max-width: 767px) {
  html {

  width: 100%;
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
    margin: 15px;
    padding: 0;
  }
  input{

    font-size: 46px;
  }
  /* Adjust font sizes */
  .text {
    font-size: 38px;
  }
  main{
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
  }
  body {
 
}
  .category-label {
    font-size: 18px;
  }
  .form-input-group input {

    padding: 10px;
  }
  /* Hide social media icons */
  h2 {
    display: none;
    opacity: 0;
  }
  /* Adjust button width */
  .button {
    width: 80%;
  }
  .calc {
    margin: 0 auto;
  margin-top: 50px;
}


.form-group {
  margin-bottom: 20px;
}

.sc {
  margin-bottom: 30px;
  width: 80%;
  margin-top: 50px;
}

.kofi, .twitter, .discord, .email, .ig {
  margin-right: 10px;
}
img {
  max-width: 100%;
  height: auto;
}
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #7761FF;
  color: white;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  width: 80%;
  margin: 0 auto;
}
.box{
  position: relative;
  background-color: white;
  height: 140px;
  width: 80%;
  max-width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.rectangle-content{
  width: 95%;
}
.calc-content{
  margin: 0 auto;
margin-top: 50px;
max-width: 100%;
}
.box_content{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.form-container {
  width: 100%;
    max-width: 500px; /* Ширина контейнера для формы */
    margin: 0 auto;
}
}

html {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(244.51deg, #7761FF -0.35%, #8AB8FF 101.93%);
}
body {
  font-family: 'Fredoka One', cursive;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka One', cursive;
}

h1{
  margin-bottom: 50px;
text-align: center;
top: 150px;
font-family: 'Fredoka One';
font-style: normal;
font-weight: 400;
font-size: 58px;
line-height: 60px;
color: #FFFFFF;
}
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.total-cost{
  position: absolute;
  right: 20px;
  background: linear-gradient(244.51deg, #7761FF -0.35%, #8AB8FF 101.93%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}
.label-left {
line-height: 1.2;
  font-size: 60px;
  -webkit-text-fill-color: transparent;
  position: absolute;
  margin-left: 20px;
  left: 0;
  background: linear-gradient(244.51deg, #7761FF -0.35%, #8AB8FF 101.93%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-fill-color: transparent;
}
.calc{
  width: 100%;
    margin: 0 auto;
    
}
.calc-content{
  position: relative;
   margin: 0 auto;
    height: 84px;
    width: 460px;
    background: #FFFFFF;
    border-radius: 20px;
    text-align: center;
   display: flex;
   justify-content: center;
   align-items: center;}
.box{
  position: relative; /* Чтобы дочерний элемент rectangle-content использовал его как точку отсчета */
  background-color: white;
  height: 140px;
  width: 460px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin: 0 auto; /* Центрирование прямоугольника */
  justify-content: center;
  align-items: center;
}
.box_content{
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.button {
  background-color: rgb(74, 125, 255);
  background-image: linear-gradient(45deg, rgb(188, 171, 255) 0%, rgba(74, 125, 255, 0.008) 100%);
  font-size: 18px;
  border-radius: 0.825rem;
  text-decoration: none;
  color: white;
    padding: 25px 30px;
    display: inline-block;
    text-align: center;
    display: inline-block;
  vertical-align: middle;
  transition: transform 0.5s ease 0s, color 0.5s ease 0s, background-color 0.5s ease 0s, border-color 0.5s ease 0s;

}
.button:hover{
    background-color: rgb(155, 243, 240) !important;
    transform: scale(1.025);
}
.rectangle {
  position: relative; /* Чтобы дочерний элемент rectangle-content использовал его как точку отсчета */
  background-color: white;
  width: 460px;
  height: 495px;
  border-radius: 30px;
  margin: 0 auto; /* Центрирование прямоугольника */
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.rectangle-content {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  text-align: center;
}
.form-input-group{
  /*padding-left: 50px;*/
	background: linear-gradient(244.51deg, #7761FF -0.35%, #8AB8FF 101.93%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
}
.category-label{
  margin-left: 60px;
	margin-right: 100px;
	font-family: 'Fredoka One';
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: 39px;
color: #061136;
}
.form-group-cost{
	font-family: 'Fredoka One';
font-style: normal;
font-weight: 400;
font-size: 32px;
line-height: 39px;

color: #061136;
}
.label-left {
  padding-right: 20px;
}

.form-group-cost {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-size: 42px;
  line-height: 39px;
  color: #061136;
}

.form-group-cost #total-cost {

  margin: 0;
  padding: 0;
  font-size: 42px;
  font-weight: bold;
}

.form-container {
  margin-top: 40px;
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-group {
  display: flex; /* Добавляем свойство для выравнивания элементов в ряд */
  align-items: center; /* Выравнивание по центру по вертикали */
  margin-bottom: 60px;
  justify-content: space-between;
}
.form-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.form-input-group input {
  margin-left: 70px;
  margin-right: 60px;
    width: 30px;
}
.sc {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.sc a {
  margin: 0 15px;
}
.discord img {
  opacity: 0.7;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease-in-out;
  }
.twitter img {
  opacity: 0.7;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease-in-out;
}
.ig img {
  opacity: 0.7;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease-in-out;
}
.kofi img {
  opacity: 0.7;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease-in-out;
}
.email img {
  opacity: 0.7;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease-in-out;
}
.discord img:hover{
  opacity: 1;
}
.twitter img:hover{
  opacity: 1;
}
.ig img:hover{
  opacity: 1;
}
.email img:hover{
  opacity: 1;
}
.kofi img:hover{
  opacity: 1;
}
input:focus {
	outline: none;
  border: none;
}
input:focus::placeholder {
  opacity: 0;
}

input {

	font-family: 'Fredoka One';
font-style: normal;
font-weight: 400;
font-size: 36px;
line-height: 39px;
/* identical to box height */


background: linear-gradient(244.51deg, rgba(119, 97, 255, 0.7) -0.35%, rgba(138, 184, 255, 0.7) 101.93%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent
	text-align: center;
  border: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

footer {
  position: fixed;
  bottom: 10px;
  left: 25px;
}

footer h2 {
  color: white;
  font-size: 30px;
}
