/* General CSS */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
html {
    display: block;
    line-height: 1.5;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    height: 100%;
}

body {
    position: relative;
    display: flex;
    color: white;
    align-items: flex-start;
    background-color: #303030;
    margin: 0;
    line-height: inherit;
    overflow: hidden;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    --ui-main-lighter: #514d4c;
    --ui-main-light: #353535;
    --ui-main: #232323;
    --ui-main-dark: #131313;
    --text-secondary: #cccccc;
    --ui-select: #008542;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, h7, h8, h9, h10, h11, hr, p {
    margin: 0;
}

hr {
    border: 0.1vh solid var(--ui-main-light);
    width: 74vw;
}

.hr1 {
  margin-top: 1vh;   /* adds vertical space */
}

.bolded {
    font-weight: 800;
}

/* Error CSS */

.error {
    display: none;
    position: absolute;
    right: 0;
    z-index: 1;
    padding: 0.5vw 1vw;
    margin: 1vw 0.5vw;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 1.5vw;
    font-style: italic;
    transition: 0.3s;
    animation: drop .5s linear forwards;
    font-size: 1.5vw;
}

#naerror {
    color: gold;
    border: gold solid 0.1vw;
}

#screenerror {
    right: 35%;
    padding: 0.25vw 4vw;
    color: darkred;
    font-size: 1vw;
    border: red solid 0.1vw;
}

.zoom-out {
    animation: zoomed 0.2s linear forwards;
}

@keyframes zoomed {
    100% {
        transform: translateY(10px) scale(0);
        display: none;
    }
}

/* Sidebar CSS */

.sidebar {
    height: 100vh;
    width: 16vw;
    background-color: #282828;
    z-index: 4;
}

.sidebarOptions {
    display: flex;
    height: 3.5vw;
    width: 87.8%;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5vw;
    padding-left: 1.5vw;
    font-size: 0.9vw;
    line-height: 1.5vw;
    transition: 0.3s;
    outline: outset;
    outline-color: #000000;
    margin-left: 0.2vw;
    outline-width: 0.4vh;
    margin-top: 0.2vh;
    margin-bottom: 0.7vh;
    background-color: #282828;
}

.sidebarOptions:hover {
    cursor: pointer;
    background-color: var(--ui-main-light);
}

.sidebarOptions.sidebarBottom {
    position: absolute;
}

.sidebarOptions.selected {
    font-weight: 700;
    border-left: 0.4vw solid var(--ui-select);
    outline: inset;
    outline-color: #6d6d6d;
    width: 86.4%;
    outline-width: 0.4vh;
    background-color: #1e1e1e;
    height: 3.5vw;
    margin-left: 0.08vh;
    margin-top: -0.09vh;
    margin-bottom: 0.66vh;
}

#gtabs1 img {width: 3vw;}
#gtabs2 img, #gtabs3 img, #gtabs4 img, #gtabs7 img, #gtabs8 img {width: 2.5vw;}
#gtabs5 {
  bottom: 7.5vw;
  w;
  width: 14.1vw;
  margin-bottom: -0.5%;
}
#gtabs6 {
  bottom: 2.5vw;
  width: 14.1vw;
  margin-top: 0;
}
#gtabs5 img, #gtabs6 img {width: 2vw;}


#gtabs1 .gTabsText p {
    text-decoration: line-through;
}

.eaglercraftText {
    font-size: 1.1vw;
}

.launcherVersion {
    position: absolute;
    bottom: 0.25vw;
    left: 1.25vw;
    right: 0;
    z-index: 1;
    font-size: 1.1vw;
    color: var(--text-secondary);
    width: fit-content;
}

/* Header CSS */

.mainPage {
    width: 84vw;
    background-color: var(--ui-main);
}

.gameHeader {padding: 1.8vw 1.8vw 0;}
.informationBox {
    position: absolute;
    top: 78vh;
    margin-left: 0.1%;
    bottom: 0;
    width: 94.26%;
    height: 30vw;
    justify-content: space-around;
    display: flex;
    background-color: #1e1e1e;
    align-items: center;
    outline: solid;
    outline-color: #1e1e1e;
    z-index: 4;
}

.currentGame {font-size: 1.2vw;}

.gameTabs {
    display: flex;
    align-items: center;
}

