/* Full Screen */

/* pertaining to the background */
body {
    background-color: rgb(77, 73, 73);
}
/* pertaining to the header */


header {
    background-color: rgb(20, 3, 3);
    width: 100%;
}
.opener {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}
.title {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 60%;
}

.title img {
    max-width: 95%;
}
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 10%;
    margin-top: 1%;
    margin-bottom: 1%;
    margin-left: 1%;
}
.logo img{
    max-width: 100%;
}



nav {
    margin-top: 3%;
    margin-bottom: auto;
    margin-right: 3%;
}

.menu {
    background-color: rgb(204, 198, 198);
    color: white;
    font-size: 1.5rem;
    border-radius: 10px;
    padding: 11px 25px;
    width: 100px;
    text-align: center;
    display: inline-block;
    position: relative; 
    z-index: 99;  
}

.menu a {
    color: rgb(8, 8, 8);
    text-decoration: none;
}
.dropdown {
    display: none;
    position: absolute;
    padding-top: 20px;
    margin-left: -25px;
    z-index: 99;
}
.menu:hover .dropdown {
    display: block;

}
.dropdown .menu {
    margin-top: 10px;
  
}
.menu:hover {
    background-color: rgb(198, 238, 180);
    transition-duration: 0.5s;
    text-decoration: none;
}


/* pertaining to the main */
main {
    background-color: rgb(77, 73, 73);
    width: 100%;
}

.top {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin-top: 30px;
}
.lead {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.lead img {
    max-width: 80%;

}

.all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.givemeungabunga {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3%;
}

.givemeungabunga img {
    max-width: 100%;
}
.banner {
    max-width: 80%;
}

.star {
    display: flex;
    flex-direction: row;
}
.stars {
    z-index: 99;
}
.starss {
    z-index: 98;
}
.stars img {
    max-width: 150%;
    margin-left: 15%;
}

.starss img {
    max-width: 150%;
    margin-left: -75%;
}







.video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.videos {
    width: 100%;
}
.feature {
    width: 83%;
    padding-top: 3%;
    margin: auto;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.feature img {
    max-width: 100%;
}
.text_feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5%;
    width: 120%;
    background-color: azure;
    border-radius: 6px;
}
.text_feature h1 {
    color: #707070;
    text-align: center;
    line-height: 32px;
    font-size: 2rem;
}
.text_feature p {
    color: #707070;
    line-height: 22px;
    font-size: 1rem;
    text-align: center;
    margin-top: 1%;
}
.play-btn {
    width: 20%;
    position: absolute;
    left: 50%;
    top: 75%;
    transform: translate(-50%,-50%);
    cursor: pointer;
}

video:focus {
    outline: none;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    cursor: pointer;
}

.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 9999; /* Ensure it appears on top of other elements */
}

.video-player {
    width: 70%; /* Adjust width as needed */
    position: fixed; /* Position fixed to keep it centered */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 10000; /* Ensure it appears above the overlay */
}









.events {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}
.events a {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-decoration: none;
    width: 20%;
}
.events img {
    width: 100%;
}
.date {
    background-color: rgb(204, 198, 198);
    text-align: center;
    border-radius: 10px;
    width: 100%;
}

.events h1 {
    font-size: 2rem;
    color: black;
}
.events h2 {
    font-size: 1.5rem;
    color: black;
}

.other {
    max-width: 90%;
}

.other img {
    max-width: 100%;
    margin-top: 8%;
    margin-bottom: 2%;
}
.past {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}
.past img {
    max-width: 60%;
    margin-bottom: 30px;
}



.slide-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}
.slider {
    height: 100%;
    margin: auto;
    position: relative;
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
}
.slide-track {
    display: flex;
    width: calc(250px * 80);
    animation: scroll 60s linear infinite; 
}
.slide-track:hover {
    animation-play-state: paused;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 80));
    }
}
.slide {
    max-height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
    perspective: 100px;
}

.slider img {
    height: 100%;
    transition: transform 1s;
}
.slider img:hover {
    transform: translateZ(20px);
}
.slider::before,
.slider::after {
    background:-moz-linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    content: '';
    height: 100%;
    position:absolute;
    width: 15%;
    z-index: 2;
}
.slider::before {
    left: 0;
    top: 0;
    transform: rotateZ(180deg);
}



/* Pertaining to the Footer */

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 75%;
    margin-top: 50px;
}
.social-media img {
    width: 100%;
}

.legal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 60%;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 1rem;
}


/* Surface 7 pro sideways */

@media (max-width: 1368px) {

    .menu {
        width: 90px;
        font-size: 1.4rem;
    }

}





/* Nest Hub Max*/

