* {
    box-sizing: border-box;
}

body {
    padding: 0px;
    margin: 10px;
}

.main {
    margin: 10px;
    display: grid;
    height: calc(80vh - 20px);
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.card {
    display: block;
    width: 80%;
    height: 80%;
    min-height: 100px;
    text-decoration: none;
    justify-content: center;
    display: flex;
    align-items: center;
    font-family: cursive;
    border-radius: 5px;
    text-align: center;
    flex-direction: column;
    z-index: 1;
    position: relative;
}

.card:hover::after {
    border-radius: 10px;
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.index:hover::after {
    background: rgba(0, 0, 0, 0.0);
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 10rem);
}

h6 {
    margin: 0;
    margin-top: 5px;
    font-size: clamp(0.8rem, 1vw, 4rem);
}

.home {
    background-color: rgb(184, 44, 84
    );
    color: white;
}

.wms {
    background-color: rgb(44, 184, 144);
    color: white;
}
.phpmyadmin {
    background-color: rgb(184, 172, 44);
    color: white;
}

@media only all and (max-width:900px) {
    .index {
        order: 1;
        grid-column: span 2;
    }

    .main {
        grid-template-columns: 1fr 1fr;
    }
}

@media only all and (max-width:500px) {
    .main {
        height: auto;
        display: flex;
        flex-direction: column;
    }

    h1 {
        font-size: 2.5rem;
    }
}
