#tutorial:not([hidden]),
#chooseAction:not([hidden]) {
    position: fixed;
    display: flex;
    z-index: 9999;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #00000085;
    justify-content: center;
    align-items: center;
}

#tutorial .content,
#chooseAction .content {
    padding: 30px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fdf9f2;
    border-radius: 4px;
    gap: 20px;
}

#tutorial h3,
#chooseAction h3 {
    color: #000;
    font-size: 25px;
    text-align: center
}

#chooseAction h3 p {
    color: var(--primary-color);
}

#tutorial p {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#tutorial p span {
    color: #000;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

#tutorial p span iconify-icon {
    color: #53f16f;
}

#chooseAction .actions {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 15px;
}

#chooseAction .action {
    height: 120px;
    border: solid #34774087 2px;
    display: flex;
    background: #3477404a;
    cursor: pointer;
    border-radius: 3px;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 20vw;
}

#chooseAction .action p {
    color: #347740;
    font-weight: 600;
    text-align: center;
    font-size: 15px;
}

#chooseAction .action#token {
    border: solid #ffb40052 2px;
    background: #ffb40029;
}


#chooseAction .action#token p {
    color: #e9a500;
}

#chooseAction .icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 10px;
}

#chooseAction .icon img {
    width: 100%;
}

#chooseAction button {
    outline: 0;
    border: 0;
    background: #db0808;
    color: #fff;
    padding: 5px 20px;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
}

#read {
    position: relative;
}

#read[mode="loading"] #loader {
    display: flex;
}

#loader {
    position: absolute;
    height: 100%;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

#read[mode="loading"] #about .content {
    display: none;
}

#read #areas[loading] #loader {
    display: flex;
}

#read #areas[loading] #items,
#read #areas[loading] #pagination {
    display: none;
}

#tutorial button,
#about .content>button {
    background: green;
    color: #fff;
    border: 0;
    outline: 0;
    border-radius: 4px;
    font-weight: 600;
    padding: 5px 15px;
    cursor: pointer;
    width: fit-content;
}

#about:not([type="nft"])>.content>button {
    display: none;
}

main {
    display: flex;
    gap: 30px;
}

main>section {
    flex: 0 0 calc(50% - 10px);
}

#view figure img {
    width: 100%;
    cursor: pointer;
}

#map {
    position: relative;
    border-radius: 2px;
    height: 500px;
}

#read>div {
    display: none;
}

#read[mode="areas"] #areas {
    /* position: relative; */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#read:not([mode="areas"]) #returnHome {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    width: fit-content;
}

#read[mode="loading"] #returnHome {
    display: none;
}

#read #returnHome iconify-icon,
#read #returnHome span {
    color: var(--primary-color);
}

#read #returnHome span {
    font-size: 15px;
    font-weight: 600;
}

#read[mode="about"] #about {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

#read #about .content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#read #about .content h1 {
    text-align: center;
    color: #000;
}

#read #about .content>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#read #about .content #tokens {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

}

#read #about:not([type="token"]) #tokens {
    display: none;
}


#tokens .token {
    border: 1px #909090 solid;
    padding: 20px 10px 10px;
    border-radius: 5px;
    width: 30%;
}

#tokens .token .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

#tokens .token .content .icon {
    height: 45%;
    width: 100%;
    display: flex;
    align-items: center;
}

#tokens .token .content img {
    width: 50%;
}

#tokens .token .content img {
    width: 100px;
}

#tokens .token .content .info {
    width: 100%;
}

#tokens .token .content button {
    width: 100%;
}

#read #about .content strong {
    color: #000;
}

#read #about .content p {
    display: flex;
    flex-direction: column;
}

#header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    flex-direction: row-reverse;
}

.search,
.filter .option {
    background-color: var(--background-second);
    padding: 1em;
    border-radius: 4px;
    display: flex;
    gap: 10px;
}

.filter .option {
    padding: .3em .5em;
}

.search input,
.filter .option input {
    background: none;
    outline: none;
    border: none;
    font-size: 15px;
    width: 100%;
}

.filter .showOptions {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
}

.filter .showOptions iconify-icon,
.filter .showOptions span {
    color: var(--primary-color);
}

.filter .showOptions[show="false"] iconify-icon[icon="solar:alt-arrow-left-line-duotone"] {
    display: none;
}

.filter .showOptions[show="true"] iconify-icon[icon="solar:alt-arrow-right-line-duotone"] {
    display: none;
}

.filter:has(.showOptions[show="false"]) .options {
    display: none;
}

