/* General Reset */
* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    /* overflow: hidden; */
}

body {
    height: 100vh;
    width: 100vw;
    background-image: url('background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#background {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    padding: 1vw;
    max-width: max-content;
    display: grid;
    margin: 4vw;
    grid-template-columns: 55% auto;
    gap: 5vw;
}

.rightside{
    display: flex;
    height: 100%;
}

/* Header */
.logo {
    display: flex;
    background-color: #8C52FF;
    font-size: 1.75vw;
    color: #ECEADA;
    font-weight: bold;
    border-radius: 1vw;
    width: fit-content;
    padding: 0.5vw;
    box-shadow: 0.5vw 0.5vw 0 rgba(94,12,176,1);
    margin-bottom: 4vw;
    align-content: center;
    justify-content: center;

    #logotext {
        padding-left: 0.5vw;
        height: 1.75vw;
        justify-self: center;
        align-self: center;
    }

    img {
        height: 3vw;
    }
}

.images {
    margin-bottom: 2vw;
    padding-bottom: 2vw;
    display: flex;
    justify-content: center;
    gap: 2vw;
}

.images img {
    height: 20vw;
    width: auto;
    border-radius: 1vw;
    box-shadow: 0.5vw 0.5vw 0.5vw #ff9000;
    transition: transform 0.3s;
}

.images img:hover {
    transform: scale(1.05);
}

