@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,400;0,600;1,600&family=Finger+Paint&family=Fredoka:wght@300;400;500;700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Quicksand:wght@300;400;500;600;700&family=Rampart+One&family=Righteous&display=swap');
@import url('./Games-c/Minesweeper/minesweeper.css');


*,*:after, *:before{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background: rgb(108 151 25 / 83%);
    font-family: 'Quicksand', sans-serif;
}


/* Header ---------------- */

.title{
    text-decoration: none;
    color: #01374d;
    font-weight: 700;
}

.header{
   
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #005474;
    font-size: 45px;
    letter-spacing: 0.4em;
    text-align: center;
}


.dropdown{
    position: relative;
    transition: all 250ms ease-in;
}

.contact-info{
    background: #005474;
    font-size: 30px;
    font-weight: 500;
    border: none;
    padding: 0.2em 3em ;
    color: #eee  ;
    height: 100%;
    transform: translateY(-10px);
}

.dropdown-menu{
    position: absolute;   
    background: #eee;
    border-radius: 10px;
    width: 100%;
    padding: 0.3em 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 150ms ease-in, transform 150ms ease-in;
    box-shadow: 11px 10px 9px 1px rgba(0,0,0,0.4);
   
}

.dropdown-menu > a {
    font-size: 24px;
    padding: 16px;
    display: block;
    text-decoration: none;
    color: rgb(29, 29, 63);
    letter-spacing: 0.1em;
    transition: all .3s ease;
} 

.dropdown-menu > a:hover {
    color: white;
    background-color: rgb(124, 120, 114);
}

.contact-info {
    cursor: pointer;
}

.contact-info:hover{
    background: #01374d;
    color: white;
}

.contact-info:focus + .dropdown-menu{
    color: #389b5e;
    transform:translateY(0);
    opacity: 1;
    pointer-events: auto;
}
/* Header ---------------- END*/

/* Main --------------------- */

.main{
    min-height: auto;
    margin-bottom: 20vh;
    margin-top: 10vh;
}
.container{
    width: 70%;
    margin: 0 auto;
}

.welcome{
text-align: center;
letter-spacing: 1rem;
font-size: 50px;
color: #01374d;
font-weight: 900;
margin-bottom: 5rem;
}
.tips{
    color: #005474;
    font-size: 32px;
}
.tip{
margin-top: 2rem;
color: #005474;
font-size: 24px;
letter-spacing: 0.1rem;
}

.contact-info--link {
    font-size: 24px;
}
/* main ------------------------------ */


/* media ----------------------------- */
@media screen and (max-width: 900px) {
    .contact-info {
        font-size: 16px;
    }
    .header {
        flex-wrap: wrap;
        gap: 20px;
    }
    .dropdown {
        width: 100%;
    }
    .dropdown button {
        width: 100%;
    }
    .title {
        margin: 0 auto;
        font-weight: 900;
       
    }
    .contact-info:focus + .dropdown-menu {
        width: 90%;
        left: 50%;
        right: 50%;
        transform: translateX(-50%);
        z-index: 2;
    }
    
 
}

@media screen and (max-width: 450px) {
    .welcome {
        letter-spacing: 0;
        font-size: 40px;
    }
    .container {
        padding: 0 0.1rem;
    }
    .main {
        padding-bottom: 40px;
    }
    .tips {
        text-align: center;
    }
    .tip {
        text-align: center;
    }
}

/* media ----------------------- END*/


/* added from js (insertAdjacentHTML()) */
.game-links{
    margin-top: 2rem;
    color: #005474;
    font-size: 24px;
    letter-spacing: 0.1rem;
    text-decoration: none;
    transition: all 150ms ease-in;
}
.game-links:hover{
    color: #01374d;
    font-weight: 700;
}

.span{
    margin-top: 2rem;
    color: #000000;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.1rem;
}

