body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: monospace;
    background-color: #2a2a2a;
    transition: background-color 0.3s, color 0.3s;
    color: #f0f0f0;
    flex-direction: column;
    overflow-x: hidden;
}

::selection {
    background-color: #c099ff;
    color: #2a2a2a;
}

img {
    user-select: none;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 2vw;
    width: 100%;
    max-width: 100vw;
    position: fixed;
    background-color: rgba(59, 59, 59, 0.885);
    padding: 1.5vh 2vw;
    backdrop-filter: blur(3px);
    font-size: large;
    top: 0;
    border-bottom: 1px solid rgba(70, 70, 70, 0.885);
    z-index: 9999;
    overflow-x: hidden;
}

.home {
    text-decoration: none;
    color: #f0f0f0;
    padding: 10px;
    background-color: rgba(75, 75, 75, 1);
    border: 2px solid rgba(80, 80, 80, 1);
    border-radius: 7px;
    transition: 0.3s;
    margin-left: 25px;
    margin-right: -10px;
    user-select: none;
    cursor: pointer !important;
}

.theme-button {
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
}

.home:hover {
    background-color: rgba(85, 85, 85, 1);
    border: 2px solid rgba(90, 90, 90, 1);
    text-decoration: underline;
}

.welcome {
    text-align: center;
    margin: 0;
    width: 100vw;
    max-width: 1920px;
    line-height: 1.4;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 25px;
    padding-top: 60px; 
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.welcome * {
    color: #f0f0f0;
}

#welcome :not(h1) {
    margin: 0 0 10px 0;
}

.tools-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5vw;
    justify-content: center;
    min-height: 10vh;
    max-width: 100vw;
    padding-bottom: 50px;
}

#tool-div {
    padding: 1vh 3vw;
    background-color: rgba(75, 75, 75, 1);
    border: 2px solid rgba(80, 80, 80, 1);
    border-radius: 7px;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    max-width: 90vw;
    box-shadow: 0 4px 10px rgba(16, 16, 16, 0.5);
}

.tool-header {
    margin-bottom: 0;
    padding-top: 15px;
    text-decoration: underline;
}

.tool-desc {
    margin: 5px;
    font-weight: normal;
}

.tool-media {
    height: 200px;
    border-radius: 10px;
    margin: 10px;
    transition: 0.25s ease-in-out;
}

.tool-image.active {
    opacity: 1;
}

.visit-tool {
    padding: 10px 20px;
    background-color: rgb(60, 120, 85);
    color: #f0f0f0;
    border: 2px solid rgb(75, 135, 100);
    border-radius: 4px;
    transition: 0.1s;
    font-weight: bolder;
    font-size: large;
    margin: 5px 0 15px 0;
}

.visit-tool:hover {
    background-color: rgb(75, 135, 100);
    border-color: rgb(90, 150, 115);
}

.slideshow-container {
    position: relative;
    width: 90vw;
    max-width: 500px;
    margin: auto;
}

.tool-image {
    width: 100%;
    max-width: 90vw;
    max-height: 40vh;
    border-radius: 10px;
    object-fit: contain;
}

.prev, .next {
    cursor: pointer;
    top: 50%;
    width: 36px;
    height: 36px;
    color: #f0f0f0;
    background-color: #747474;
    border: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.1s ease;
    user-select: none;
    text-align: center;
    justify-content: center;
    margin: 5px;
}

.prev:hover,
.next:hover {
    scale: 1.01;
    background-color: #808080;
}

.prev {
    left: 0;
    border-radius: 50%;
}

.next {
    right: 0;
    border-radius: 50%;
}