/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    background-image: url('default_background1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #00ff00;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, gold, #00ff00);
    color: white;
}

.logo {
    width: 100px;
    height: auto;
}

.screenshot-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.screenshot-row img {
    width: 150px;
    height: auto;
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.screenshot-row img:hover {
    transform: scale(1.09);
}

.introduction, .features, .installation, .download, .privacy-policy, .terms-of-service, footer {
    background-color: rgba(0, 0, 0, 0.829); /* White with 30% opacity */
    padding: 20px;
    margin: 20px;
    border: 1px solid #00ff00;
    border-radius: 10px;
}

.introduction img.screenshot {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    display: block;
}

.features {
    background-color: rgba(0, 0, 0, 0.829); /* Black with transparency */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Distributes the cards evenly */
    gap: 20px; /* Adds spacing between cards */
    padding: 20px; /* Adds padding around the feature section */
}

.feature {
    background-color: rgba(0, 0, 0, 0.829);
    width: calc(25% - 40px); /* Four cards per row on larger screens */
    text-align: center;
    margin: 10px; /* Adds spacing around individual cards */
    flex-grow: 1; /* Ensures cards scale proportionally */
    box-sizing: border-box; /* Includes padding and border in width */
    border-radius: 8px; /* Adds rounded corners */
}

.feature img {
    width: 80px; /* Scaled size for images */
    height: auto;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.feature img:hover {
    transform: scale(1.2); /* Enlarges image slightly on hover */
}

@media (max-width: 1024px) {
    /* Medium screens (e.g., tablets) */
    .feature {
        width: calc(33.33% - 40px); /* Three cards per row */
    }
}

@media (max-width: 768px) {
    /* Smaller screens (e.g., mobile in portrait mode) */
    .features {
        flex-direction: column; /* Stacks cards in a single column */
        align-items: center; /* Centers cards */
    }

    .feature {
        width: 90%; /* Full width for small screens */
    }
}

.installation {
    background-color: rgba(0, 0, 0, 0.829); /* White with 30% opacity */
}

.installation h3, .installation ol {
    margin-left: 20px;
}

.download {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.829); /* White with 30% opacity */
}

.download .download-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px;
    border: none;
    background: linear-gradient(45deg, gold, #00ff00);
    color: black;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

.download .download-button:hover {
    background: linear-gradient(45deg, #00ff00, gold);
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(45deg, gold, #00ff00);
    color: black;
}

footer p, footer a {
    margin: 5px 0;
}

footer .social-media a {
    margin: 0 10px;
}

footer .social-media img {
    width: 30px;
    height: auto;
}

/* Privacy Policy Section */
.privacy-policy {
    background-color: rgba(0, 0, 0, 0.829); /* White with 30% opacity */
}

.privacy-policy h2, .privacy-policy h3 {
    color: #00ff00;
}

.privacy-policy p, .privacy-policy ul {
    color: #00ff00;
}

.privacy-policy ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Return to Home Link */
.return-home {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background: linear-gradient(45deg, gold, #00ff00);
    color: black;
    text-decoration: none;
    border-radius: 5px;
    width: fit-content;
}

.return-home:hover {
    background: linear-gradient(45deg, #00ff00, gold);
}

.theme-preview {
    background-color: rgba(0, 0, 0, 0.829);
    padding: 20px;
    margin: 20px;
    border: 1px solid #00ff00;
    border-radius: 10px;
    text-align: center;
}

.screenshot-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.screenshot-item {
    text-align: center;
    width: 48%;  /* Default width for row view */
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border: 1px solid #00ff00;
    cursor: pointer;
}

.column-view {
    flex-direction: column;
}

.column-view .screenshot-item {
    width: 100%;  /* 100% width in column view */
}

#toggleView {
    font-size: 36px;
    cursor: pointer;
    color: #00ff00;
    display: inline-block;
    margin-bottom: 10px;
}

/* Responsive styling for mobile devices */
@media screen and (max-width: 768px) {
    .screenshot-container {
        flex-direction: column;
        align-items: center; /* Center the items in the column view */
    }

    .screenshot-item {
        width: 100%;  /* 100% width on mobile devices for column view */
        margin-bottom: 15px;  /* Add space between items */
    }

    .screenshot-item img {
        max-width: 100%;  /* Ensure the images are responsive */
    }

    #toggleView {
        font-size: 30px;  /* Adjust toggle view button size on mobile */
    }
}
