/*
    This file is used to reset CSS applied by default by browsers.
*/
body {
    margin: 0;
}

canvas {
    position: absolute;
    left: 50%;
    margin-left: -400px;
    top: 50px;
    /* display: none; */
}

@-webkit-keyframes fadeOut {
    0% { opacity: 1;}
    99% { opacity: 0.01;width: 100%; height: 100%;}
    100% { opacity: 0;width: 0; height: 0;}
}  
@keyframes fadeOut {
    0% { opacity: 1;}
    99% { opacity: 0.01;width: 100%; height: 100%;}
    100% { opacity: 0;width: 0; height: 0;}
}

#menu {
    height: 600px;
    width: 800px;
    background: rgb(253,245,230);
    /* opacity: 0.8; */
    position: absolute;
    left: 50%;
    margin-left: -400px;
    top: 50px;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu-info {
    height: 600px;
    width: 800px;
    position: absolute;
    left: 50%;
    margin-left: -400px;
    top: 50px;
    z-index: 2;
    display: none;
    justify-content: center;
    align-items: center;
    
}

@-webkit-keyframes fadeIn {
    100% { opacity: 0;width: 0; height: 0;}
    99% { opacity: 0.01;width: 100%; height: 100%;}
    0% { opacity: 1;}
}  
@keyframes fadeIn {
    100% { opacity: 0;width: 0; height: 0;}
    99% { opacity: 0.01;width: 100%; height: 100%;}
    0% { opacity: 1;}
}

#cover-die {
   height: 600px;
    width: 800px;
    background: rgb(236, 69, 18,0.6);
    position: absolute;
    left: 50%;
    margin-left: -400px;
    top: 50px;
    z-index: 3;
    justify-content: center;
    align-items: center; 
    display: none;
}

.nav {
    background-color: #fdfdfd;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #dad9d9;
    z-index: 10;
}

.nav > a {
    margin: 10px;
}

.main-div {
    background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.5)), url("https://image.freepik.com/free-vector/seamless-pattern-cute-frogs-with-hearts_49655-275.jpg");
    width: 100%;
    height: 80vh;
    max-height: 825px;
    overflow-x: hidden;
    position: relative;
}

#game-title {
    font-size: 36px;
    line-height: 36px;
    position: relative;
    font-family: fantasy;
    color: #012701;
    text-align: center;
}

#start-game {
    /* width: 100px;
    height: 50px; */
    font-size: 30px;
    border-radius: 5px;
    padding: 20px;
    border:none;
    background-color: #5c6b5c;
    color: #fff;
    outline: none;
}

#cover-die-button {
    font-size: 30px;
    border-radius: 5px;
    padding: 15px;
    border:none;
    background-color: #eb3d37;
    color: oldlace;
    outline: none;
}

#score-box {
    display: flex;
    justify-content: center;
    font-size: 28px;
    line-height: 28px;
    font-family: fantasy;
    color: #012701;
    padding-top: 5px;
}

#score {
     margin-left: 10px;
}

#info {
    background-color: white;
    border: 1px solid gray;
    border-radius: 5px;
    width: 200px;
    padding: 25px;
    position: absolute;
    top: 35%;
    left: calc(50% - 125px);
    text-align: center;
    z-index: 4;
    display: block;
}

#info.hidden {
    display: none;
}

#how-to {
    float: left;
    margin-left: 10px;
    padding: 5px;
    border: 1px solid black;
    border-radius: 2.5px;
    line-height: 20px;
    box-sizing: border-box;
    line-height: 22px;
    text-align: center;
    display: inline-block;
    font-size: 12px;
}

#how-to:hover {
    cursor: pointer;
}

#close-how-to {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    font-weight: 200;
    color: #d36d6d;
}

#close-how-to:hover {
    cursor: pointer;
}

#info > img {
    padding-bottom: 10px;
}

#how-to-play {
   font-size: 25px;
    font-weight: 600;
    margin-bottom: 10px;
}

.how-to-play-info {
    margin-bottom: 10px;
    font-family: fantasy;
    color: #012701; 
}

.footer {
    background-color: #f9f9f9;
    height: 90px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #dad9d9;
    font-family: "Cera Pro", "HelveticaNeue", "Helvetica Neue", "HelveticaNeueRoman", "HelveticaNeue-Roman", "Helvetica Neue Roman", "TeXGyreHerosRegular", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
    color:grey;
    padding: 0 20px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    z-index: 10;
}

#words {
    font-size: 30px;
    color: white;
    text-shadow: -1px -1px 0 rgb(78, 78, 78), 1px -1px 0 rgb(78, 78, 78), -1px 1px 0 rgb(78, 78, 78), 1px 1px 0 rgb(78, 78, 78);
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.col {
    display: flex;
    flex-direction: column;
}

.icon-container {
    height: 40px;
    width: 40px;
    display: block;
}

.github {
    margin-right: 15px;
}