@import url(/base.css);

#main {
    display: grid;
    width: 100dvw;
    min-height: calc(100dvh - 8rem);
    max-height: fit-content;
    grid-template-columns: var(--margin) auto min-content var(--margin);
    grid-template-rows: auto auto auto;
    padding-top: 3rem;
    padding-bottom: 5rem;
    background: url(/assets/background.webp);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 300;
    position: absolute;
}

#title {
    grid-column: 2/3;
    grid-row: 1/2;
    height: min-content;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#title img {
    object-fit: contain;
    height: 15rem;
}

#title h1 {
    font-size: 5rem;
}

#search {
    grid-column: 2/3;
    grid-row: 2/3;
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search img {
    height: 4rem;
}

#search input {
    background: none;
    border: none;
    border-bottom: 2px solid var(--font);
    color: var(--font);
    height: 3rem;
    width: 100%;
    max-width: 50vw;
    font-size: 2.5rem;
    font-family: main;
    margin-right: 1rem;
}

#search input:focus {
    border: none;
    border-bottom: 4px solid #3050FF;
    outline: none;
    color: var(--font);
}

#services {
    grid-column: 2/3;
    grid-row: 3/4;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    transform: width .3s;
    max-width: calc(100vw - (var(--margin) * 2));
    overflow-x: scroll;
}

#services div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    height: 10rem;
    width: 10rem;
    margin: .6rem;
    box-shadow: none;
}

#services div img {
    height: 5rem;
    object-fit: contain;
}

#services div p {
    text-align: center;
    margin-bottom: 0px;
}

#services div info {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 3rem;
    height: 3rem;

    img {
        width: 100%;
        height: 100%;
        filter: opacity(.75);
    }
}

#infoPanelContainer {
    grid-column: 3/4;
    grid-row: 1/4;
}

#infoPanel {
    min-width: 0px;
    width: 0px;
    padding: 0px;
    margin-top: 10rem;
    border: none;
    justify-self: right;
    transition: min-width .3s, padding .3s;
}

.hideContent * {
    display: none;
}

#buttonBar {
    position: absolute;
    right: var(--margin);
    top: 5rem;

    button {
        background: none;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    img {
        transform: rotate(90deg);
        transition: transform .3s;
        height: 5rem;
    }
}

.arrowAnimation {
    transform: rotate(-90deg) !important; 
}


@keyframes rotation {
    from {
        transform: rotate(90deg);
    }
    to {
        transform: rotate(-90deg);
    }
}

@media only screen and (max-width: 400px) {
    #title {
        justify-content: center;
    }
}

@media only screen and (max-width: 600px) {
    #infoPanelContainer {
        display: none;
    }
}