*{
    font-family: sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar{
    width: 0px;
}

body{
}

.btnd{
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-end;

}
.btn{
    width: max-content;
    position: relative;
    padding: 6px;
    right: 0;
}

.btn a{
    text-decoration: none;
    background-color: chartreuse;
    padding: 5px;
    font-weight: 600;
}
.container{ 
    margin-left: auto;
    margin-right: auto;
    display: flex;
    background: url("images/dmc-logo.jpg");
    background-repeat: no-repeat;
    background-size:contain;
    background-position: center;
    height: 100vh;
    max-width: 80%;
    flex-direction: column;
    background-position-x: center;
    backdrop-filter: blur(20px);
    
}


.head{

    text-align: center;
    background: rgb(184, 37, 37); 
    margin-top: 20px;
    max-width: 100%;
    max-height: max-content;    
    padding: 20px;
    color:rgb(249, 75, 75);
    border: 3px solid gray;
    border-radius: 10px;
    backdrop-filter: blur(55px);    
}

.head h1{
    color: rgb(255, 255, 255);
    font-weight: 900;
    text-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.image{
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    max-width: 100%;
    gap: 30px;
}
.image,.images{
    margin-top: 40px;
}
.images{
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    max-width: 100%;
    grid-template-rows: repeat(2);
    gap: 30px;
}

.image2{
    
    transition: all .5s ease;
    border: 2px solid gray;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    background: white;
    align-items: center;
    flex-direction: column-reverse;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

}
.image p{
    font-size: larger;
}
.line{
    width: 100%;
    margin-top: 10px;
    background-color: gainsboro;
    border: none;
    height: 1px;
    color: gainsboro;
    

}
.image1{
    transition: all .5s ease;
    border: 2px solid gray;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: ease-in-out;
    flex-direction: column;
    margin-bottom: 30px;
}
.image1:hover{
    transform: scale(1.1);
}
.image2:hover{
    transform: scale(1.1);
    max-height: 5000px;
}
.image1:hover a, .image2:hover a{
    display: block;
}
.image img{
    width: 100%;
    aspect-ratio: 9/6;
    border-radius: 10px;
}
.images img{
    max-width: 100%;
    aspect-ratio: 9/6;
    border-radius: 10px;
}
.image1 p{
    font-weight: 800;
    text-align: center;
    text-shadow: 1px 1px 2px rgb(228, 53, 82);
    background:transparent;
}
.image2 p{
   
        font-weight: 800;
        font-size: 1.1rem;
        text-align: center;
        color: #333;
        margin-top: 10px;
        text-shadow: 1px 1px 2px    rgb(143, 143, 143);
      
      }
      
      .imae2 p{
        font-weight: 800;
        text-align: center;
        margin-top: 10px;
        text-shadow: 1px 1px 2px    rgb(5, 0, 0);
        background:transparent;
        color: #333;
    
    }
body .image2 .main-c{
    text-shadow: 1px 1px 2px    rgb(194, 165, 165);
    color: rgb(186, 17, 17);
    font-weight: 900;
}
.image1 a{
    position: absolute;
    color: rgb(255, 255, 255);
    font-weight: 700;
    background: rgb(6, 109, 165);
    padding: 5px;
    cursor: pointer;
    display: none;
    transition: display 1s;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.image2 a{
    position: absolute;
    color: rgb(255, 255, 255);
    font-weight: 700;
    background: rgb(6, 109, 165);
    padding: 5px;
    cursor: pointer;
    display: none;
    transition: display 1s;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* ANIMATION*/

@keyframes appear  {
    from{
        opacity: 0;
        scale: 0.5;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.image2,.image1{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry cover 20%;
}
.empty{
    height: px;
    font-size: 10rem;
    position: absolute;
    bottom: -150%;
    color: white;
}
@keyframes button{
    from{
        opacity: 0;
        scale: 0;
    }
    to{
        opacity: 1;
        scale: 1;
    }
}

.image2 a{
    animation: button 0.5s linear;
}

.image1 a{
    animation: button 0.5s linear;
}

@media only screen and (max-width: 600px) {
    
    .images {
        margin-top: 60px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 30px;
    }.image {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        max-width: 100%;
        gap: 30px;
    }
  }