* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #66296F 20%, #AD1E3E 80%);
    /* background: linear-gradient(135deg, #461c4d 20%, rgb(107, 18, 37) 80%); */
    color: #fff;
    overflow: hidden;
    height: 100vh;
    padding: 0.5%;
}

.glass {
    background: rgba(0, 0, 0, 0.39);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); */
    border: 1px solid rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 95%;
}

.parent {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr repeat(2, 3fr);
    gap: 8px;
    height: 97%;
    width: 100%;
}

.grid-head {
    grid-column: span 5 / span 5;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.grid-info {
    grid-column: span 3 / span 3;
    grid-row: span 2 / span 2;
    grid-row-start: 2;
}


.grid-tc {
    grid-row: span 2 / span 2;
    grid-column-start: 4;
    grid-row-start: 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1%;
    width: 100%;
    overflow: hidden;
}

.grid-ucs {
    grid-row: span 2 / span 2;
    grid-column-start: 5;
    grid-row-start: 2;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1%;
    width: 100%;
}

.grid-header {
    height: 150px;
    display: flex;
    justify-content: center;
}


.grid-header img {
    height: 100%;
}

.grid-body {
    width: 100%;
    height: 85%;
    margin-top: 2%;
    /* background-color: rgba(255, 0, 0, 0.281); */
    border-radius: 0px;
    padding: 0% 5%;
    overflow: hidden;
}

.grid-body-inner {
    animation: scroll-up 30s linear infinite;
    animation-delay: 5s;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-110%);
        opacity: 1;
    }

    51% {
        opacity: 0;
        transform: translateY(-110%);
    }

    52% {
        opacity: 0;
        transform: translateY(110%);
    }

    53% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
    }

}

.bottom-half {
    overflow: hidden;
}

.head-heading {
    line-height: 0.5em;
    margin-left: 1%;
}

.head-heading h1 {
    font-size: 3rem;
}

.datetime-weather {
    text-align: right;
    margin-right: 1%;
}

.datetime-weather #weather,
.datetime-weather #current-date {
    line-height: 0.3em !important;
}

#current-time {
    margin-bottom: 3%;
    font-size: 3rem;
}

.card {
    background-color: #f0f0f0;
    color: #000;
    border-radius: 7px;
    padding: 2%;
    margin-top: 5%;
    border-left: #b40000 solid 7px;
    animation: fadeIn forwards ease-in-out 1s;
    animation-delay: 0.5s;
    opacity: 0;
}

.card p {
    margin: 0;
}

.card-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.grid-info {
    overflow: hidden;
}

.grid-tc .grid-body h2,
.grid-ucs .grid-body h2 {
    animation: slideIn forwards 1s ease-in-out;
    opacity: 0;
}

.grid-tc .grid-body p,
.grid-ucs .grid-body h3 {
    animation: slideIn forwards 1s ease-in-out;
    animation-delay: 0.25s;
    opacity: 0;
}

video {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    /* object-fit: cover; */
}

/* FADE + SLIDE IN */
@keyframes fadeIn {
    0% {
        transform: translateX(60px) scale(0.98) skewX(8deg);
        opacity: 0;
        /* filter: blur(4px); */
    }

    60% {
        transform: translateX(-5px) scale(1.02) skewX(0);
        opacity: 1;
        /* filter: blur(0); */
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* SLIDE IN (cleaner horizontal) */
@keyframes slideIn {
    0% {
        transform: translateX(100%) scale(0.95);
        opacity: 0;
    }

    70% {
        transform: translateX(-5%) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.values {
    border: 2px black;
    border-radius: 5px;
    margin: 4px;
    text-align: center;
    cursor: pointer;
}

.values.active {
    background-color: rgba(91, 93, 197, 0.452);
}

.bulletPointless {
    list-style-type: none;
    padding: 0;
    text-align: center;
    font-size: 105%;
}

.bulletPointless p {
    margin: 1%;
    padding: 2%;
}

.Advantage {
    border-radius: 5px;
    margin: 4px;
    text-align: center;
    cursor: pointer;
}

.Advantage.active {
    background-color: rgba(91, 93, 197, 0.452);
}

#british_values_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}