*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

.flex{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

img.mainImage{
    height: 100%;
    width: 100%;
}

div.mainImg{
    display: none;
}

section.mainSection{
    height: 90%;
    position: absolute;
}

aside.socialAside{
    height: 17%;
}

div.logoDiv{
    width: 40%;
}

div.logoImg{
    height: 100%;
    width: 100%;
    background-image: url("./images/02_log.jpg");
    background-repeat: no-repeat;
    background-size: contain;
}

div.socDiv{
    width: 60%;
    height: 100%;
    justify-content: space-between;
    align-items: flex-end;
}

aside.textAside{
    height: 100%;
    justify-content: space-evenly;
}

img.textImg,
img.downloadImg{
    width: 100%;
}

aside.socialAside,
aside.socialAside div{
    flex-direction: row;
}

aside.downAside{
    flex-direction: row;
    gap: 3%;
}

aside.downAside a{
    width: 25%;
    height: auto;
}

img.appImg,
img.googleImg{
    width: 100%;
    transition: width 0.2s ease-in-out;
}

a.flex:hover img.appImg,
a.flex:hover img.googleImg {
    width: 110%; 
    transition: width 0.2s ease-in-out;
}


/* ღილაკების ჰოვერი და მთავარი სექციის 65%ზე გადაყვანა */
@media screen and (min-width: 1050px){

    section.mainSection{
        width: 65%;
    }

    .socDiv a {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 12px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
   
    .socDiv img {
        height: 60px;
        width: 60px;
        border-radius: 12px;
        border: 2px solid #ccc;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .socDiv a:nth-child(1):hover img { 
        background-color: white;
        transform: rotate(10deg) scale(1.1);
    }

    .socDiv a:nth-child(2):hover img {
        background: #1877F2;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        transform: rotate(10deg) scale(1.1);
    }
    
    .socDiv a:nth-child(3):hover img {
        background: linear-gradient(45deg, #FF0000, #CC0000);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        transform: rotate(10deg) scale(1.1);
    }

    .socDiv a:nth-child(4):hover img {
        background: linear-gradient(45deg, #F58529 0%, #FEDA77 25%, #DD2A7B 50%, #8134AF 75%,#515BD4 100%);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        transform: rotate(10deg) scale(1.1);
    }
    
    .socDiv a:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        background: rgba(119, 153, 188, 0.2);
        transform: translate(-50%, -50%) rotate(45deg);
        transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
        border-radius: 50%;
        z-index: 0;
        opacity: 0;
    }
    
    .socDiv a:hover:before {
        width: 300%;
        height: 300%;
        background: #007bff80;
        opacity: 1;
    }
    
    .socDiv a:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    }
    
    .socDiv a img {
        position: relative;
        z-index: 1;
    }

}

/* სექციის 90%-ზე გადაყვანა */
@media screen and (max-width: 1049px){

    section.mainSection{
        width: 90%;
    }

    div.socDiv a{
        width: 100%;
        height: 80%;
        display: flex;
        justify-content: flex-end;
    }   
    
    div.socDiv a img{
        width: 80%;
        object-fit: contain;
    }

}

/*ტელეფონის სრული ვერსია */
@media screen and (min-width: 1px) and (max-width: 500px){

    img.mainImage{
        display: none;
    }

    div.mainImg{
        display: block;
        width: 100%;
        height: 100vh;
        background-image: url("./images/01_BG.jpg");
        background-position: right;
        background-repeat: no-repeat;
        background-size: cover;
    }

    section.mainSection{
        height: 100%;
    }

    .socialAside{
        height: 48%!important;
        flex-direction: column!important;
    }

    div.logoDiv{
        width: 45%;
    }

    div.logoImg{
        background-position: bottom;
    }

    div.socDiv a{
        justify-content: center;
    }

    aside.textAside{
        height: 55%;
    }

    aside.downAside{
        flex-direction: column;
    }

    aside.downAside a{
        width: 40%;
    }

    aside.downAside a:nth-child(1){
        justify-content: flex-start;
        height: auto;
    }

    aside.downAside a:nth-child(2){
        margin-bottom: auto;
        justify-content: flex-start;
    }

    aside.downAside a img{
        align-self: center;
    }
    
}