/* 

Project Name: DigiClock.
Author Name: Md. Muhaiminul Islam Shihab
Description: This is a simple HTML, CSS based Front-end Project where you can see the Real Date and Time using touch or hover the Virtual Screen. This project idea inspire by Philip who is a great Software Developer. [Note: If you think there are have any issue with my code, feel free to knock me. I will appriciate and will be learn and solve the issue. Thank you.]

*/





/* Base CSS */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Mobile Frame */
.mobile-frame {
    height: 542.4px;
    width: 267.84px;
    background-color: #000;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.3);
}

/* Frame Top Border */
.top-border {
    background-color: rgb(56, 4, 4);
    width: 50%;
    height: 20px;
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 100;
}

.top-border::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 20%;
    background-color: #000000;
    transform: translateY(-50%);
    width: 50%;
    height: 25%;
    border-radius: 20px;
}

.top-border::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20%;
    background-color: #000000;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Frame Bg Image */
.bg-image {
    position: absolute;
    top: 6px;
    left: 5px;
    height: 530.4px;
    width: 257.84px;
    overflow: hidden;
}

.bg-image::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #000;
    transition: .4s all;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Frame Content */
.body-content {
    position: relative;
    z-index: 100;
    margin-top: 300px;
    font-size: 20px;
    color: #ffffff;
    text-transform: capitalize;
    opacity: 0;
    transition: .4s all;
    padding: 0 15px;
}

/* Hover Effects */
.mobile-frame:hover .bg-image::before {
    background-color: rgba(0, 0, 0, 0.3);
}

.mobile-frame:hover .body-content {
    opacity: 1;
    margin-top: 200px;
}

/* Responsive Code */
@media (max-width: 287.84px and max-height: 562.4px) {
    .mobile-frame {
        height: 90% !important;
        width: 90% !important;
    }
}