/* Root Variables for Light Mode */
:root {
    --background-color: rgb(105, 134, 96);
    --text-color: rgb(240, 240, 240);
    --tile-background: rgb(37, 37, 37);
    --tile-share-background: rgb(52, 52, 52);
    --icon-color: white;
    --header-background: transparent;
    --toggle-background: #ccc;
    --toggle-slider: white;
}

/* Variables for Dark Mode */
body.dark-mode {
    --background-color: #121212;
    --text-color: #ffffff;
    --tile-background: #1e1e1e;
    --tile-share-background: #2c2c2c;
    --icon-color: #ffffff;
    --header-background: transparent;
    --toggle-background: #3f4547;
    --toggle-slider: --background-color;
}

/* Apply Variables */
body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    font-family: Verdana, Tahoma, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

header {
    width: 30%;
    max-width: 788px;
    display: flex;
    justify-content: center;
    padding: 12px;
    margin-top: 15px;
    background-color: var(--header-background);
}

.container {
    width: 91%;
    max-width: 680px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin-top: auto;
    margin-bottom: auto;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

.tile {
    width: 60%;
    background-color: var(--tile-background);
    margin: 7px;
    border-radius: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s cubic-bezier(.07, 1.41, .82, 1.41), background-color 0.3s;
}

.tile:hover {
    transform: scale(1.02);
}

.tile-share-button {
    margin: 8px;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--tile-share-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.icon {
    text-align: center;
    padding: 20px;
}

.icon i {
    color: var(--icon-color);
    font-size: 24px;
    
}

/* Image Container */
.image-container {
    height: 96px;
    width: 96px;
    border-radius: 48px;
    overflow: hidden;
    margin-bottom: 20px;
}

.image-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Theme Toggle Switch Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
    margin-right: 10px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--toggle-background);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    background-color: var(--toggle-slider);
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 16px;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--toggle-background);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.theme-label {
    font-size: 14px;
    color: var(--text-color);
}

.modal h5,
label {
    color: black;
}