@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

:root {
    --primary-color: #306ecd;
    --primary-darken: #16448a;
    --secondary-color: white;
    --tertiary-color: #855E42;
    --tertiary-darken: #3f2614;
    --skill-card: #39a024;

    --font-main: 'Fredoka', cursive, sans-serif;
}

* {
    margin: 0px;
    padding: 0px;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    gap: 10px;
    background-color: var(--primary-color);
    font-family: var(--font-main);
    color: var(--secondary-color);
}

.game-header, 
.bmo-section {
    display: flex;
    padding: 10px;
    border: 2px solid var(--primary-darken);
    border-radius: 12px;
}

.game-header {
   flex-direction: column;
   margin: 20px auto 5px auto;
}

.scoreboard {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

.bmo-section {
    gap: 20px;
}

.bmo-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmo-img {
    width: 15vw;
    background-color: var(--primary-darken);
    border-radius: 8px;
}

.game-title-img,
.bmo-section, 
.skill {
    width: 80vw;
}

.bmo-comment {
    font-size: 0.9em;
}

#bmo-try-again {
    font-size: 0.6em;
    color: rgb(211, 211, 211);
}

.game-card {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
}

.game-card h2 {
    font-size: 20px;
}

.game-card img {
    width: 30vw;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.skill {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: var(--tertiary-color);
    border: 2px solid var(--tertiary-darken);
    border-radius: 12px;
    box-sizing: border-box;
    padding: 20px;
    margin-bottom: 50px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--skill-card);
    border-radius: 12px;
    width: 20vw;
    aspect-ratio: 1/1;
}

.skill-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.skill img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

footer {
    margin: 30px auto;
}

@media(min-width: 760px){
.game-title-img,
.bmo-section, 
.skill {
    width: 40vw;
}

.game-card img {
    width: 16vw;
}

.skill-card {
    width: 10vw;
}

.bmo-img {
    width: 8vw;
    border-radius: 12px;
}

.bmo-comment {
    font-size: 1em;
}

#bmo-try-again {
    font-size: 0.8em;
}

}

@media(min-width: 1000px){
.game-title-img,
.bmo-section, 
.skill {
    width: 28vw;
}

.game-card img {
    width: 10vw;
}

.skill-card {
    width: 8vw;
}

.bmo-img {
    width: 5vw;
    border-radius: 10px;
}

}