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

:root {
    --background-color : #fff2a9;
    --header-color :#2f2d3d;
    --puzzle-border-color :#2f2d3d;
    --footer-color : #515151;
    --button-color :#4CAF50;
    --button-color-hover: #3e8e4
}

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

html, body {
    background-color: var(--background-color);
    font-family: 'Rubik', sans-serif;
}

button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    background-color: var(--button-color);
    border-radius: 10px;
    border: none;
    transition: background-color 0.3s ease;
  }
  
button:hover {
    background-color: var(--button-color-hover);
    cursor: pointer;
}

.btn-group {
    display: flex;
    justify-content: space-evenly;
}

p {
    text-align: center;
    padding: 10px 100px;
}

header {
    display: flex;
    justify-content: center;
    background-color: var(--header-color);
    height: 8vh;
    color: #fff;
    padding: 10px;
}

footer {
    background-color: var(--footer-color);
    height: 12vh;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

footer .social-icons {
    width: 50%;
    display: flex;
    flex-direction: row;
    margin: auto;
    justify-content: space-around;
  }

footer a {
    text-decoration: none;
}

footer svg{
    width: 2rem;
    color: #fff;
}
  

main {
    display: flex;
    height: 80vh;
    align-items: center;
    justify-content: center;
}

canvas {
    width: 68vh;
    height: 68vh;
}

#canvas-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.puzzle-border {
    display: inline-block;
    width: auto;
    height: auto;
    background-color: var(--puzzle-border-color);
    padding: 20px;
    border-radius: 10px;
    margin: 10px auto;
}

/* MODAL  */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
}

.backdrop-hidden {
    display: none;
}

.modal {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: fixed;
    z-index: 3000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    align-items: center;
}

.modal-hidden {
    display: none;
}


.modal-body {
    display: flex;
    flex-direction: column;
}

.modal-body * {
    margin: 4px 0;
}


/* MEDIA QUERIES  */

@media (max-width: 820px)  {
    canvas {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 720px)  {
    canvas {
        width: 360px;
        height: 360px;
    }
}

@media (max-width: 550px)  {
    button {
        font-size: 12px;
    }
}

@media (max-width: 420px)  {
    canvas {
        width: 200px;
        height: 200px;
    }

    p {
        padding: 10px;
    }
}
