body {
    top: 0px;
    left: 0px;
    margin: 0;
    position: absolute;
    transform-origin: 0px 0px;
    overflow: hidden;
    font-family: 'Montserrat';
}

.container {
    background-image: linear-gradient(to right bottom, #28183b, #3f6b82),
        linear-gradient(to left bottom, #133245, #12403e);
    padding: 0px;
    top: 0px;
    left: 0px;
    width: 1920px;
    height: auto;
    position: absolute;
}

.header {
    color: white;
    font-weight: 700;
    font-size: 30px;
    margin: 20px;
}

.data-container {
    display: grid;
    gap: 20px;
    margin: 10px 20px;
    width: 1840px;
}

.category-box {
    box-sizing: border-box;
    border: 3px solid #ccc;
    background-color: White;
    width: 452px;
    height: fit-content;
    padding: 0px;
    margin: 0 auto 10px;
    box-shadow: 0 0 20px rgba(23, 11, 42, 0.5);
}

.info-box {
    box-sizing: border-box;
    border: 0;
    width: 420px;
    height: fit-content;
    text-align: center;
    padding: 0px;
    margin: 0 auto 30px;
    color: white;
    font-size: 20px;
    font-weight: 500;
    position: absolute;
    left: 1420px;
    top: 760px;
    display: block;
}

.info-box img {
    max-width: 240px;
    height: auto;
}

.category-box h2,
.category-box h3 {
    padding: 8px 6px;
    color: white;
    margin-top: 0;
    margin-bottom: 0px;
    font-size: 15px;
}

.category-box h3 {
    font-size: 12px;
}

.category-box ul {
    font-size: 12px;
    font-weight: 700;
}

.category-box ul {
    list-style-type: none;
    padding-left: 0;
}

.company-list li {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-height: 42px;
    max-width: 120px;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 6px;
    list-style-type: none;
    padding: 2px;
}

.company-name {
    text-transform: uppercase;
    text-align: center;
}

#extraDataModal {
    display: none;
    position: fixed;
    z-index: 4;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

#extraDataModal.show {
    transition: opacity 0.4s;
    opacity: 1;
}

#extraDataModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 6px solid #592896;
    width: 40%;
    position: relative;
    animation: flipAndScale 0.8s ease-in-out forwards;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.5);
}

.modal-text {
    margin: 32px 50px 16px 50px;
}

#closeModal {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #592896;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: absolute;
    top: -20px;
    right: -20px;
}

.footer {
    position: relative;
    left: 0px;
    width: 100%;
    margin-top: 10px;
    font-size: small;
    text-align: center;
    color: #bbb;
}

.footer a {
    text-decoration: underline;
    color: inherit;
}

@keyframes flipAndScale {
    from {
        transform: scale(0) rotate3d(1, 1, 0, -90deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate3d(0, 1, 0, 0deg);
        opacity: 1;
    }
}

/* For clickable logos/names with details */
.has-details {
    transition: 
        filter 0.7s cubic-bezier(0.4,0,0.2,1),
        opacity 0.7s cubic-bezier(0.4,0,0.2,1),
        color 0.7s cubic-bezier(0.4,0,0.2,1),
        font-size 0.7s cubic-bezier(0.4,0,0.2,1),
        max-width 0.7s cubic-bezier(0.4,0,0.2,1),
        max-height 0.7s cubic-bezier(0.4,0,0.2,1),
        transform 0.7s cubic-bezier(0.4,0,0.2,1);
    opacity: 0.85;
    filter: grayscale(10%);
}

.has-details.logo-image {
    max-height: 36px;
    max-width: 105px;
}

.has-details.company-name {
    font-size: 100%;
    letter-spacing: 0.5px;
}

.has-details:hover, .has-details:focus {
    opacity: 1;
    filter: grayscale(0%);
}

.has-details.logo-image:hover, .has-details.logo-image:focus {
    transform: scale(1.05);
}

.has-details.company-name:hover, .has-details.company-name:focus {
    font-size: 105%;
    color: #592896;
}

#searchIcon {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(23,11,42,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#searchIcon:hover {
    background: #f3eaff;
}

#searchIcon img {
    width: 22px;
    height: 22px;
    display: block;
}

#searchInput {
    position: fixed;
    top: 24px;
    right: 84px;
    z-index: 11;
    width: 620px;
    height: 40px;
    font-size: 18px;
    border: 1.5px solid #592896;
    border-radius: 2px;
    padding: 0 18px;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23,11,42,0.10);
    transition: opacity 0.2s, width 0.2s;
}

.search-active .logo-image,
.search-active .company-name {
    opacity: 0.2;
    pointer-events: none;
    transition: filter 0.2s, opacity 0.2s;
}