/******************* Loader ************************/
.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #555;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/******************* Loader ************************/

/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /*background-color: #f4f4f4;*/
    display: flex;
    justify-content: center;
    /*align-items: center;*/
    /*height: 100vh;*/
    padding: 20px;
}

/* Subscriptions container styles */
#sub {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Keeps the container from stretching too wide */
    margin: 20px;
}

/* Heading styles */
h4 {
    text-align: center;
    margin-bottom: 20px;
}

/* Form container styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Checkbox container styles */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Label and checkbox styles */
label {
    display: flex;
    align-items: center;
    font-size: 16px;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Button styles */
button {
    background-color: #0077BB; 
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #33BBEE;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    #sub {
        max-width: 100%;
        padding: 15px;
    }

    h4 {
        font-size: 18px;
    }

    button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
        justify-content: flex-start; /* Aligns content to top on mobile */
        height: auto; /* Adjusts to avoid blank space at the bottom */
    }

    #sub {
        max-width: 100%;
        padding: 15px;
    }

    h4 {
        font-size: 16px;
    }

    button {
        font-size: 14px;
    }

    .checkbox-container {
        flex-direction: column;
        gap: 10px;
    }
}

