*{box-sizing: border-box}
body {
    font-family: 'Noto Sans', sans-serif;
}
img {max-width: 100%; }


h2 {
    font-size: 1em;
    margin: .5em 1em;
}

a {
    color: darkblue;
    text-decoration: none;
    padding: 2px;
    border-radius: 3px;
}

a:hover {
    text-decoration: underline;
    background: #efefef;
}

a.button {
    background: #eee;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 8px;
}

.card {
    border: 1px solid #ccc;
    padding: 8px;
    padding-bottom: 1em;
    margin: 8px;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    position: relative;
}
.card img {
    margin-bottom: 0.5em;
    border-radius: 5px;
}
.card p {
    margin: 0;
}
.card small {
    font-size: 0.8em;
}
.card .bottom-right a,
.card .bottom-left a {
    position: absolute;
    bottom: 0;
    font-size: 0.5em;
    padding: 2px;
    text-decoration: none;
    color: #ccc;
}
.card .bottom-right a {
    right: 0;
}
.card .bottom-left a {
    left: 0;
    text-align: left;
}
.card .bottom-left a:hover {
    background-color: #efefef;
    border-top-right-radius: 5px;
}
.card .bottom-right a:hover {
    background-color: #efefef;
    border-top-left-radius: 5px;
}


.company.card img {
    height: 80px;
}


.companies.grid a {
    text-decoration: none;
    color: #000;
    padding: 0;
    background: none;
}

.card {
    /* transition: all 0.2s ease-in-out; */
}
.card:hover {
    transform: scale(1.02);
}



.card .description {
    display: none;
}

#show-details:checked ~ .grid .card .description {
    display: block;
}


.details-link {
    background: lightgoldenrodyellow;
    border-radius: 5px;
    padding: 2px 6px;
    border-bottom: 1px solid transparent;
}
.details-link:hover {
    background: rgb(255, 255, 133);
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

.company-show {
    max-width: 800px;
}
.company-show .logo {
    height: 200px;
}