:root {
    --primary-bg: #4D4D4D; /* Новий фон */
    --secondary-bg: #3C3C3C; /* Темніший хедер */
    --text-color: #ffffff;
    --muted-text: #d1d1d6;
    --accent-color: #5cb85c; /* Світло-зелений */
    --btn-bg: #5cb85c; /* Світло-зелені кнопки */
    --btn-hover: #4cae4c; /* Темно-зелений */
}

body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: 'SF Pro Display', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#layoutContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#home {
    flex: 1;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: var(--secondary-bg);
    font-size: 14px;
    color: var(--muted-text);
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: var(--secondary-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease-in-out;
}

.navbar nav a:hover {
    color: var(--accent-color);
}

.hero {
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
}

.hero p {
    font-size: 18px;
    color: var(--muted-text);
}

.btn {
    background-color: var(--btn-bg);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Оновлення кольорів Bootstrap кнопок */
.btn-success {
    background-color: var(--btn-bg) !important;
}

.btn-danger {
    background-color: #dc4e5b !important;
}

.btn-primary {
    background-color: var(--btn-bg) !important;
}

.btn:hover {
    background-color: var(--btn-hover);
    transform: scale(1.05);
}

.features {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 60px 20px;
}

.feature {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 12px;
    width: 30%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}

.feature:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .features {
        flex-direction: column;
        align-items: center;
    }
    .feature {
        width: 90%;
        margin-bottom: 20px;
    }
}

.log-form {
    display: inline-block !important;
}

/* Kinorat styles */
.certified_fresh {
    background: url('../images/certified_fresh.png') no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    vertical-align: text-bottom;
}

.certifiedfresh {
    background: url('../images/certified_fresh.png') no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    vertical-align: text-bottom;
}

.fresh {
    background: url('../images/fresh.png') no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    vertical-align: text-bottom;
}

.rotten {
    background: url('../images/rotten.png') no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    vertical-align: text-bottom;
}

.green_popcorn {
    background: url('../images/green_popcorn.svg') no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    vertical-align: text-bottom;
}

.red_popcorn {
    background: url('../images/green_popcorn.svg') no-repeat;
    background-size: cover;
    height: 20px;
    width: 20px;
    vertical-align: text-bottom;
}

.movie-icon {
    background: url('../images/movie-icon.png') no-repeat;
    background-size: cover;
    height: 40px;
    width: 40px;
    vertical-align: text-bottom;
    cursor: pointer;
}

.logo-picture {
    background: url('../images/logo.png') no-repeat;
    background-size: cover;
    height: 40px;
    width: 40px;
    vertical-align: text-bottom;
    cursor: pointer;
    margin-top: 5px;
}

.imdb-logo {
    background: url('../images/imdb_logo.png') no-repeat;
    background-size: cover;
    height: 45px;
    width: 100px;
    vertical-align: middle;
}

.metacritic-logo {
    background: url('../images/metacritic_logo.png') no-repeat;
    background-size: cover;
    height: 35px;
    width: 150px;
    vertical-align: text-bottom;
}

.rotten-tomatoes-logo {
    background: url('../images/rotten_tometoes_logo.png') no-repeat;
    background-size: cover;
    height: 40px;
    width: 130px;
    vertical-align: text-bottom;
}

.rotten-tomatoes-logo2 {
    background-image: url('../images/rotten_tometoes_logo.png');
    background-size: contain;
    height: 40px;
    width: 130px;
    vertical-align: text-bottom;
}

.enjoy-movie-search {
    color: floralwhite;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: gray;
    color: currentColor;
}

.nav-rotten-tomatoes {
    background: red;
    padding-left: 1em;
    padding-right: 1em;
    border-radius: 15px;
}

.collapse-group {
    padding: 10px;
    border: 1px solid darkgrey;
    margin-bottom: 10px;
}

/* Center align text inside tabs */
.nav-tabs .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-align: center;
    height: 60px; /* Adjust height for better visibility */
    width: 100%;
}

/* Adjust tab container to be well aligned */
.nav-tabs {
    border-bottom: 2px solid gray;
    justify-content: center; /* Center tabs */
}

/* Move content lower */
#movieSearchContent {
    padding-top: 20px; /* Increase padding to move content down */
}

/* Increase spacing below input field */
#movieSearchQuery {
    margin-bottom: 20px;
}

/* Center tab content area */
.tab-content {
    margin-top: 15px;
}

.text-left {
    text-align: left;
}

.text-info {
    color: #17a2b8 !important
}