@media (max-width: 1280px) {

    .menu {
        width: 80px;
        font-size: 1.3rem;
    }
}









/* ipad air sideways */

@media (max-width: 1180px) {

.menu {
    width: 70px;
    font-size: 1.2rem;
}
.text_feature h1 {
    line-height: 18px;
    font-size: 1.5rem;
}
.text_feature p {
    line-height: 18px;
    font-size: .8rem;
}
    
}










/* Nest Hub and ipad mini sideways */

@media (max-width: 1024px) {
    .menu {
        width: 60px;
        font-size: 1.1rem;
    }
    .events h1 {
        font-size: 1.8rem;
    }
    .events h2 {
        font-size: 1.2rem;
    }
    .social-media img {
        width: 85%;
    }

    .video-player {
        width: 90%;
        top: 55%;
    }
    .close-btn {
        top: 10px;
        right: 10px;
        width: 40px;
    }
}









/* Samsung Galaxy A51/71 Sideways and Surface Pro7 and Samsung Galaxy S20 Ultra */

@media (max-width: 915px) {
    .menu {
        width: 50px;
        font-size: 1rem;
    }
    .events h1 {
        font-size: 1.6rem;
    }
    .events h2 {
        font-size: 1rem;
    }

}






/* Nest Hub Max Sideways */

@media (max-width: 800px) {
    .menu {
        width: 40px;
        font-size: 0.9rem;
    }
    .slide {
        max-height: 300px;
        padding-left: 10px;
        padding-right: 10px;
    }
    .text_feature h1 {
        line-height: 14px;
        font-size: 1.2rem;
    }
    .text_feature p {
        line-height: 14px;
    }
    .video-player {
        width: 95%;
        top: 50%;
    }
    .close-btn {
        top: 8px;
        right: 10px;
        width: 30px;
        opacity: 100%;
    }
    .events h1 {
        font-size: 1.4rem;
    }
    .events h2 {
        font-size: 0.8rem;
    }
    .social-media img {
        width: 75%;
    }

}






/* Surface Duo Sideways */

@media (max-width: 720px) {
    .menu {
        width: 30px;
        font-size: 0.7rem;
    }
    .lead img {
        width: 95%;
    }
    .events h1 {
        font-size: 1.2rem;
    }
    .events h2 {
        font-size: 0.6rem;
    }

}








/* iphone SE Sideways */

@media (max-width: 667px) {
    .events h1 {
        font-size: 1rem;
    }
    .events h2 {
        font-size: 0.5rem;
    }

}










/* Galaxy Fold Sideways */

@media (max-width: 653px) {

.star1 {
    margin-top: -20%;
}
.star2 {
    margin-top: -70%;
    background-color: aqua;
}


}


/* Nest Hub Sideways*/

@media (max-width: 600px) {

}










/* Surface Duo */

@media (max-width: 540px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .opener {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 90%;
    }
    nav {display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        }
    .menu {
        width: 80%;
        font-size: 1.5rem;
    }

    .logo {
        margin-top: 10px;
        max-width: 50%;
    }
    .logo img {
        margin-left: auto;
        margin-right: auto;
    }
    .container2 {
        flex-direction: column;
    }
    .hidemobile {
        display: none;
    }
    nav .menu  {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .menu:hover .dropdown {
        width: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 20px;
        margin-left: 8px;
    
    }
    .events a {
        width: 30%;
    }
    .events h1 {
        font-size: 0.8rem;
    }
    .past {
        margin-top: 10px;
    }
    .past img {
        margin-bottom: 10px;
    }

    .slide {
        max-height: 200px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .video-player {
        width: 98%;
        top: 57%;
    }

    .legal {
        font-size: .5rem;
    }

}









/* Unknown */

@media (max-width: 480px) {

    .menu {
        font-size: 1.4rem;
    }
    .events h1 {
        font-size: 0.7rem;
    }

    .text_feature h1 {
        line-height: 13px;
        font-size: 1rem;
    }
    .text_feature p {
        line-height: 10px;
        font-size: .7rem;
    }
    .video-player {
        top: 51%;
    }

}








/* iphone XR */

@media (max-width: 414px) {

    .menu {
        font-size: 1.3rem;
    }
    .video-player {
        top: 45%;
    }
    .events h1 {
        font-size: 0.6rem;
    }

}






/* Samsung Galaxy S8+ */

@media (max-width: 360px) {

    .menu {
        font-size: 1.2rem;
    }
    .video-player {
        top: 40%;
    }
    .events h1 {
        font-size: 0.5rem;
    }

}






/* Galaxy Fold  */

@media (max-width: 280px)  {

    .menu {
        font-size: 1.1rem;
    }
    .video-player {
        top: 40%;
    }
}
