body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    position: relative;
    overflow-x: hidden;
}
header {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 20px;
}
header h1 {
    margin: 0;
    font-size: 2.5em;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}
.cta-button {
    background-color: #cc0000;
    color: white;
    padding: 20px 40px;
    font-size: 1.5em;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}
.cta-button:hover {
    background-color: #e60000;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
.cta-button.secondary {
    background-color: #333;
    padding: 15px 30px;
    font-size: 1.2em;
}
.cta-button.secondary:hover {
    background-color: #555;
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}
@media (max-width: 768px) {
    .cta-button {
        padding: 15px 30px;
        font-size: 1.2em;
    }
    .cta-button.secondary {
        padding: 12px 24px;
        font-size: 1em;
    }
}
.tesla-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.tesla-image.active {
    opacity: 1;
}
.info-section {
    background-color: white;
    padding: 40px 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.info-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}
.info-section p {
    font-size: 1.2em;
}
footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}
footer p {
    margin: 0;
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .cta-button {
        font-size: 1.2em;
        padding: 10px 20px;
    }
}
.carousel {
    position: relative;
    width: 100%;
    height: 300px; /* Adjust as needed */
    overflow: hidden;
}
.discount-sticker {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #cc0000;
    color: white;
    padding: 25px;
    border-radius: 50%;
    transform: rotate(15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
    animation: blink 3s ease-in-out infinite;
}

.discount-sticker span {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
}

.discount-sticker .amount {
    font-size: 2em;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.benefits-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.benefits-list li {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    align-items: center;
}

.benefits-list li::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

.testimonial {
    font-style: italic;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.testimonials {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns of equal width */
    gap: 20px;
    margin: 30px 0;
}

.testimonial {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial .author {
    font-weight: bold;
    text-align: right;
}

@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

.related-articles {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
}

.related-articles h2 {
    margin-bottom: 20px;
    text-align: center;
}

.article {
    display: flex;
    align-items: start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.article:last-child {
    border-bottom: none;
}

.article-logo {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    object-fit: contain;
    background-color: rgb(112, 112, 112);
}

.article-content {
    flex: 1;
}

.article-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.article-summary {
    font-size: 0.9em;
    color: #555;
}

.background-cars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.car {
    position: absolute;
    width: 50px;
    height: auto;
    animation: drive 30s linear infinite;
}

@keyframes drive {
0% {
transform: translateX(calc(100vw + 50px)) translateY(0);
}
100% {
transform: translateX(-50px) translateY(0);
}
}

#software-update {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#software-update h2 {
    color: #333;
    margin-bottom: 15px;
}

.update-info {
    margin-bottom: 20px;
}

.update-info p {
    margin: 5px 0;
}

.release-notes-link {
    display: block;
    margin-top: 10px;
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}

.release-notes-link:hover {
    text-decoration: underline;
}

.powered-by {
    margin-top: 20px;
    text-align: center;
}

.powered-by p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.nata-logo {
    max-width: 150px;
    height: auto;
    background-color: #cc0000; /* Rød baggrundsfarve */
    padding: 10px; /* Tilføjer lidt plads omkring logoet */
    border-radius: 5px; /* Afrunder hjørnerne lidt */
}

details {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
}

summary {
    cursor: pointer;
    font-weight: bold;
    padding: 5px 0;
}

summary:hover {
    color: #cc0000; /* Ændrer farven når musen svæver over */
}

details[open] summary {
    margin-bottom: 10px;
}

#tesla-news {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
}

#tesla-news h2 {
    margin-bottom: 20px;
    text-align: center;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.news-image {
    width: 100%;
    height: 200px; /* Juster efter behov */
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-item h3 {
    margin-top: 0;
    color: #333;
}

.news-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px; /* Juster efter behov */
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.comparison-section {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-section h3 {
    color: #e82127; /* Tesla red */
    margin-bottom: 15px;
}

.comparison-list {
    list-style-type: none;
    padding-left: 0;
    margin: 20px auto; /* Center the list horizontally */
    max-width: 80%; /* Adjust this value as needed */
    width: fit-content;
}

.comparison-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    text-align: left;
}

.comparison-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e82127; /* Tesla red */
}

.comparison-section p {
    margin-top: 15px;
}


.update-highlights h3 {
    margin-bottom: 15px;
}

.update-highlights ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.update-highlights li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.update-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #cc0000; /* Eller en anden farve der passer til dit design */
    font-size: 1.2em;
}
