@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Exo', sans-serif;
    background-image: url('/images/dark_green_nebula_background.png'); /* Use your dark green nebula background image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
}

.container {

    text-align: center;
    width: 90%;
    max-width: 600px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background to improve text readability */
    border-radius: 10px;
    margin: 0px; /* Add margin to ensure there's space around the container */
}

.domain-name {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 10px;
    border: 6px solid green;
    background-color: #222; /* Dark background for the domain box */
    color: lightgreen;
}

.coming-soon-text {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 20px; /* Ensure proper spacing between elements */
    color: green;
    font-weight: bold;
}

.available-text, .price {
    font-size: 24px;
    margin-bottom: 20px; /* Ensure proper spacing between elements */
    font-weight: bold;
    color: #ccc;
}

.price {
    font-size: 20px;
}

.escrow-button form {
    display: inline-block;
}

.btn {
    font-weight: bold;
    color: white;
    background-color: darkgreen;
    border: none;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px; /* Add space above the button */
}

.btn:hover {
    background-color: #0056b3;
}

.EscrowButtonSecondary {
    background-color: #000000; /* Black background */
    color: #ccc;
    border: 5px solid green; /* White border around the button */
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
    text-align: left;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    margin-top: 20px; /* Add space above the button */
}

.EscrowButtonSecondary .escrow-logo {
    color: #28a745; /* Green logo text */
    font-weight: bold;
    background-color: #000000; /* Black background for the logo */
    border: 1px solid #ffffff; /* Thin white border around the logo */
    padding: 4px 10px; /* Increased padding for more space */
    border-radius: 20px;
    margin-left: 10px;
    text-transform: uppercase; /* Uppercase transformation for logo */
}

.EscrowButtonSecondary:hover {
    background-color: #444444; /* More noticeable grey on hover */
    border-color: #007bff; /* Change border to blue on hover */
    color: #ffffff; /* Change text color to white on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3); /* Add subtle shadow on hover */
    transform: scale(1.05); /* Slightly scale the button on hover */
}

button .escrow-text {
    color: turquoise; /* Color for "ESCROW" */
}

button .com-text {
    color: lightgreen; /* Color for ".COM" */
}

.show-case-domains-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    grid-template-rows: repeat(3, 1fr); /* 3 rows for desktop */
    gap: 6px;
    padding: 5px;
    overflow: hidden;
}

.show-case-domain {
    border: 1px solid black;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background for readability */
    font-size: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

div span:nth-child(1) {
    font-size: 24px; /* Heading text size */
}

.show-case-domain span:nth-child(2) {
    font-size: 16px;
    font-weight: bold;
    color: #ccc;
}

.bold-link {
    color: lightgreen;
    font-weight: bold;
    text-decoration: none;
}

/* Media query for mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .domain-name {
        padding: 0px;
    }
    .show-case-domains-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        grid-template-rows: repeat(4, auto); /* 2 rows for mobile */
        max-height none;
        padding: 10px;
        overflow: hidden;
    }

    .show-case-domain:nth-child(n+9) {
        display: none;
    }

    .show-case-domain {
        font-size: 18px; /* Smaller font size for mobile */
    }

    div span:nth-child(1) {
        font-size: 16px; /* Smaller heading text on mobile */
        padding-left: 0px;
        padding-right: 0px;
    }

    div span:nth-child(2) {
        font-size: 14px; /* Smaller subtext on mobile */
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    body, html {
        display: block;
    }
    
    .show-case-domains-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for mobile */
        grid-template-rows: repeat(3, 1fr); /* 3 rows for mobile */
        max-height: 400px;
        padding: 5px;
    }

    .container {
        margin-top: 10px; 
        margin-left: auto;
        margin-right: auto;
        margin-bottom: auto;
        padding: 20px;
        max-width: 600px;
    }

    .available-text, .price {
        font-size: 24px;
        margin-bottom: 10px; /* Ensure proper spacing between elements */
        font-weight: bold;
        color: #ccc;
    }

    .EscrowButtonSecondary {
        margin-top: 5px;
    }
}

.bold-link {
    color: lightgreen;
    font-weight: bold;
    text-decoration: none;

}
