@font-face {
    font-family: custom-font;
    src: url(fonts/time.ttf);
}
body{
    margin: 0;
    overflow: hidden;
}
.main{
    height: 100vh;
    width: 100vw;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: yellowgreen;
    font-family: custom-font;
}
.title{
    top: 5%;
    position: absolute;
}
.clock{
    top: -50px;
    height: 200px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 1%;
}
#hours,#minutes,#seconds{
    height: 70px;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.9em;

}
.semi{
    font-size: 4.8em;
}
#days{
    position: absolute;
    top: 37px;
    font-size: 3em;
}
#format{
    position: absolute;
    right: 30px;
    bottom: 38px;
    font-size: 1.5em;
}
#date{
    position: absolute;
    left: 35px;
    bottom: 35px;
    font-size: 1.8em;
}
.options{
    height: 120px;
    width: 50px;
    position: absolute;
    right: 5%;
    bottom: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20%;
}
#info,#setting{
    font-size: 1.7em;
    color: yellowgreen;
    background-color: transparent;
    border: 2px white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#info-page{
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
#setting-page{
    width: 100vw;
    height: 100vh;
    background-color: rgb(255, 255, 255);
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}
.msg{
    
    color: black;
}
.closeSettingbtn{
    height: 40px;
    width: 40px;
    border: 2px rgb(0, 0, 0) solid;
    color: rgb(0, 0, 0);
    position: absolute;
    top: 5%;
    right: 3%;
    background-color: transparent;
    font-size: 2em;
}
.closeSettingbtn:hover{
    transform: scale(1.2);
    transition: 0.3s;
}
.close-btn{
    height: 40px;
    width: 40px;
    border: 2px yellowgreen solid;
    color: yellowgreen;
    position: absolute;
    top: 5%;
    right: 3%;
    background-color: transparent;
    font-size: 2em;
}
.close-btn:hover{
    transform: scale(1.2);
    transition: 0.3s;

}
#info-panel {
    width: 85%;
    max-width: 450px;
    height: 40%;
    white-space: 20px;
    padding: 0.8em;
    border: 2px solid yellowgreen;
    border-radius: 10px;
    line-height: 1.2;
    font-size: 1.2em;
    backdrop-filter: blur(4px);
    /* display: none; */
  }
  
  #info-panel h2 {
    margin-top: 0;
    font-size: 1.5em;
    text-align: center;
    border-bottom: 1px solid yellowgreen;
    padding-bottom: 0.3em;
  }
  
  #info-panel ul {
    padding-left: 1.2em;
  }
  
  #info-panel p {
    margin-top: 0.8em;
    text-align: center;
  }

@media (min-width: 768px){
    .clock{
        top: 50px;
        height: 200px;
        width: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 1%;
    }
    #hours,#minutes,#seconds{
        height: 70px;
        width: 70px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 4.9em;
    
    }
    .semi{
        font-size: 4.8em;
    }
    #days{
        position: absolute;
        font-size: 3.5em;
        top: 0;
    }
    #format{
        position: absolute;
        right: 35px;
        bottom: 38px;
        font-size: 1.5em;
    }
    #date{
        position: absolute;
        left: 30px;
        bottom: 35px;
        font-size: 1.8em;
    }
    #info-panel {
        width: 90%;
        max-width: 400px;
        padding: 1em;
        border: 1px solid yellowgreen;
        border-radius: 10px;
        font-size: 1.1em;
        backdrop-filter: blur(4px);

      }
    }
