/* mandala.css */

#mandala-container {
    position: relative;
    width: 700px; /* Diâmetro do círculo externo */
    height: 700px;
    margin: 0 auto;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid #2c4491; /* Ajuste ou remova conforme necessário */
}

.inner-circle {
    width: 260px; /* Diâmetro do círculo interno */
    height: 260px;
}

.middle-circle {
    width: 478px; /* Novo diâmetro do círculo do meio */
    height: 478px;
}

.outer-circle {
    width: 700px; /* Diâmetro do círculo externo */
    height: 700px;
}

#mandala-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.mandala-icon {
    position: absolute;
    width: 90px; /* Tamanho das imagens */
    height: 90px;
    background: #fff;
    transition: transform 0.3s ease; 
    border-radius: 10px;
    
}

.mandala-icon:hover {
    transform: scale(1.22); /* Zoom para 110px (90px * 1.22 ≈ 110px) */
    z-index: 30;
}


.mandala-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 0.3s ease; /* Transição suave */
    transform-origin: center center;
    border-radius: 10px;
}




/* Overlay com transparência */
#mandala-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Preto com 70% de transparência */
    z-index: 99;
    display: none; /* Inicialmente oculto */
}

/* Popup */
#mandala-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
	width: 800px;
	max-width: 90%;
	max-height: 90%;
}
div#mandala-popup-content ul {
    padding: 0;
    list-style: none;
	display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -10px;
  margin-left: -10px;
}
div#mandala-popup-content ul li{
	position: relative;
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
	-ms-flex: 0 0 50%;
  flex: 0 0 50%;
  max-width: 50%;
}
div#mandala-popup-content ul li a{
	display: block;
	padding-bottom: 20px;
	text-align: center;
	font-weight: 500;
}
div#mandala-popup-content ul li img{
	display: block;
	margin: 0 auto 20px;
	max-width: 100%;
	height: 120px;
    object-fit: contain;
}
@media(min-width: 1200px){
div#mandala-popup-content ul li{
	-ms-flex: 0 0 25%;
  flex: 0 0 25%;
  max-width: 25%;
	}
}

/* Loader */
#mandala-loader {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Título da Categoria */
#mandala-popup-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

/* Botão de fechar */
#mandala-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
}

#mandala-popup-close:hover {
    color: red;
}

/* Centralizar o conteúdo do popup */
#mandala-popup-content {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}


/* Media query para telas menores que 950px (formato de galeria com 5 ícones por linha) */
@media (max-width: 950px) {
    /* Esconde os círculos no mobile */
    .circle {
        display: none;
    }

    #mandala-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .mandala-icon {
        position: static; /* Remove o posicionamento absoluto para o layout de galeria */
        width: 18%; /* Aproximadamente 5 ícones por linha */
        height: auto;
        margin: 5px;
    }
    
    .mandala-icon:nth-child(odd) {
        background: #8C00A9;
    }
    
    .mandala-icon:nth-child(even) {
        background: #1862C3;
    }
    
    .mandala-icon img {
        width: 100%;
        height: auto;
        filter: brightness(0) invert(1);
    }
    #mandala-logo {
        display: none;
    }
}

/* Media query para telas menores que 768px (formato de galeria com 3 ícones por linha) */
@media (max-width: 768px) {
    .mandala-icon {
        width: 23%; /* Aproximadamente 3 ícones por linha */
        height: auto;
        margin: 3px;
		padding: 10px;
    }
}
@media (max-width: 480px) {
    .mandala-icon {
        width: 47%; /* Aproximadamente 3 ícones por linha */
        height: auto;
        margin: 3px;
		padding: 10px;
    }
}