#types {
    display: flex;
    gap: 15px;
}

#types .items {
    display: flex;
    gap: 15px;
}

#types .items .item {
    display: flex;
    gap: 5px;
    align-items: center;
    cursor: pointer;
}

#types .items .item img {
    width: 20px;
    height: auto;
}

#items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#items>.item {
    background-color: #fff;
    flex: 0 0 calc(50% - 5px);
    border-radius: 4px;
}

#items>.item .photo {
    width: 100%;
    height: 120px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-size: cover;
    background-repeat: no-repeat;
}

#items>.item .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#items>.item .content .date {
    display: flex;
    justify-content: flex-end;
}

#items>.item .content .actions {
    display: flex;
    gap: 10px;
}

#items>.item .content .actions .items {
    display: flex;
    gap: 5px;
}

#items>.item .content .actions .items .item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#items>.item .content .actions .items .item img {
    width: 25px;
    height: auto;
}

#pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

#pagination iconify-icon {
    color: var(--primary-color);
    cursor: pointer;
}

#pagination .pages {
    display: flex;
    gap: 10px;
}

#pagination .pages span {
    padding: 15px;
    height: 10px;
    border-radius: 100px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#pagination .pages span#current {
    color: #fff;
    background-color: var(--primary-color);
}

#view #area,
#view #subArea {
    display: none;
    position: absolute;
    top: 0;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.restriction {
    overflow: hidden;
}

#view[mode="area"] #area,
#view[mode="subArea"] #subArea,
#view[mode="lote"] #subArea {
    display: flex;
}

#area .figure,
#subArea .figure {
    z-index: 999;
    position: relative;
    left: 10px;
}

#area .figure .items {
    position: relative;
}

#area .figure .items .item {
    position: absolute;
    background-color: #53F16F;
    cursor: pointer;
    transform: rotate(30deg);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

#area .figure .items .item.seleted {
    animation: blinking 0.5s linear infinite;
}

@keyframes blinking {

    0%,
    100% {
        background-color: #D3D3D3;
    }

    50% {
        background-color: #ffffbc;
    }
}

#subArea .figure .items {
    position: absolute;
    width: 100%;
    height: 100%;
}

#subArea .figure .items .item {
    background-color: #53f16f !important;
    /* width: 8px;
    height: 8px; */
    cursor: pointer;
    /* clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); */
    z-index: 999;
}

#subArea .figure .items .item.seleted {
    animation: blinking2 0.5s linear infinite;
}

@keyframes blinking2 {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

#subArea .figure .items .item.privacy,
#privacy {
    background-color: #bcbcbc !important;
}

#subArea .figure .items .item.public,
#public {
    background-color: #01bdae !important;
}

#subArea .figure .items .item.contract,
#contract {
    background-color: #ffb400 !important;
}

.figure svg {
    overflow: visible;
}

#area .figure .items .item:hover,
.light,
.is-owner:hover,
.is-owner:hover::before,
.has-lot:hover,
.has-lot:hover::before {
    background-color: #ffffbc;
}

#informations,
.caption {
    position: absolute;
    background: var(--background);
    z-index: 999;
    right: 2%;
    border-radius: 7px;
    padding: 10px;
    width: 40%;
    height: fit-content;
    top: 2%;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#informations[data-show-data="true"] {
    height: 90%;
}

#informations .header,
.caption .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#informations .header img {
    width: 15px;
    cursor: pointer;
}

#informations .header iconify-icon,
.caption .header iconify-icon {
    cursor: pointer;
}

.header h4 {
    font-weight: 500;
    font-size: 12px;
}

.header iconify-icon {
    font-size: 14px;
}

#informations .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    width: 100%;
}

#informations .container .datas::-webkit-scrollbar {
    width: 5px;
    border-radius: 2px;
}

#informations .container .datas::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#informations .container .datas::-webkit-scrollbar-thumb {
    outline: 0px solid;
    border-radius: 2px;
}

#informations .container .datas::-webkit-scrollbar-thumb {
    background-color: #347740;
}

#informations .container .datas {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 5px;
    overflow: hidden;
    height: 100%;
}

#informations[data-show-data="true"] .container .datas {
    display: flex;
    overflow: hidden auto;
}

#informations .data {
    display: flex;
    background-color: #fff;
    border: 1px solid #909090;
    border-radius: 4px;
    padding: 10px;
    color: #000;
    flex-direction: column;
    gap: 10px;

}

#informations .data h4,
#informations .data .content strong {
    text-align: center;
    color: #000;
    font-size: 12px;
    font-weight: 600;
}