.headerButtons {
    padding: 0.6vw 1.1vw;
    color: var(--text-secondary);
    font-size: 0.95vw;
    line-height: 1.7vw;
    transition: 0.3s;
}

.headerButtons:hover {
    cursor: pointer;
    color: white
}

.headerButtons.selected {
    cursor: default;
    color: white;
    font-weight: 800;
    border-bottom: var(--ui-select) solid 0.21vw;
}

/* Body CSS */

#game-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    display: flex;
    width: 84vw;
    height: 84vh;
    justify-content: center;
}

#game-title {
    width: 40vw;
    height: 6.5vw;
    margin-top: 6vw;
    animation: drop .5s linear forwards;
}

#gameSelection {
    position: absolute;
    top: 69vh;
    margin-left: -0.1%;
    bottom: 0;
    width: 100%;
    height: 6.3vw;
    justify-content: space-around;
    display: flex;
    background-color: var(--ui-main);
    align-items: center;
    outline: solid;
    outline-color: #5c5c5c;
    outline-style: outset;
    z-index: 3;
    outline-width: 0.3vh;
}

.dropdownSelector {
    position: absolute;
    top: 0.5vh;
    left: 0vw;
    display: flex;
    height: 4.5vw;
    width: 22vw;
    align-items: center;
    justify-content: space-around;
    transition: 0.3s;
}

.dropdownSelector:hover {
    cursor: pointer;
    background-color: var(--ui-main-light);
}

.centeredIcon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.centeredIcon {
  dispaly: flex;
}

.gameIcon {
  width: 2.5vw;
}

.dropdownIcon {
    color: white;
    width: 1.75vw;
}

.playButton {
    position: absolute;
    top: -2vh;
    left: 30vw;
    bottom: 0.5vw;
    display: flex;
    align-items: center;
    width: 21.5vw;
    height: 5vw;
    background-image: url(https://cool-launcher2.vercel.app/assets/images/play.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.1s;
}

.playButton:hover {
    cursor: pointer;
    background-image: url(https://cool-launcher2.vercel.app/assets/images/play-hover.png);
    transform: scale(1.05);
}

.username {
    position: fixed;
    top: 13vw;
    left: 20vw;
    font-size: 0.7vw;
    z-index: 5;
}

@keyframes drop {
    0% {
        transform: translateY(-300px) scaleY(0.9);
        opacity: 0;
    }

    5% {
        opacity: .7;
    }

    50% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }

    65% {
        transform: translateY(-17px) scaleY(.9);
        opacity: 1;
    }

    75% {
        transform: translateY(-22px) scaleY(.9);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
}

/* Mods Menu CSS */

#mods {
    position: absolute;
    display: none;
    width: 84vw;
    height: 91vh;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
}

.modketplace-title {
    margin: 4vh 0 1vh;
    width: 58vw;
}

.modssubtitle {
    font-size: 1.6vw;
}

#modsbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5vw 1.5vw;
    padding: 4vh 0 7vh;
    z-index: 4;
}

.modoption {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 10vw;
    border: 0.5vw solid var(--ui-main);
    transition: 0.1s;
}

.modoption:hover {
    scale: 1.05;
}

.modoption img {
    border: 0.3vw solid #AA0000;
    image-rendering: pixelated;
}

.modoption.selected img {
    border: 0.3vw solid #00AA00;
}

.modoption:hover img {
    background-color: rgba(255, 255, 255, 0.05);
}

.moddetails {
    background-color: var(--ui-main-lighter);
    padding: 0.5vw;
    height: -webkit-fill-available;
    font-size: 1.3vw;
}

.modtitle {
    font-size: 1.5vw;
}

.modauthor {
    text-decoration: underline;
}

/* Server Menu CSS */

#servers {
    position: absolute;
    display: none;
    width: 84vw;
    height: 91vh;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
}

.serverketplace-title {
    margin: 4vh 0 1vh;
    width: 58vw;
}

.serverssubtitle {
    font-size: 1.6vw;
}

#serversbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5vw 1.5vw;
    padding: 4vh 0 7vh;
    z-index: 4;
}

.serveroption {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 10vw;
    border: 0.5vw solid var(--ui-main);
    transition: 0.1s;
}

.serveroption:hover {
    scale: 1.05;
}

.serveroption img {
    border: 0.3vw solid #AA0000;
    image-rendering: pixelated;
}