/* Countdown Timer */
.timer {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5vw;
    border-radius: 1vw;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.time p {
    font-size: 6.6vw;
    font-weight: 800;
    color: #8C52FF;
    text-shadow: 0.5vw 0.5vw 0 rgba(94,12,176,1);
}

.time span {
    font-family: jomhuria;
    color: #474747;
    font-size: 2.3vw;
}

/* Stay In Touch */
.stay-in-touch {
    position: relative;
    background: #FFFDED;
    padding: 2.5vw;
    border-radius: 1vw;
}

.stay-in-touch h2 {
    margin-bottom: 0.5vw;
    font-weight: 800;
    color: #000;
    text-align: left;
    font-size: 2.3vw;
}

.note {
    font-size: 1.15vw;
    font-weight: 600;
    margin-bottom: 2vw;
    color: #000;
    text-align: left;
}

.email-form {
    margin: 1vw 0 2vw;
    grid-template-columns: 70% auto;
}

.email-form input {
    font-weight: 600;
    font-size: 1.15vw;
    width: 70%;
    padding: 0.6vw;
    background-color: #fffded;
    border-width: 0.2vw;
    border-style: solid;
    border-radius: 1vw;
    border-color: #000;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    box-sizing: border-box;
}

.email-form button {
    width: 26.5%;
    opacity: 1;
    font-size: 1.15vw;
    font-weight: 800;
    padding: 0.6vw;
    border-width: 0.2vw;
    background-color: #8C52FF;
    color: #FFFDED;
    border-style: solid;
    border-radius: 1vw;
    border-color: #5E0CB0;
    cursor: pointer;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-sizing: border-box;
}

.email-form button:hover {
    transition: 0.2s;
    background: #5E0CB0;
}

.description {
    font-size: 1.15vw;
    color: #474747;
    font-weight: 600;
    margin-top: 1vw;
    margin: 1vw 0.5vw 0;
}

/* Social Media Icons */
.social-icons {
    background-color: #ECEADA;
    border-radius: 1vw;
    padding: 1vw;
    position: absolute;
    bottom: 2.5vw;
    width: 80.5%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.social-icons img {
    line-height: center;
    width:3vw;
    height:3vw;
    transition: transform 0.2s;
    padding: 0.3vw;
    border-radius: 1vw;
}

.social-icons img:hover {
    transform: scale(1.1);
}

@media screen and (orientation:portrait) { 
    body {
        max-width: auto;
        height: fit-content;
    }

    .container {
        display: flex;
        flex-direction: column;
    }

    .leftside {
        display: flex;
        flex-direction: column;
    }

    .logo {
        padding: 1.5vw;
        box-shadow: 1vw 1vw 0 rgba(94,12,176,1);
        border-radius: 2vw;
        order: 1;

        #logotext {
            height: 4vw;
            margin-left: 2vw;
        }

        img {
            height: 8vw;
        }
    }

    .images {
        margin-top: 10vw;
        padding-bottom: 2vw;
        order: 3;
    }
    
    .images img {
        height: 30vw;
        width: auto;
        border-radius: 2vw;
        overflow: hidden;
    }

    /* .images {
        display: flex;
        overflow: hidden;
    }
    
    .images img {
        width: 100%;
        transition: transform 0.5s ease-in-out;
    }
    
    .images img:not(:first-child) {
        margin-left: -100%;
    }
    
    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-100%);
        }
    }
    
    .images img:first-child {
        animation: slide 5s infinite alternate;
    } */

    /* 
    main#images {
    grid-row: 1 / 2;
    grid-column: 1 / 8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 600px;
    --items: 5;
    --middle: 3;
    --position: 1;
    pointer-events: none;
    }

    .images img {
        text-align: center;
        position: absolute;
        --r: calc(var(--position) - var(--offset));
        --abs: max(calc(var(--r) * -1), var(--r));
        transition: all 0.25s linear;
        transform: rotateY(calc(-10deg * var(--r)))
        translateX(calc(-300px * var(--r)));
        z-index: calc((var(--position) - var(--abs)));
    }

    .images img:nth-of-type(1) {
        --offset: 1;
    }
    .images img:nth-of-type(2) {
        --offset: 2;
    }
    .images img:nth-of-type(3) {
        --offset: 3;
    }
    .images img:nth-of-type(4) {
        --offset: 4;
    }

    input:nth-of-type(1) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    input:nth-of-type(1):checked ~ main#images {
        --position: 1;
    }

    input:nth-of-type(2) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
    input:nth-of-type(2):checked ~ main#images {
        --position: 2;
    }

    input:nth-of-type(3) {
        grid-column: 4 /5;
        grid-row: 2 / 3;
    }
    input:nth-of-type(3):checked ~ main#images {
        --position: 3;
    }

    input:nth-of-type(4) {
        grid-column: 5 / 6;
        grid-row: 2 / 3;
    }
    input:nth-of-type(4):checked ~ main#images {
        --position: 4;
    } 

    /* Countdown Timer */
    .timer {
        margin: 0 4vw;
        border-radius: 2vw;
        order: 2;
    }

    .time p {
        font-size: 11vw;
    }

    .time span {
        font-size: 4.6vw;
    }

    /* Stay In Touch */
    .stay-in-touch {
        border-radius: 2vw;
        padding: 4vw 5vw;
    }

    .stay-in-touch h2 {
        margin-bottom: 1vw;
        font-size: 6vw;
    }

    .note {
        font-size: 3vw;
        margin-bottom: 3vw;
    }

    .email-form {
        margin: 6vw 1vw 4vw;
        grid-template-columns: 80% auto;
    }

    .email-form input {
        font-size: 3vw;
        padding: 1.2vw;
        border-width: 0.4vw;
        border-radius: 2vw;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        box-sizing: border-box;
    }

    .email-form button {
        font-size: 3vw;
        padding: 1.2vw;
        border-width: 0.4vw;
        border-radius: 2vw;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        box-sizing: border-box;
    }

    .description {
        font-size: 3vw;
        margin-top: 2vw;
        margin: 1vw 1vw 71vw;
    }

    /* Social Media Icons */
    .social-icons {
        border-radius: 4vw;
        padding: 2vw;
        bottom: 5vw;
        width: 84%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    .social-icons img {
        width:6vw;
        height:6vw;
        padding: 0.3vw;
        border-radius: 2vw;
    }

}