#informations .data .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#informations .data .content .title {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

#informations .data .content .image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#informations .data .content .image img {
    width: 100%;
}

#informations .data .content .image #marker {
    position: absolute;
    width: 30px;
}

#informations .data .content .image span {
    position: absolute;
    color: #fff;
    font-weight: 700;
    font-size: 8px;
    bottom: 3%;
    left: 55%;
}

#informations .data .content .title p {
    font-size: 10px;
    font-weight: 500;
}

#informations .data .content strong {
    display: block;
    text-align: left;
    font-size: 9px;
}

.caption {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: fit-content;
    right: calc(39% + 50px);
    top: 2%;
    height: fit-content;
}

.caption[data-show-data="true"] {
    height: fit-content;
}

.caption[data-show-data="false"] .datas {
    display: none;
}

.caption #info {
    position: absolute;
    left: -23%;
    bottom: -5px;
}

.caption #info iconify-icon {
    color: #fff;
    cursor: pointer;
}

.caption #info span {
    display: none;
    color: var(--primary-color);
    padding: 5px;
    background-color: var(--background);
    font-size: 10px;
    white-space: nowrap;
    font-weight: 600;
    width: fit-content;
    border-radius: 3px;
    right: 2px;
    bottom: 28px;
    position: absolute;
}

.caption #info[data-show-info="true"] span {
    display: block;
}

.caption .datas {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.caption .datas .data .box {
    width: 15px;
    height: 15px;
    border-radius: 5px;
}

.caption .datas .data {
    display: flex;
    gap: 5px;
    align-items: center;
}

.caption .datas .data .box {
    background-color: #53f16f;
}

.caption .datas .data .box#free, .caption .datas .data .box#privy {
    background-color: #347740;
}

.caption .datas .data .box#busy  {
    background-color: #3fc056;
}

.caption .datas .data span {
    font-weight: 600;
    font-size: 10px;
    color: #000;
}

#area:not([type="nft"]) #informations,
#area:not([type="nft"]) .caption {
    display: none;
}

#view:not([mode="subArea"]) #subArea #informations .data#summary,
#view:not([mode="subArea"]) #subArea #informations .data#satellite {
    display: none;
}

#view:not([mode="lote"]) #subArea #informations .data#lote,
#view:not([mode="lote"]) #subArea #informations .data#history {
    display: none;
}

.loader {
    width: 120px;
    height: 22px;
    border-radius: 20px;
    color: var(--primary-color);
    border: 2px solid;
    position: relative;
}

.loader::before {
    content: "";
    position: absolute;
    margin: 2px;
    inset: 0 100% 0 0;
    border-radius: inherit;
    background: currentColor;
    animation: l6 2s infinite;
}

@keyframes l6 {
    100% {
        inset: 0
    }
}

@media screen and (max-width: 1090px) {

    main {
        flex-direction: column;
    }

    main>section {
        flex: none;
    }

    #types {
        flex-wrap: wrap;
    }

    #read #areas #loader {
        top: 100%;
    }

}


@media screen and (max-width: 680px) {
    .header h4 {
        font-size: 9px;
    }

    .header iconify-icon {
        font-size: 10px;
    }

    .caption .datas .data .box {
        width: 10px;
        height: 10px;
        border-radius: 2px;
    }

    .caption .datas .data span {
        font-size: 7px;
    }

}

@media screen and (max-width: 615px) {
    #informations[data-show-data="true"] {
        height: 85%;
    }

    #map {
        height: 300px;
    }

    #tutorial .content {
        width: 80%;
    }

    #informations .data h4,
    #informations .data .content strong {
        font-size: 10px;
    }

    #informations .data .content strong {
        font-size: 7px;
    }

    #informations .data .content .title p {
        font-size: 8px;
    }

    #informations .data .content .image #marker {
        width: 15px;
    }

    #informations .data .content .image span {
        font-size: 6px;
    }
}

@media screen and (max-width: 505px) {
    #items>.item .content .info p {
        font-size: 13px;
    }

    .caption {
        right: calc(39% + 35px);
        top: 2%;
    }

}

@media screen and (max-width: 460px) {

    #items>.item {
        flex: none;
        width: 100%;
    }

    #items>.item .content .info p {
        font-size: 15px;
    }

    #tokens .token {
        width: 25%;
    }

    #tokens .token .content img {
        width: 70px;
    }


    #tokens .token .content button {
        font-size: 10px;
    }
    
    #read #about .content #tokens {
        justify-content: center;
    }
}