.serveroption.selected img {
    border: 0.3vw solid #00AA00;
}

.serveroption:hover img {
    background-color: rgba(255, 255, 255, 0.05);
}

.serverdetails {
    background-color: var(--ui-main-lighter);
    padding: 0.5vw;
    height: -webkit-fill-available;
    font-size: 0.7vw;
}

.servertitle {
    font-size: 1vw;
}

.serverauthor {
    text-decoration: underline;
}


/* Skin Menu CSS */

#skins {
    position: absolute;
    display: none;
    width: 84vw;
    height: 91vh;
    flex-direction: column;
    align-items: center;
    overflow-y: scroll;
}

.skinketplace-title {
    margin: 4vh 0 1vh;
    width: 58vw;
}

.skinssubtitle {
    font-size: 1.6vw;
}

#skinsbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5vw 1.5vw;
    padding: 4vh 0 7vh;
    z-index: 4;
}

.skinoption {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 10vw;
    border: 0.5vw solid var(--ui-main);
    transition: 0.1s;
}

.skinoption:hover {
    scale: 1.05;
}

.skinoption img {
    border: 0.3vw solid #AA0000;
    image-rendering: pixelated;
}

.skinoption.selected img {
    border: 0.3vw solid #00AA00;
}

.skinoption:hover img {
    background-color: rgba(255, 255, 255, 0.05);
}

.skindetails {
    background-color: var(--ui-main-lighter);
    padding: 0.5vw;
    height: -webkit-fill-available;
    font-size: 0.7vw;
}

.skintitle {
    font-size: 1vw;
}

.skinauthor {
    text-decoration: underline;
}


/* FAQ Menu CSS */

#faq {
    position: absolute;
    display: none;
    width: 84vw;
    height: 91vh;
    flex-direction: column;
    align-items: center;
    background-color: var(--ui-main-dark);
    overflow-y: scroll;
    font-size: 1.3vw;
}

.faqtitle {
    font-size: 2.3vw;
    padding-top: 3vh;
}

#faqbox {
    display: flex;
    flex-direction: column;
    padding: 5vh 11vw 7vh;
    width: -webkit-fill-available;
}

.faqoption {
    margin-bottom: 3vh;
}

.faqtext {
    display: flex;
    align-items: center;
    gap: 2vw;
}

.faqsymbol {
    font-size: 2vw;
}

/* Installations Menu CSS */

#installations {
    position: absolute;
    display: none;
    width: 84vw;
    height: 91vh;
    flex-direction: column;
    align-items: center;
    background-color: var(--ui-main-dark);
    overflow-y: scroll;
    z-index: 4;
}

#installationsbox {
    display: flex;
    flex-direction: column;
    padding: 5vh 0 7vh;
}

.installationOptions {
    display: flex;
    height: 9vh;
    width: 74vw;
    align-items: center;
    font-size: 1.2vw;
}

.installationOptions:hover, .installationBox:hover {
    background-color: var(--ui-main-light);
}

.installationOption {
    position: absolute;
    left: 7vw;
    display: flex;
    gap: 2vw;
    align-items: center;
    cursor: pointer;
}

.installationBox {
    width: 3.5vh;
    height: 3.5vh;
    appearance: none;
    border: 0.3vw solid #0c6e3d;
    pointer-events: none;
}

.installationBox:checked {
  background-color: var(--ui-select);
}

.installationBox:checked:hover {
    background-color: #0f9a54;
}

.installationOption img {
    width: 5.5vh;
    height: 5.5vh;
}

.installationOptionText {
    display: grid;
    align-items: center;
    justify-content: flex-start;
}

/* Patch Notes Menu CSS */

#patchNotes {
    position: absolute;
    display: none;
    width: 84vw;
    height: 91vh;
    flex-direction: column;
    background-color: var(--ui-main-dark);
    overflow-y: scroll;
}

.patchnotes-title {
    font-size: 1.4vw;
}

.versionscontainer {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin: 0.5vh 0 1.5vh;
}

.versionBox {
    width: 2.5vh;
    height: 2.5vh;
    appearance: none;
    border: 0.3vw solid #0c6e3d;
    cursor: pointer;
}

.versionBox:checked {
    background-color: var(--ui-select);
}

#patchnotesbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5vw 1.5vw;
    padding: 2vh;
}

