@import "general.css";

body{
    main{
        display: flex;
        flex-direction: column;
        align-items: center;
        .container{
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            height: var(--containrHeight);
            width: 100%;
            position: relative;
            .first{
                height: 100%;
                img{
                    height: 100%;
                }
            }
            .second{
                flex-grow: 1;
                display: flex;
                justify-content: center;
                .marginedSecond{
                    width: calc((100vw - var(--containrHeight)) * 0.9);
                    height: var(--containrHeight);
                    display: flex;
                    flex-direction: column;
                    justify-content: space-around;
                    font-size: calc(clamp(15px, 1.75vw, 30px) - var(--containrHeight) * 0.002);
                    .citate{
                        width: 80%;
                        .title{
                            font-size: 1em;
                            font-family: "KyivTypeBold", serif;
                            color: black;
                        }
                        .text{
                            font-size: 0.6em;
                            font-family: "Kurale", serif;
                            color: var(--gray3);
                        }
                    }
                    .right{
                        align-self: flex-end;
                    }
                    .center{
                        align-self: center;
                        text-align: center;
                        width: 80%;
                        font-size: 1.2em;
                        font-family: "KyivTypeBold", serif;
                        color: black;
                    }
                }
            }
            .gradient{
                position: absolute;
                z-index: 5;
                height: 100%;
                aspect-ratio: 1 / 2;
                transform: translateX(calc(-100% - 1px));
                background: linear-gradient(to right, white, transparent);
            }
            #mobileGradient{
                display: none;
            }
        }
        .heading{
            width: 94vw;
            display: flex;
            align-items: center;
            margin-top: 10px;
            .stripe{
                flex-grow: 1;
                height: 5px;
                background-color: black;
                position: relative;
                top: 3px;
            }
            .title{
                font-family: "KyivTypeBolder", serif;
                color: black;
                font-size: min(6.5vw, 50px);
                text-align: right;
                padding: 0 1vw;
            }
        }
        .wrapper{
            width: 97.5%;
            margin: 20px 0;
            display: grid;
            justify-items: center;
            row-gap: max(10px, 1vw);
            grid-template-columns: repeat(4, 1fr);
            .card{
                background-color: white;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 0.5vh;
                font-size: 1.5vw;
                width: 85%;
                img{
                    width: 100%;
                    border-radius: 15px;
                    border: solid clamp(1.5px, 0.35vw, 3px) var(--gray3);
                    transition: transform 0.25s ease;
                }
                h1{
                    width: 100%;
                    font-size: 1em;
                    font-family: "KyivTypeBold", serif;
                    color: black;
                    text-align: center;
                }
                h2{
                    width: 100%;
                    font-size: 0.8em;
                    font-family: "KyivType", serif;
                    color: black;
                    text-align: center;
                }
                p{
                    width: 100%;
                    font-size: 0.7em;
                    font-family: "Kurale", serif;
                    color: var(--gray3);
                }
            }
        }
    }
}

@media (max-aspect-ratio: 7 / 5){
    body{
        main{
            .container{
                height: auto;
                align-items: stretch;
                .first{
                    height: auto;
                    img{
                        width: 55vw;
                    }
                }
                .second{
                    height: auto;
                    .marginedSecond{
                        width: calc(45vw * 0.9);
                        height: auto;
                    }
                }
            }
        }
    }
}

@media (max-width: 1000px){
    body{
        main{
            .container{
                height: auto;
                flex-direction: column;
                .first{
                    height: auto;
                    width: 100vw;
                    aspect-ratio: auto;
                    img{
                        width: 100%;
                    }
                }
                .second{
                    width: 100vw;
                    margin: max(12px, 2vh) 0;
                    flex-grow: 0;
                    .marginedSecond{
                        width: 90%;
                        height: auto;
                        gap: max(10px, 1vh);
                        font-size: 3vw;
                    }
                }
                .gradient{
                    display: none;
                }
                #mobileGradient{
                    display: block;
                    position: absolute;
                    z-index: 5;
                    height: 50vw;
                    width: 100vw;
                    background: linear-gradient(to top, white, transparent);
                    transform: translateY(calc(+100% + 1px));
                }
            }
            .wrapper{
                grid-template-columns: repeat(3, 1fr);
                .card{
                    font-size: 2.25vw;
                }
            }
        }
    }
}

@media (max-width: 700px){
    body{
        main{
            .wrapper{
                grid-template-columns: repeat(2, 1fr);
                .card{
                    font-size: 3vw;
                }
            }
        }
    }
}

@media (hover: hover) and (pointer: fine){
    .card img:hover{
        transform: scale(1.025);
    }
}