:root {
  --primary-color-light: #669cf7;
  --primary-color-main: #4f8ef5;
  --primary-color-dark: #1266f1;
  --secondary-color-light: #60d2a2;
  --secondary-color-main: #40c88d;
  --secondary-color-dark: #30a976;
}

body {
  font-family: iranyekan, Arial, Helvetica, sans-serif;
  margin: 0;
  direction: rtl;
  background-color: rgba(231, 239, 248, 0.2);
}

button {
  outline: none;
}

#wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#brand-art {
  position: absolute;
  width: calc(80% - 40px);
  min-width: 280px;
  max-width: 320px;
  user-select: none;
}

#main-box {
  padding: 24px;
  margin-top: calc(5% + 140px);
  padding-top: 100px;
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f0f5fa;
  border-radius: 24px;
}

#avatar-outer-circle {
  display: flex;
  padding: 10px;
  border-radius: 50%;
  background-color: #fff;
}

#avatar-img {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  object-fit: contain;
}

#brand-logo {
  margin-top: 24px;
  width: 150px;
}

#link-grid-wrapper{
  margin-top: 24px;
  width: 50%;
  min-width: 350px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
}

#footer {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#balonet-link {
  margin-top: 10px;
  margin-bottom: 18px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--primary-color-main);
  cursor: pointer;
}

.text-invite-to-app {
  margin: 0;
  margin-top: 24px;
  color: #8a8a8a;
  text-align: center;
  font-size: 0.9rem;
}

.text-main-title {
  margin: 0;
  margin-top: 16px;
  color: #171717;
  text-align: center;
  font-size: 1.5rem;
}

.text-about {
  margin: 0;
  width: calc(90% - 20px);
  max-width: 600px;
  margin-top: 16px;
  margin-bottom: 32px;
  color: #a4a4a4;
  text-align: center;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-app-desc {
  color: #b5b5b5;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5rem;
}

@media (max-width: 478px) {
  .action-button-group {
    flex-direction: column;
  }
}

.action-button-group {
  display: flex;
  gap: 8px;
}

.action-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 160px;
  height: 48px;
  background-color: var(--primary-color-main);
  border: none;
  text-decoration: none;
  text-align: center;
  /* line-height: 48px; */
  border-radius: 13px;
  font-family: iranyekan, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #fff;
  /* margin-top: 32px; */
  margin-bottom: 5px;
  /* padding:10px 15px; */
  cursor: pointer;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: var(--primary-color-dark);
}


.action-button:active {
  background-color: var(--primary-color-light);
}


.small-divider {
  display: none;
  width: 1px;
  height: 10px;
  background-color: var(--secondary-color-main);
  margin-left: 8px;
  margin-right: 8px;
}

.link-item {
  margin: 8px;
  flex-basis: calc(50% - 32px);
  /* min-width: 190px; */
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: none;
  font-family: iranyekan, Arial, Helvetica, sans-serif;
  font-size: 0.8725rem;
  color: var(--secondary-color-main);
  cursor: pointer;
}

.link-item-disabled {
  margin: 8px;
  /* min-width: 190px; */
  padding: 8px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: none;
  font-family: iranyekan, Arial, Helvetica, sans-serif;
  font-size: 0.8725rem;
  color: #8a8a8a;
  cursor: default;
 }

.link-item:hover {
  color: var(--secondary-color-dark);
}

.link-item:active {
  color: var(--secondary-color-light);
}

@media only screen and (min-width: 955px ) {
  #main-box {
    box-sizing: border-box;
    margin-top: 230px;
    padding-top: 32px;
    padding-right: 30%;
    width: 70%;
  }
  
  #avatar-wrapper {
    margin-top: -115px;
  }

  #brand-art {
    align-self: flex-start;
    width: 450px;
    max-width: none;
    margin-right: 180px;
    margin-right: calc(7% + 20px);
  }

  #brand-logo {
    position: relative;
    top: -140px;
    align-self: flex-start;
    margin-right: 360px;
    margin-right: calc(8% + 160px);
    width: 150px;
  }
    
  #link-grid-wrapper{
    margin-top: -50px;
    flex-wrap: nowrap;
    min-width: 700px !important;

  }
  
  .small-divider {
    display: block;
  }
  
  .link-item {
    flex-basis: initial;
    font-size: 1rem;
  }

  .text-app-desc {
    font-size: 0.8rem;
  }
  
}

@media only screen and (min-width: 1200px) {
  #brand-art {
    margin-right: calc(15% + 30px);
  }

  #brand-logo {
    margin-right: calc(11% + 170px);
    width: 180px;
  }
    
  .text-app-desc {
    font-size: 0.8725rem;
  }
  
}

.flex-row {
	display: flex;
	align-items: center;
	margin-top: 16px;
	color: red;
}

#error-svg {
	display: none;
	margin-left: 8px;
	color: red;
}