.patchnote {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    width: 17vw;
    background-color: black;
    transition: 0.1s;
}

.patchnote:hover {
    background-color: var(--ui-main);
}

.patchnote img {
    margin: 0.5vw;
    image-rendering: pixelated;
}

.patchnotedetails {
    border-top: 0.1vh solid var(--ui-main-light);
    padding: 0.5vw 1vw 1vw;
    height: -webkit-fill-available;
    font-size: 1.3vw;
}

#notescreen {
    position: absolute;
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    background: var(--ui-main);
    width: 100vw;
    height: 100vh;
    user-select: text;
}

.notescreenheader {
    display: flex;
    align-items: center;
    font-size: 1.5vw;
    padding: 1.5vw;
}

.notescreenheader svg {
    position: absolute;
    cursor: pointer;
    right: 1.5vw;
    width: 3vw;
    height: 3vw;
}

#notescreen hr {
    width: 100vw;
}

.notescreendetails {
    text-align: left;
    width: 75vw;
    margin: 3vh 0;
    overflow-y: scroll;
}

.notescreendetails .date {
    color: var(--text-secondary);
    font-size: 1.1vw;
}

.notescreendetails ul {
    list-style: revert;
    padding: revert;
}

/* Dropdown Menu CSS */

.dropdownMenu {
    position: absolute;
    top: -0.2vh;
    left: 0vw;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdownOptions {
    position: absolute;
    display: flex;
    height: 5vw;
    width: 22vw;
    align-items: center;
    background-color: #282828;
    z-index: 999;
    font-size: 1.1vw;
}

.dropdownOptions:hover {
    background-color: var(--ui-select);
}

.dropdownOption {
    position: absolute;
    left: 3vw;
    display: flex;
    gap: 0.9vw;
    align-items: center;
}

.dropdownOption img {
    width: 2.5vw;
    height: 2.5vw;
}

.dropdownOptionText {
    display: grid;
    align-items: center;
    justify-content: flex-start;
}

.versionText {
    margin-right: 4.25vw;
    display: grid;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.1vw;
}
/* Sub-tabs in settings */
.settingsTabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1vw 0;
  border-bottom: 1px solid #333;
}

.settingsHeaderButtons {
  padding: 0.6vw 1.2vw;
  cursor: pointer;
  color: #ccc;
  font-size: 1vw;
}

.settingsHeaderButtons.selected {
  color: white;
  border-bottom: 2px solid #2e7d32; /* green underline */
}

.settingsContent {
  padding: 1vw;
  font-size: 1vw;
}

.accountButton {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 0.6vw 1.2vw;
  margin-top: 0.5vw;
  border-radius: 0.3vw;
  cursor: pointer;
}

.settingBox {
    width: 2.5vh;
    height: 2.5vh;
    appearance: none;
    border: 0.1vw solid #0c6e3d;
    cursor: pointer;
    vertical-align: middle;   /* aligns checkbox with text */
    margin-right: 0.6em;      /* space between checkbox and text */
    display: inline-block;    /* keeps it inline with label text */
   
}

.settingBox:checked {
    background-color: var(--ui-select);
}

.settingscontainer {
    flex-direction: column;
    display: flex;
    gap: 0.5vw;
    margin: 0.5vh 0 1.5vh; 
}

.settingscontainer f {
    margin: 0.5vh 0;   /* space above/below each <p> */
}

.settingscontainer hr {
  margin: 1.5vh 0;   /* extra gap before/after the separator */
}

.settingscontainer p {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin: 0.5vh 0 1.5vh; 
}

.creditscontainer {
    flex-direction: column;
    display: flex;
    gap: 0.5vw;
    margin: 0.5vh 0 1.5vh; 
}

.creditscontainer g {
    flex-direction: column;
    display: flex;
    gap: 0.5vw; 
    margin-left: 3vh;
}

.username.centeredIcon.bolded {
    font-weight: bold;
    font-size: 1.5em;       /* change font size here */
    margin-top: 20px;     /* adjust vertical position */
    color: #ffffff;       /* username text color */
}

/* Global username styling */
.usernameDisplay {
    position: absolute;
    top: 10px;       /* adjust location */
    right: 20px;     /* move horizontally */
    z-index: 999;
    font-size: 1.5em;
}

.username-text {
    font-size: 1em;   /* size */
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
