* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/*Tags*/

html {
    background-image: url("images/board-background.webp");
}

button {
    cursor: pointer;
}

h1 {
    margin-bottom: 5vh;
}

h2 {
    margin-bottom: 3vh;
}

/*Puzzle Container*/

#puzzle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #522700;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #F6E2BB;
}

#display-daily-puzzle {
    text-align: center;
}

#display-daily-puzzle h2,  #display-daily-puzzle p {
    text-align: center;
}

#display-daily-puzzle a img {
    width: 65%;
}

/*Search Area*/

#search-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #174700;
    min-height: 500px;
    width: 70%;
    margin: 30px auto 30px auto;
    padding-top: 20px;
    padding-bottom: 20px;
    color: white;
}

#search {
    display: flex;
    justify-content: center;
    margin-bottom: 8vh;
    width: 100%;
}

#search input {
    width: 6%;
    transition: 0.3s;
    border: none;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    padding: 10px;
    outline: none;
}

#search input:focus {
    width: 30%;
    transition: 0.5s;
}

#search button {
    border: none;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    padding: 10px;
    background-color: rgb(146, 58, 0);
    color: white;
}

/*Display Data*/

#display-data {
    text-align: center;
}

#display-data > * {
    margin-bottom: 20px;
}

#display-data a {
    color: inherit;
    text-decoration: none;
    transition: 0.5s;
}

#display-data a:hover {
    color: rgb(105, 255, 92);
}

/*Classes*/

.title {
    background-color: rgb(146, 58, 0);
    padding: 5px;
    color: white;
    border-radius: 4px;
}

.rapid {
    background-color: rgb(0, 190, 0);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
}

.blitz {
    background-color: rgb(255, 255, 0);
    color: rgb(0, 195, 255);
    padding: 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
}

.bullet {
    background-color: rgb(255, 193, 123);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 18px;
}

.rapid > *, .blitz > *, .bullet > * {
    margin-bottom: 16px;
}

/* Media Queries */

@media screen and (max-width: 500px) {
    h1 {
        text-align: center;
        font-size: 1.8em;
    }

    #puzzle-container h1 {
        font-size: 1.6em;
    }

    #puzzle-container h2 {
        font-size: 1.4em;
    }

    #puzzle-container {
        width: 90%;
        padding: 20px;
    }

    #display-daily-puzzle {
        text-align: center;
    }

    #display-daily-puzzle a img {
        width: 80%;
    }

    #display-daily-puzzle p {
        font-size: 15px;
    }

    #search-area {
        width: 90%;
        padding: 20px;
    }

    #search input {
        width: 20%;
    }

    #search input:focus {
        width: 60%;
    }

    #display-data p a {
        font-size: 13px;
    }

    #display-data h2 {
        font-size: 21px;
    }

    #display-data div {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}