/* Base font size - CHANGE THIS ONE VALUE TO SCALE EVERYTHING */
html {
    font-size: 20px; /* Default 16px * 1.25 = 20px for 125% scaling */
}

/* Mobile: reduce base font size for better proportions */
@media (max-width: 768px) {
    html {
        font-size: 14px; /* Smaller base for mobile devices */
    }
}

body {
    /* scroll-behavior: auto; */
    scroll-behavior: smooth;
    min-height: 100%;
    padding: 0;
    margin: 0;
    /* Font is set by the Font variation component */
    font-size: 1rem; /* Use the base size from html */
    transition: all 0.3s 0s;
    -webkit-transition: all 0.3s 0s;
    -moz-transition: all 0.3s 0s;
    -o-transition: all 0.3s 0s;
    overflow-x: hidden;
    overflow-y: scroll;
    text-align: center;
    background: var(--color-background);
    color: var(--color-text);
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: underline;
}
a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}
a:visited {
    color: var(--color-link);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 200;
    font-style: normal;
}
h1 {
    font-size: 3rem;
}
h2 {
    font-size: 2.5rem;
}
h3 {
    font-size: 2rem;
}
h4 {
    font-size: 1.7rem;
}
h5 {
    font-size: 1.5rem;
}
h1.big {
    font-size: 5rem;
}

/* Utility classes */
.subtle {
    color: #b3b3b3;
}
.green-text {
    color: #42993f;
}
.red-text {
    color: #9d0902;
}
.red-orange-text {
    color: #993300;
}

.inline {
    display: inline;
}
span.center,
div.center {
    text-align: center;
}
span.right,
div.right {
    text-align: right;
}
span.left,
div.left {
    text-align: left;
}

/* Content wrapper */
.content_wrapper {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    z-index: 1;
}

/* Lists */
ul.centered {
    padding: 0;
    margin: 0;
}
ul.centered li {
    list-style: none;
    white-space: nowrap;
    margin-left: .25em;  /* this is half of margin-right below */
    margin-right: .25em; /* this is half of margin-right below */
    padding: 0;
}

/* Buttons */
span .btn-primary a {
    color: #dadada;
}
button .btn-primary {
    background: #000000;
    color: #ff0000;
}
.btn-unstyled {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer;
    outline: none;
    appearance: none; /* for removing platform-specific styles */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Misc elements */
.badge.primary {
    background: #dadada;
}
.flex-container {
    display: flex;
    justify-content: center;
    align-content: space-around;
    vertical-align: middle;
}
.inline {
    display: inline-block;
}

div.poster {
    display: inline-block;
    padding: 2em;
    max-width: 36em;
    font-size: 1.2rem;
    color: #000;
    border-radius: 5px 5px 5px;
    border: 1px solid black;
    /* background-color: #fff; */
}

#footer {
    margin-top: 2em;
}

img#loading-image {
    margin-top: 60px; /* Half the height */
}

/* Links */
div.grey_links a {
    color: #999;
}

/* HR styles */
hr.separator {
    height: 36px;
    color: #000;
    background: #333333;
    opacity: 1;
}

/* Separators */
div.separator {
    background: #555555;
    margin: 0.5em 0;
    color: #ddd;
}
div.separator img {
    margin: 0.3em;
    opacity: 0.5;
    vertical-align: middle;
    width: 2em;
}

/* Animations */
.cart-spinner {
    transition: all 1.3s ease-in-out 0s;
    -webkit-transition: all 1.3s ease-in-out 0s;
    -moz-transition: all 1.3s ease-in-out 0s;
    -o-transition: all 1.3s ease-in-out 0s;
}

.glyphicon.spinning {
    animation: spin 1s infinite linear;
    -webkit-animation: spin2 1s infinite linear;
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1) rotate(360deg); }
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

/* Other elements */
.sticky-top {
    top: 0;
    z-index: 1020; /* Value higher than other elements */
}
.close-modal {
    font-size: 3rem;
}
.container {
    max-width: 600px;
    margin: 0 auto;
}
.plyr {
    height: 500px;
}
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

/* Remove button styling */
.remove-from-cart-btn {
    background: transparent;
    color: rgba(200, 0, 0, 0.65);
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    padding: 0.2em 0.4em;
    margin-left: 0.4em;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.remove-from-cart-btn:hover {
    color: rgba(255, 0, 0, 0.9);
    background: rgba(255, 0, 0, 0.08);
}

.btn-secondary {
    color: #fff;
    background: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    font-family: inherit;
}

.form-control-sm {
    padding: .25rem .5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: .2rem;
}

select.form-control {
    height: auto;
}
