.rowcontainer {
    padding: 10px;
}

.medium-container {
    padding: 0 75px;
    background-color: #fff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0 auto;
    max-width: 600px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.image-SoMe-table {
    margin: 20px auto 0px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.image-SoMe-cell {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.image-SoMe-cell img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: cover;
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.image-container .overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    /* background-color: #9639ff; */
    background-color: rgba(150, 57, 255, 0.9);
    color: #fff;
    font: clamp(10px, 1vw, 14px) 'TECSans-Regular', Arial, Helvetica, sans-serif;
    overflow-wrap: break-word;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease;
}

.text-block {
    font: 14px 'TECSans-Regular', sans-serif;
    text-align: center;
}

.image-container:hover img {
    opacity: 1;
}

.image-container:hover .overlay {
    opacity: 1;
}

/* Moving text */
.movingtext-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 10px 0;
}

.movingtext-wrapper {
    display: flex;
    width: max-content;
    animation: scrollText 200s linear infinite;
    gap: 100px;
}

.word-image {
    height: 190px;
    width: auto;
    flex-shrink: 0;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
        visibility: visible;
    }

    90% {
        visibility: visible;
    }

    95% {
        visibility: hidden;
    }
    100% {
        transform: translateX(-50%);
        visibility: visible;
    }
}
/* Moving text END */

.row2 .text-block {
    flex: 1;
    padding: 10px;
    background-color: #fff;
    box-sizing: border-box;
}

#forsideimg {
    display: block; 
    max-width: 100%; 
    height: auto; 
    margin: 0 auto; 
    object-fit: cover; 
}

.row3 {
    box-sizing: border-box;
    color: rgb(33, 37, 41);
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 20px;
    margin-left: 0; 
    margin-right: 0; 
    margin-top: 0px;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    text-align: center;
    width: 100%; 
}


/* .row3 img {
    width: 100%;
    height: auto;
    display: block;
} */

.row4 {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: center;
}

.row4 h1 {
    margin: 30px auto;
    font-family: 'TECSans-Regular', Arial, Helvetica, sans-serif;
    font-weight: normal;
}

.row4 .info-block {
    margin-bottom: 10px;
    background-color: #fff;
    padding: 10px;
    width: 100%;
}

.row4 .text-field {
    margin-bottom: 10px;
}

.row4 .text-field label {
    margin-right: 10px;
}

.logo-container {
    display: flex;
    gap: 50px;
    margin: 20px auto;
    justify-content: center;
}

.logo-container img {
    height: auto;
}

#hofor {
    max-width: 100px;
    margin-right: 20px
}

#tietgen {
    max-width: 180px;
}

#tec {
    max-width: 150px;
}


.text-left-gray {
    text-align: left;
    color: gray;
}

.text-block {
    font: 14px Verdana, sans-serif;
    text-align: center;
}



/* Media query for tablets */
@media screen and (max-width: 768px) {
    .image-container .overlay {
        font: 11px 'TECSans-Regular', Arial, Helvetica, sans-serif;
    }
}

/* Media query for tablets */
@media screen and (max-width: 768px) {
    .image-SoMe-table {
        grid-template-columns: 1fr;
    }

    .image-SoMe-cell {
        flex: 1 1 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .image-dev-table {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        flex-direction: column;
    }

    .card-stories {
        flex-direction: column;
    }

    .col-md-2,
    .col-md-8 {
        flex: none;
        max-width: 100%;
    }

    .container {
        padding: 0 30px;
        background-color: #fff;
        font-family: Arial, Helvetica, sans-serif;
    }

    .present-video {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .image-container .overlay {
        position: relative;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 1;
        transition: .5s ease;
        background-color: #9639ff;
        color: #fff;
        font: 14px 'TECSans-Regular', Arial, Helvetica, sans-serif;
        padding: 20px 20px 20px 20px;
    }

    .image-container:hover img {
        opacity: 1;
    }

    .movingtext-container {
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        width: 100%;
        margin: 0 auto;
        /*   text-align: center;*/
        /* font: 50px Garamond, serif; */
    }

    object.word-image {
        width: auto;
        height: 77px;
        display: inline-block;
        animation: scrollText 30s infinite;
        opacity: 1;
        margin: 0 30px 10px 0;
        vertical-align: top;
    }

    .row1 .column {
        flex: 1 1 100%;
        /* Flex-grow, flex-shrink, flex-basis */
        padding: 10px;
        box-sizing: border-box;
    }

    .row4 h1 {
        font-size: 20px;
    }

    .logo-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .logo-container img {
        height: auto;
        margin: 10px 0;
    }

    #hofor {
        max-width: 100px;
        margin-left: 48px;
    }

    #tietgen {
        max-width: 180px;
        margin-left: 30px;
    }

    #tec {
        max-width: 150px;
        margin-left: 28px;
    }

    .atopos-text {
        margin-top: 20px;
        width: 100%
    }
}

/* Media query for mobile phones */
@media (max-width: 480px) {
    .image-dev-table {
        grid-template-columns: 1fr;
    }

    .image-SoMe-table {
        grid-template-columns: 1fr;
    }

    object.word-image {
        width: auto;
        height: 50px;
        display: inline-block;
        animation: scrollText 30s infinite;
        opacity: 1;
        margin: 0 10px 10px 0;
        vertical-align: top;
    }
}