html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, hgroup, menu, nav {
	display: block;
}
body {
	line-height: 1;
    max-width: 450px;
    max-height: 820px;
    margin: auto;
    margin-top: 2%;
    background-color: #121212;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
a{
    text-decoration: none;
    color: black;
}
/** end reset css**/

#content-container{  /*420px x 820px for now */
    background-image: url(./images/WinterNight.jpg); 
    background-size: cover;
    display: flex;
    max-width: 500px;
    height: 820px;
    flex-direction: column;
    justify-content: space-between;
}

@media only screen and (min-width: 696px) {
    #content-container{border-radius: 20px;}
} 

/* header */
header{
    display: flex;
    justify-content: space-between;
    padding: 2% 5%;
    color: white;
}

.fa-signal{
    font-size: 12px;
}

#header-right{
    display: flex;
    gap: 10%;
    align-items: center;
    margin-left: -2%;
}

#notif-muted{
    font-size: 0.8em;
}

#header-signal{
    display: flex;
    gap: 2.5px;
    align-items: flex-end;
}

.signal-all{
    background-color: white;
    border-radius: 20px;
    width: 1.5px;
}

#signal-0{
    height: 3px;
}
#signal-1{
    height: 5px;
}
#signal-2{
    height: 7px;
}
#signal-3{
    height: 9px;
}
#signal-4{
    height: 11px;
    /* background-color: gray; */
}

/* Main */

/*partie lockscreen*/
#unlock-device{
    display: flex;
    justify-content: center;
    color: white;
    font-size: 2em;
    margin-top: 110%;
}

.fa-lock{
    cursor: pointer;
}

/*partie password*/
#pass-modal{
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
    top: 0;
	width: 100%;
    max-width: 450px;
	height: 100%;
    max-height: 820px;
    z-index: 1;
	background-color: rgba(0,0,0,0.3);
    flex-direction: column;
    margin-top: 2%;
    border-radius: 20px;
}

#pass-modal-content{
    margin-top: 25%;
	width: 65%;
	height: 45%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.pass-number{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 33%;
    color: white;
    cursor:pointer;
}

.pass-number::before{
    content: "";
    display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	width: 50px;
	height: 50px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50px;
    z-index: -1;
}

.fa-delete-left{
    padding-right: 3px;
}

#pass-preview{
    background-color: rgba(0,0,0,0);
    border: none;
    text-decoration: none;
    color: white;
    margin-bottom: -24%;
    font-size: 1.5em;
    width: 13%;
    pointer-events: none;
}

#pass-annonce{
    position: fixed;
    display: flex;
    justify-content: center;
    padding-top: 19%;
    width: 90%;
    font-size: 1.2em;
    animation-duration: 2s;
    color: white;
    z-index: -1;
    opacity: 0.1;

}

@keyframes wrong-pass{
    0% {color: red; opacity: 1;}
    13% {color: white;}
    25% {color: red;}
    38% {color: white;}
    50% {color: red;}
    70% {opacity: 0.7;}
    80% {opacity: 0.5;}
    90% {opacity: 0.3;}
    100% {opacity: 0.1;}
}

#the-code{
    width: 45px;
    height: 22px;
    padding-top: 0.7%;
    padding-left: 25%;
    transform: rotate(9deg);
}

/*partie homescreen*/
#section-date{
    margin-top: -5%;
    margin-bottom: 20%;
}

#date{
    display: flex;
    justify-content: center;
    color: white;
    font-size: 4em;
    text-shadow: 9px 2px black;
    margin-bottom: -4%;
}

#sub-date{
    display: flex;
    justify-content: center;
    color: white;
    font-size: 1.2em;
}

#main-app{
    display: flex;
    flex-direction: column;
    row-gap: 50px;
    padding-top: 15%;
    animation-duration: 0.3s;
}

@keyframes screen-show{
    0% {opacity: 0.1;}
    20% {opacity: 0.2;}
    40% {opacity: 0.4;}
    60% {opacity: 0.6;}
    80% {opacity: 0.8;}
    100% {opacity: 1;}
}

