/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #ff7f7f, #ffb3b3); /* Light red gradient background */
    color: #333;
    line-height: 1.6;
    padding: 20px;
    height: 100vh;
}

/* Continent List */
#continent-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#continent-list h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #007BFF; /* Blue for the heading */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Subtle shadow for the heading */
}

#continent-list ul {
    list-style-type: none;
    padding: 0;
}

#continent-list li {
    margin: 10px 0;
}

#continent-list button {
    background-color: #ff6347; /* Tomato color */
    color: #fff;
    font-size: 1.1em;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#continent-list button:hover {
    background-color: #e55347; /* Darker tomato color */
}

/* Country List */
#country-list {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

#country-list button {
    background-color: #d9534f; /* Red color for the Go Back button */
    color: #fff;
    font-size: 1.1em;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

#country-list button:hover {
    background-color: #c9302c; /* Darker red for hover effect */
}

/* Country Name Styling */
#country-list h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 20px;
}

/* Country List Styling */
#countries {
    list-style-type: none;
    padding: 0;
}

#countries li {
    background-color: #f8f9fa;
    margin: 5px 0;
    padding: 12px;
    border-radius: 5px;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

#countries li:hover {
    background-color: #e2e6ea;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

/* Copyright Button */
#copyright-button {
    background-color: #28a745; /* Green color */
    color: white;
    padding: 10px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#copyright-button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Media Queries for Mobile Devices */
@media only screen and (max-width: 768px) {
    #continent-list, #country-list {
        width: 90%;
        padding: 15px;
    }

    #continent-list h1 {
        font-size: 2em;
    }

    #continent-list button {
        font-size: 1em;
        padding: 12px 20px;
    }

    #country-list h2 {
        font-size: 1.8em;
    }

    #countries li {
        font-size: 1.1em;
    }
}

/* Extra Small Screens (Phones in portrait mode) */
@media only screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    #continent-list h1 {
        font-size: 1.6em;
    }

    #continent-list button {
        font-size: 1em;
        padding: 10px;
    }

    #country-list h2 {
        font-size: 1.6em;
    }

    #countries li {
        font-size: 1em;
        padding: 8px;
    }
}

