body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 35px 35px;
    z-index: 1;
}

.main-title {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-weight: 700;
    color: #89CFF0;
    z-index: 3;
    margin: 0;
    display: block;
}

.expanded .main-title {
    display: none;
}

.city-circle, .new-city-circle {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background-color: #0085CA;
    border: 2px solid #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: width 1s ease-in-out, height 1s ease-in-out, bottom 1s ease-in-out, transform 1s ease-in-out;
}

.city-circle:hover, .new-city-circle:hover {
    border-width: 4px;
}

.city-circle:hover .circle-text, .new-city-circle:hover .circle-text {
    font-weight: 700;
}

.circle-text {
    color: white;
    font-size: 24px;
    text-align: center;
    transition: font-weight 0.3s ease;
}

.expanded .city-circle, .expanded .new-city-circle {
    width: 80vmin;
    height: 80vmin;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    border-radius: 50%;
    transition: width 2s cubic-bezier(0.25, 0.1, 0.25, 1), height 2s cubic-bezier(0.25, 0.1, 0.25, 1), bottom 2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.expanded-content {
    display: none;
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 80vmin;
    height: 80vmin;
    background-color: transparent;
    border: none;
    z-index: 3;
    color: white;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 2s cubic-bezier(0.25, 0.1, 0.25, 1);
    opacity: 0;
}

.expanded .expanded-content {
    display: flex;
    opacity: 1;
}


.rectangle-mode .city-circle, .rectangle-mode .new-city-circle {
    width: 400px;
    max-width: 90vw;
    height: 450px;
    border-radius: 10px;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.rectangle-mode .circle-text {
    display: none;
}

.expanded-content h1 {
    font-size: 48px;
    margin: 20px 0 10px;
}

.expanded-content h2 {
    font-size: 32px;
    margin: 0 0 30px;
}

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

.button {
    background-color: #005670;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 20px;
    width: 100px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.expanded .circle-text {
    display: none;
}

.signin-form, .signup-part1, .signup-part2, .universal-signin-form, .universal-signup-part1, .universal-signup-part2, .universal-signup-part3, .no-key-form {
    width: 300px;
    display: none;
    position: relative;
    margin: 0 auto;
    z-index: 4;
}

.rectangle-mode .no-key-form {
    width: 100%;
}

.signin-form form, .signup-part1 form, .signup-part2 form, .universal-signin-form form, .universal-signup-part1 form, .universal-signup-part2 form, .universal-signup-part3 form, .no-key-form form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.signin-form label, .signup-part1 label, .signup-part2 label, .universal-signin-form label, .universal-signup-part1 label, .universal-signup-part2 label, .universal-signup-part3 label, .no-key-form label {
    color: white;
    font-size: 12px;
    text-align: left;
    margin-bottom: 2px;
}

.signin-form input, .signup-part1 input, .signup-part2 input, .universal-signin-form input, .universal-signup-part1 input, .universal-signup-part2 input, .universal-signup-part3 input, .no-key-form input {
    width: 100%;
    padding: 5px;
    border: 2px solid #0085CA;
    border-radius: 5px;
    font-size: 12px;
    background-color: white;
    color: #333;
}

.no-key-form input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.no-key-form .radio-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.no-key-form .radio-group span {
    font-size: 12px;
    color: white;
}

.no-key-form h1 {
    font-size: 24px;
    margin: 10px 0 5px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
}

.error {
    color: #FF0000;
    font-size: 10px;
    margin: 5px 0 0;
    text-align: center;
    display: none;
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #0085CA;
    border: 2px solid #000;
}

th, td {
    padding: 8px;
    border: 1px solid #000;
    font-size: 14px;
}

th {
    background-color: #005670;
    font-weight: 700;
}

.another-place-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.location-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: #0085CA;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 20px;
    z-index: 1001;
    color: white;
    text-align: center;
}

.location-menu-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.location-menu h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.location-menu select {
    width: 100%;
    padding: 5px;
    border: 2px solid #0085CA;
    border-radius: 5px;
    font-size: 12px;
    background-color: white;
    color: #333;
}

@media (max-width: 768px) {
    .city-circle, .new-city-circle {
        width: 100px;
        height: 100px;
        bottom: 15%;
    }
    .circle-text {
        font-size: 18px;
    }
    .main-title {
        font-size: 48px;
        top: 30px;
    }
    .expanded-content h1 {
        font-size: 36px;
    }
    .expanded-content h2 {
        font-size: 24px;
    }
    .button {
        width: 80px;
        font-size: 16px;
    }
    .rectangle-mode .city-circle, .rectangle-mode .new-city-circle {
        width: 300px;
        height: 400px;
    }
    .signin-form, .signup-part1, .signup-part2, .universal-signin-form, .universal-signup-part1, .universal-signup-part2, .universal-signup-part3, .no-key-form {
        width: 250px;
    }
    .signin-form label, .signup-part1 label, .signup-part2 label, .universal-signin-form label, .universal-signup-part1 label, .universal-signup-part2 label, .universal-signup-part3 label, .no-key-form label {
        font-size: 10px;
    }
    .signin-form input, .signup-part1 input, .signup-part2 input, .universal-signin-form input, .universal-signup-part1 input, .universal-signup-part2 input, .universal-signup-part3 input, .no-key-form input {
        font-size: 10px;
        padding: 4px;
    }
    .no-key-form .radio-group span {
        font-size: 10px;
    }
    .no-key-form h1 {
        font-size: 20px;
        margin: 8px 0 4px;
    }
    .form-buttons {
        margin-top: 6px;
    }
    .error {
        font-size: 8px;
    }
    .content {
        padding: 10px;
    }
    th, td {
        font-size: 12px;
        padding: 6px;
    }
    .another-place-button {
        bottom: 15px;
        right: 15px;
        font-size: 16px;
        padding: 8px 16px;
        width: 80px;
    }
    .location-menu {
        width: 250px;
    }
    .location-menu h3 {
        font-size: 14px;
    }
    .location-menu select {
        font-size: 10px;
        padding: 4px;
    }
}