.app-grid{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.app-all{
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
    border-radius: 15px;
    width: 55px;
    height: 55px;
    cursor: pointer;
}

#foot-app{
    margin-top: 10%;
}

figcaption{
    color: #F8F5FA;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-shadow: black 1px 2px ;
    padding-top: 2%;
    font-size: 0.9em;
}
/*Application*/
#twitter-app{
    background-color: #00acee;
}
#twitch-app{
    background-color: #6441a5;
}
#spotify-app{
    background-color: #1DB954;
}
#discord-app{
    background-color: #7289d9;
}
#reddit-app{
    background-color: #ff4500;
}
#document-app{
    background-color: orange;
}
#random-app{
    background: linear-gradient(to bottom right, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #2E2B5F, #8B00FF);
}
#facebook-app{
    background-color: #4267B2;
}
#google-app{
    background-color: white;
    color: #1EBBEE;
}
#github-app{
    background-color: black;
}
#instagram-app{
    background: linear-gradient(to top right,#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
#linkedin-app{
    background-color: #0e76a8;
}
#calc-app{
    background-color: #02AF33;
}
#youtube-app{
    background-color: #E62117;
}
#steam-app{
    background: linear-gradient(to top right,#00adee, #000000);
}
#bitcoin-app{
   background-color: #f2a900;
}
#phone-app{
    background-color: green;
}
#message-app{
    background-color: lightblue;
}
#photo-app{
    background-color: red;
}
#contact-app{
    background-color: orange;
}

#app-background{
    display: none;
    position: fixed;
    top: 0;
    margin: auto;
    margin-top: 2%;
    width: 100%;
    max-width: 450px;
    height: 820px;
    border-radius: 20px;
    background-color: #373737;
    z-index: 1;
}

#app-content{
	position: fixed;
    z-index: 2;
    margin: 0.2%;
}


/*Partie drawing*/
#open-draw{
    z-index: 3;
    position: relative;
    float: right;
    margin-top: -130%;
    width: 9px;
    height: 26%;
    border-radius: 20px 0 0 20px;
    background-color: rgba(97, 90, 102, 0.452);
    cursor: pointer;
}

#draw-modal{
	display: none;
	position: fixed;
    justify-content: center;
    align-items: center;
	top: 0;
	width: 100%;
    max-width: 450px;
	height: 100%;
    max-height: 820px;
    z-index: 2;
    background-color: rgba(0,0,0,0.4);
    margin-top: 2%;
    border-radius: 20px;
}
  
#draw-modal-content{
    background-color: #3A3B3C;
	width: 80%;
	height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 20px;
}

#canvas-area{
    position: static;
    background-color: white;
    border-radius: 10px;
    margin-left: 5%;
    width: 90%;
    height: 80%;
    z-index: 4;
}

#drawing{
    display: block;
    position: static;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: crosshair;
}

#close-draw{
    width: 7%;
    color: black;
    background-color: transparent;
    border-radius: 20px;
    font-size: 1.5em;
    padding-right: 3%;
}
  
#close-draw:hover,#close-draw:focus{
    cursor: pointer;
}

#draw-button{
    display: flex;
    justify-content: space-between;
}

#clear-draw{
    background-color: transparent;
    padding: 3%;
}

#eraser{
    background-color: transparent;
    padding-top: 3%;
    margin: 5%;
    font-size: 2em;
}

#draw-color{
    display: flex;
    justify-content: space-around;
}

#color-selector{
    margin: 8% 5%;
    width: 50px;
}

#brush-div{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5%;
    font-size: 1em;
    color: gray;
}

/* Footer */
footer{
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-weight: bold;
    padding-bottom: 2%;
    z-index: 3;
}

.nav-footer{
    cursor: pointer;
}

#nav-triangle, #nav-square{
    font-size: 17px;
    color: white;
}

#nav-circle{
    font-size: 14px;
    color: white;
}