* {
    font-family: cursive, 'Baloo 2';
    font-size: large;
    box-sizing: border-box;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    user-select: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 0 20px;
    width: 100%;
    border-bottom: 1px solid;
}

header img {
    width: 50px;
}

header h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 20px;
}

nav {
    display: flex;
    column-gap: 20px;
}

nav a {
    text-decoration: none;
    color: black;
    border-left: 1px solid;
    border-right: 1px solid;
    padding-left: 5px;
    padding-right: 5px;
}

.container {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 50px;
    padding: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: 1px solid; */
    box-shadow: 0 0 4px 0.1px;
    width: 250px;
    height: 150px;
    border-radius: 10px;
    transition: ease 0.1s;
    cursor: pointer;
}

.card:active {
    transform: scale(0.98);
    box-shadow: none;
}

.card h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 125px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 100%;
    background-color: white;
}

.modalbg {
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal {
    width: 400px;
    height: 300px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.modalbg img {
    width: 50px;
    margin: 20px 5px;
    transition: ease-in-out 0.1s;
    cursor: pointer;
}
.modalbg img:hover {
    transform: scale(1.11);
}

button {
    margin: 20px 0;
    border-radius: 10px;
    padding: 5px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: ease 0.1s;
    cursor: pointer;
}

button:active {
    box-shadow: none;
}

button:hover {
    transform: scale(0.98);
    box-shadow: none;
}

.card1 {background-image: url(img/mate-bg.jpg);}
.card2 {background-image: url(img/english.jpg);}
.card3 {background-image: url(img/language.jpg);}
.card4 {background-image: url(img/bok.jpg);}

@media screen and (max-width:700px){
    * {
        font-family: 'poppins';
    }

    nav {
        display: none;
    }
}
