:root {
    --unit-type-yellow: rgb(255, 255, 0);
    --unit-type-cyan: rgb(0, 255, 255);
    --unit-type-seagreen: rgb(0, 255, 153);
    --unit-type-goldstars: rgb(231, 216, 0);
    --unit-type-robindusk: rgb(22, 228, 255);
    --unit-type-barney: rgb(155, 0, 255);
    --unit-type-mintshine: rgb(114, 253, 209);
}
body {
    background-color: rgb(35, 35, 35);
}
/* 
.images-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1dvw;
    padding: 2dvh 2dvw;
    margin: 2dvh 2dvw;
}
*/
.box-container {
    background-color: rgb(28, 32, 32);
    width: 6.5dvw;
    height: 11.5dvh;
    border: solid rgb(92, 32, 92) 5px;
    outline: solid black 3px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.box-container[data-selected="true"] {
    outline: solid 3px;
    outline-offset: 0px;
    box-shadow: 0 0 30px 3px white;
    border: solid 16px;
    }
.box-container[data-selected="true"].yellow-box {
    border-color: var(--unit-type-yellow);
    outline-color: var(--unit-type-goldstars);
    color: white;
    text-shadow: 2px 2px 2px rgb(66, 66, 66), 1px 1px 1px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(53, 53, 53, 0.3);
}        
    
.box-container[data-selected="true"].cyan-box {
    border-color: var(--unit-type-cyan);
    outline-color: var(--unit-type-robindusk);
    color: white;
    text-shadow: 2px 2px 2px black, 1px 1px 1px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.3);
}            

.box-container[data-selected="true"].seagreen-box { 
    border-color: var(--unit-type-seagreen);
    outline-color: var(--unit-type-mintshine);
    color: white;
        text-shadow: 2px 2px 2px black, 1px 1px 1px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.3);
}


.triangle-box {
    background: url('/assets/triangle.png');
    background-size: cover;
    background-color: rgb(255, 255, 0);
    background-position: center;
    background-repeat: no-repeat;
    width: 60%;
    height: 60%;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    /* clip-path: polygon(50% 0%, 0% 100%, 100% 100%); */ 
}
.square-box {
    background: url('/assets/square.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 60%;
    height: 60%;
    background-color: cyan;
    clip-path: none;
        display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    border-radius: 10px;
}
.circle-box {
    background: url('/assets/circle.png');
    background-color: rgb(0, 255, 0);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 65%;
    height: 65%;
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;    
    /* clip-path: circle(50%); */
}
.selected-box {
    outline: solid rgb(255, 254, 183) 5px;
    border-radius: 10px;
    border: solid black 3px;
    width: 125%;
    height: 125%;
    outline-offset: 1px;
    display: grid;
    place-items: center;
}
.image-text {
    text-align: center;
    font-size: 3.4rem;
    display: grid;
    place-self: center;
    font-weight: 900;
    position: relative;
    z-index: 2;
}
.explosion-box {
    border: solid black 1px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.container-item {
    display: grid;
    grid-template-rows: auto 25dvh;
    width: 15dvw;
    height: 25dvh;
    place-items: center;
}
.counter-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2dvw;
    width: 10dvw;
    padding: 6px 4px;
    border-radius: 8px;
    border: solid black 3px;
}
.unit-container {
    width: 10dvw;
    border: solid black 3px;
    border-radius: 8px;
}
.row-box {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    margin: 5dvh 5dvw;
    gap: 5dvh;
}
.box-item {
    display: grid;
    grid-template-rows: 5dvh 1fr;
    place-items: center;
}
.item-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3dvh;
    font-weight: 900;
}
/* media queries here */ 

@media (max-width: 600px) {
    .box-container {
        width: 20vw;
        height: 20vw;
    }
    .image-text {
        font-size: 1.6rem;
    }
}
