/* Main body formating */
body {
    /*background-color: #90D5FF; */
    background-image: url("Tinkerdle Background (4).png");
    background-size: cover;
    background-position: center;

    font-family: 'Rubik', sans-serif;
    text-align: center;
    margin-top: 100px;
}

.smallText
{
    font-size: 15px;
}

/* Main content exlcuding the footer */
#page
{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#overlay
{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3 ease;
    z-index: 998;
}

#overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Top bar formating */
#topBar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 50px;

    background-color: #1e293b;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
}

/* Icon formating */
.icon {
    font-size: 35px;
    cursor: pointer;
    user-select: none;
}

/* Icon animation */
.icon:hover {
    opacity: 0.7;
}

#hamburger
{
    position: relative;
    z-index: 1000;
    cursor: pointer;
}

#sidePanel
{
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;

    background-color: #2b4063;
    color: white;
    box-shadow: 4px 0 20px rgba(0,0,0, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 16px 16px 0;

    padding-top: 70px;

    /* Starts panel off screen*/
    transform: translateX(-100%);
    /* Animates Movement */
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 999;
}

#sidePanel.open {
    transform: translateX(0);
}

#sidePanel.open .menuText {
    opacity: 1;
    transform: translateX(0);
}

#winCount
{
    margin-top: -5px;
}

/*Info Panel*/
#infoPanel
{
    position: fixed;

    opacity: 0;
    pointer-events: none;

    top: 50%;
    left: 50%;

    color: #1e293b;
    width: 750px;
    height: 400px;
    background: white;

    border-radius: 10px;
    padding: 20px;

    transform: translate(-50%, -50%) scale(0.85);
    transition: transform 0.25s ease, opacity 0.25s ease;

    z-index: 5;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1005;
}

#infoPanel.open
{
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#infoTitle
{
    font-size: 30px;
}

#instructions
{
    font-size: 22px;
    text-align: left;
}

#instructionsButton {
    width: 225px;
    background: #1f2937;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

#instructionsButton:hover {
    background: #374151;
    transform: scale(1.05);
}

#closeInfo
{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.menuText {
    color: white;
    font-size: 20px;
    padding: 15px 25px;
    opacity: 0;
    transform: translateX(-100%);
    transition: 
        opacity 0.2 ease,
        transform 0.2 ease;
}

/* Titile container formating */
#titleContainer
{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* logo formating */
#logo
{
    height: 110px;
    width: auto;
}

/* hints formating */
#hints
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* All boxes formating */
.box
{
    background-color: #1e293b;
    color: white;
    padding: 12px 20px;
    width: 500px;
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* All boxes animation */
.box:hover
{
    transform: scale(1.03);
    transition: 0.2s;
}

/* Sub background formating */
#subBackground
{
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    width: 600px;
    margin: 50px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Main container formating */
.mainContainer
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

}

/* Heading formating */
h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 60px;
    color: navy;
}

/* Top row formating */
.topRow
{
    position: relative;
}

/* Topic box formating */
#topicBox
{
    position: absolute;
    top: -25px;
    right: 5px;

    border: 1px solid black;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: #A3DCFF;
    font-weight: bold;
}

/* Topic box animation */
#topicBox:hover
{
    transform: scale(1.03);
    transition: 0.2s;
}

/* Topic label formating */
.topicLabel
{
    font-weight: lighter;
}

/* All input formating */
input {
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    padding: 12px;
    width: 250px;
    background-color: aliceblue;
    box-shadow: 0px 4px 10px rgba(137, 207, 240, 0.25);
}

/* All input animation */
input:hover {
    transform: scale(1.03);
    transition: 0.2s;
}

/* Input container formating */
.inputContainer
{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* All button formating */
button
{
    padding: 10px;
    background-color: #C6D5D9;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
}

/* Button Animation */
button:hover
{
    transform: scale(1.03);
    transition: 0.2s;
}

p
{
    font-size: 23px;
}

/* Alert popup formating */
#alertPopup
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Specifically makes the alert popup not display when hidden */
#alertPopup.hidden
{
    display: none;
}

/* Alert text formating */
#alertText
{
    font-family: 'Rubik', sans-serif;
    font-size: 25px;
    color: black;
}

/* Alert Box formating */
.alertBox
{
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    min-width: 250px;
    max-width: 700px;
    white-space: normal;
    overflow: break-word;
}

/* Any elements under class "hidden" are not displayed */
.hidden
{
    display: none;
}

/* Guess box formating */
.guessBox
{
    border: 2px solid #d1d5db;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 18px;
    font-weight: 500;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Guess Box animation */
.guessBox:hover
{
    transform: scale(1.03);
    transition: 0.2s;
}

/* Footer formating */
#footerBar
{
    bottom: 0;
    left: 0;

    width: 100%;
    min-height: 10px;

    opacity: 0.5;
    background-color: #1e293b;
    color: white;


    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 5px 20px;
    font-size: 13px;
    box-sizing: border-box;
}