/* 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 a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title img {
    max-width: 75%;
}
.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%;
}
.unga-bunga {
    display: none;
}

.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 * 38);
    animation: scroll 30s linear infinite; 
}
.slide-track:hover {
    animation-play-state: paused;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 19));
    }
}
.slide {
    max-height: 200px;
    width: 250px;
    display: flex;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-right: 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);
}



.videobox {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.large_box {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.small_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-left: -5%;
    width: 40%;
}

.rule_sheets {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    max-width: 100%;
}
.rule_sheets a {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sheet1 {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-top: 5%;
    margin-bottom: 10%;
}
.sheet1 img {
    max-width: 60%;
    padding-top: 3%;
}

.sheet2 {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-top: 5%;
    margin-bottom: 10%;
}
.sheet2 img {
    padding-top: 3%;
    max-width: 60%;
}
.rule_sheets2 {
    display: none;
}
.videos {
    width: 100%;
}
.feature {
    width: 83%;
    margin: auto;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}
.text_feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    background-color: azure;
    border-radius: 6px;
}
.text_feature h1 {
    color: #707070;
    line-height: 22px;
    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: 60%;
    transform: translate(-50%,-50%);
    cursor: pointer;
}
.shorts {
    display: flex;
    background-color: azure;
    margin: 20px 0;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    max-width: 100%;
}
.shorts img {
    max-width: 100%;
    margin-bottom: -3px;
}
.shorts h1 {
    color: #707070;
    line-height: 22px;
    font-size: 2rem;
    text-align: center;
}
.shorts p {
    margin-left: 20px;
    margin-top: 15px;
    text-align: center;
    color: #707070;
    line-height: 22px;
    font-size: 1rem;
}
.text {
    width: 250%;
}
.objective {
    position: relative;
}

.objective .play-btn {
    width: 55px;
}

.video-player {
    width: 70%;
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%,-50%);
    display: none;
}
video:focus {
    outline: none;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    cursor: pointer;
    opacity: 80%;
}

.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 */
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    cursor: pointer;
    opacity: 80%;
}



/* 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;
    }


    .shorts h1 {
        font-size: 1.5rem;
    }
    .shorts p {
        margin-top: 10px;
        margin-left: 10px;
        font-size: .8rem;
        line-height: 18px;
    }
}









/* 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;
    }
    .shorts h1 {
        font-size: 1.2rem;
    }
    .shorts p {
        margin-top: 5px;
        line-height: 13px;
    }
    
}










/* Nest Hub and ipad mini sideways */

@media (max-width: 1024px) {
    .menu {
        width: 60px;
        font-size: 1.1rem;
    }
    .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;
    }
    .shorts {
        height: fit-content;
        flex-direction: column;
    }

    .shorts h1 {
        margin-top: 5px;
        font-size: 2rem;
    }
    .shorts p {
        margin-top: 5px;
        font-size: 1rem;
        margin-bottom: 5px;
    }
    .text {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
        background-color: azure;
        border-radius: 6px;
    }
}






/* Nest Hub Max Sideways */

@media (max-width: 800px) {
    .menu {
        width: 40px;
        font-size: 0.9rem;
    }
    .slide {
        max-height: 150px;
        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%;
    }
    .social-media img {
        width: 75%;
    }
}






/* Surface Duo Sideways */

@media (max-width: 720px) {
    .menu {
        width: 30px;
        font-size: 0.7rem;
    }
    .lead img {
        width: 95%;
    }
    .unga-bunga-logo img {
        margin-top: 10px;
    }
    .unga-bunga-link img {
        margin-top: 30px;
    }
  

}








/* iphone SE Sideways */

@media (max-width: 667px) {

}










/* Galaxy Fold Sideways */

@media (max-width: 653px) {




}


/* 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;
    }

    .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;
    
    }
    .unga-bunga {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .unga-bunga a {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .unga-bunga img {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
        width: 80%;
    }
    .slide {
        max-height: 100px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .rule_sheets {
        display: none;
    }

    .videobox {
        flex-direction: column;
        align-items: center;
    }
    .large_box {
        width: 100%;
    }
    .small_box {
        margin-left: 0;
        width: 70%;
    }
    .rule_sheets2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .rule_sheets2 a {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .video-player {
        width: 98%;
        top: 57%;
    }
    .legal {
        font-size: .5rem;
    }

}









/* Unknown */

@media (max-width: 480px) {

    .menu {
        font-size: 1.4rem;
    }
    .text_feature h1 {
        line-height: 10px;
        font-size: 1rem;
    }
    .text_feature p {
        line-height: 10px;
        font-size: .7rem;
    }
    .shorts h1 {
        font-size: 1.3rem;
    }
    .shorts p {
        font-size: .7rem;
    }
    .video-player {
        top: 51%;
    }

}








/* iphone XR */

@media (max-width: 414px) {

    .menu {
        font-size: 1.3rem;
    }
    .video-player {
        top: 45%;
    }
}






/* Samsung Galaxy S8+ */

@media (max-width: 360px) {

    .menu {
        font-size: 1.2rem;
    }
    .video-player {
        top: 40%;
    }
}






/* Galaxy Fold  */

@media (max-width: 280px)  {

    .menu {
        font-size: 1.1rem;
    }
    .video-player {
        top: 40%;
    }
}
