@font-face {
    font-family: 'pixel';
    src: url('resources/fonts/pixel.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@keyframes bounce {
    5% {
        transform: translateY(-5%);
        rotate: 0.5deg;
    }
    100% {
        transform: translateY(5%);
        rotate: -1deg;
    }
}

@media (max-width: 750px) {

    #container {
        max-width: 90%;
    }

    #container-image .text {
        padding-right: 0;
        margin-bottom: 10px;
    }
    
    #container-image .image {
        display: none;
    }

    #container-image .text {
        text-align: center;
        margin: 0 10%;
    }

    .low-res {
        opacity: 0;
    }

    .bouncy-text {
        margin-left: 5vw;
    }

}

html {
    font-size: 20px;
    overflow-x: hidden;
}

body {
    background-color: #485e71;
    background-image:url('resources/images/bg.png');
    background-size: 100% auto;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'pixel', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    z-index: 0;
    overflow: hidden;
}

/* Style buttons */
button {
    background-color: #485e71;
    color: #e2ebf9;
    border: 1px solid #0d2041;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #666;
}

h1, h2, h3, h4, h5, h6, p, a {
    letter-spacing: 4px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

a {
    text-decoration: none;
    color: inherit;
}

h1 {
    letter-spacing: 4px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.7);
    max-width: 33vw;
    white-space: nowrap;
    overflow: hidden;
    position: fixed;
    z-index: 1000;
    margin-left: 39vw;
    text-align: center;
    margin-top: 10px;
}

h2 {
    font-size: 2rem;
    word-spacing: normal;
}

input, select, textarea {
    background-color: #4e5779;
    color: #e2ebf9;
    border: 1px solid #0d2041;
    padding: 5px;
    border-radius: 5px;
}

input, select, textarea, button {
    font-size: 1rem;
}

select {
    background-color: #4e5779;
    color: #e2ebf9;
    border: 1px solid #0d2041;
}

label {
    color: #2d2d2d;
    font-weight: bold;
}

#container:hover {
    transform: translateY(-1%);
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
}

@media (max-width: 750px) {
    .container-row {
        flex-direction: column;
        gap: 10px;
    }

    #container {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
    }
}
#container,
#container-image {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 10vw;
    max-width: 70vw;
    padding: 2%;
    background-color: #485e71;
    border: 2px solid #fff;
    border-radius: 15px;
    text-align: center;
    font-family: 'pixel', sans-serif;
    color: #fff;
    box-shadow: 4px 4px 0 0 rgba(0,0,0,0.7);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
    margin: 0 auto 10px;
}
#container:hover,
#container-image:hover {
    transform: translateY(-1%);
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.9);
    background-color: #496d7f;
}

#container-image .text {
    flex: 1;
    padding-right: 10px;
    font-family: 'pixel', sans-serif;
    color: #fff;
}

#container-image .image {
    width: 200px;
    height: 200px;
    background-color: #ddd;
    border-radius: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
    margin: 0;
    align-self: center;
}

#container {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

#container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(72, 94, 113, 0.9);
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s;
}

#container:hover::before {
    background: rgba(73, 109, 127, 0.8);
}

#container > * {
    position: relative;
    z-index: 1;
}

.container-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 0;
    max-width: 74vw;
    align-items: stretch;
}

#bg {
    position:fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    filter: blur(5px);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(15px);
}

#previewContainer p {
    padding: 10px;
}

#descBubble {
    display: inline-block;
    width: 95%;
    background-color: #eee;
    color: #485e71;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: inset 2px 2px 00px #aaa;
}

#descPreview {
    white-space: pre-line;
}

#descriptionContainer {
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

#mainContainer {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

#variableInputs {
    flex: 1;
    max-width: 600px;
}

#descName {
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

#header {
    align-self: center;
}

.fade {
    transition: opacity 0.2s ease-out;          /* smooth fade */
}

.intro {                                        /* larger text */
    display: block;
    transform: scale(1.5);
    max-width: 80vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0 auto;
    padding: 2% 10vw;
    text-align: center;
    box-sizing: border-box;
}

.smol {                                         /* smaller text */
    display: block;
    transform: scale(0.5);
    max-width: 80vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0 auto;
    color: #fff;
    padding: 1% 10vw;
    text-align: center;
    box-sizing: border-box;
}

.collapsible-menu {
    position: fixed;
    top: 10px;
    padding: 10px;
    right: 10px;
    background-color: "#485e71";
    border-radius: 5px;
    max-width: 30vw;
    min-width: 10vw;
    height: 85px; 
    z-index: 1000;
}

.menu-toggle {
    background-color: #485e71;
    color: #fff;
    width: 100%;
    height: 100%;
    margin: 0 0;
    border: 3px solid #fff;
    cursor: pointer;
    font-size: 1.5em;
    position: relative;
    font-family: 'pixel', sans-serif;
    border-radius: 5px;
    transition: max-width 0.3s ease-in-out, background-color 0.1s ease-in-out;
}

.menu-content {
    display: none;
    overflow-y: auto;
}

.menu-content::webkit-scrollbar-thumb:hover {
    background-color: #3b3b3b;
}

.menu-content::-webkit-scrollbar-thumb {
    background-color: #496d7f;
    border-radius: 4px;
}

.section-toggle {
    background-color: #485e71;
    padding: 8px;
    width: 98%;
    margin-left: 1%;
    border: 3px solid #fff;
    font-family: 'pixel', sans-serif;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    border-radius: 5px;
    margin-top: 5px;
    transition: background-color 0.1s ease-in-out;
}

.section-content {
    display: none;
    padding: 5px;
    background-color: #485e71;
    border-radius: 5px;
    margin-top: 5px;
    margin-left: 2.5%;
    color: #fff;
    border: 2px solid #fff;
    font-size: 16px;
    max-height: 500px;
    max-width: 95%;
    box-sizing: border-box;
    overflow-y: auto;
}

.text-container {
    text-align: center; /* Ensures the text is centered */
    width: 100%; /* Takes up full width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.bouncy-text {
    display: inline-block; /* Ensures text remains centered */
}

/* last fm stuff here */

#now-playing {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    font-family: 'pixel', sans-serif;
    background-color: #485e71;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 30vw;
    min-width: 10vw;
    height: 60px;
    margin: 10px auto;
    z-index: 1000;
    border: solid 3px #fff;
    font-size: 0.6rem;
    transition: opacity 0.3s ease-in-out, background-color 0.2s ease-in-out;
}

#now-playing:hover {
    background-color: #496d7f;
}

#now-playing img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: hidden;
}

footer {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 30px;
}