@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&family=Montserrat:wght@600&display=swap');
@import url('reset.css');

body {
    width: min(100vw, 600px);
    margin: auto;
    font-family: 'BIZ UDPGothic', sans-serif;
    position: relative;
}

.main-content {
    height: calc(84px + min(100vw, 600px));
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    margin: 10px auto 0px auto;
}

h1 img {
    margin-right: 7px;
}

#map {
    width: min(100vw, 600px);
    height: min(100vw, 600px);
    background-color: #aaaaaa;
    transition: all 0.3s linear;
    margin: 0 auto;
}

#map.hidden {
    height: 0;
    width: 0;
}

#pinButton {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 60px;
    width: min(80vw, 180px);
    border: 2px solid #333;
    border-radius: 100px;
    font-family: 'BIZ UDPGothic', sans-serif;
    padding: 15px;
    background-color: transparent;
    margin: 30px auto;
    transition: all 0.3s linear;
}

#pinButton .pinimg {
    background-image: url("./images/pin.webp");
    background-size: cover;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

#pinButton p {
    margin-left: 5px;
    font-size: 1.2rem;
    overflow: hidden;
    transition: all 0.3s linear;
}

@keyframes opacity_change {
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

#pinButton.big {
    width: min(70dvw, 300px);
    height: min(70dvw, 300px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

#pinButton.big p {
    width: 0px;
    margin-left: 0px;
}

@keyframes jumping {
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

#pinButton.big .pinimg {
    position: relative;
    width: 60%;
    height: 60%;
    background-color: white;
    animation-name: jumping;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
}

#closeButton {
    position: absolute;
    width: 40px;
    height: 40px;
    border: none;
    background-color: #eee;
    border-radius: 50%;
    font-size: 1.4rem;
    margin-left: 10px;
    right: 10px;
    transition: all 0.3s linear;
    text-align: center;
    color: black;
}

#closeButton::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background-color: black;
    transform: translate(-50%, -50%) rotate(45deg);
}

#closeButton::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 2px;
    background-color: black;
    transform: translate(-50%, -50%) rotate(-45deg);
}

body * {
    color: black;
}

#closeButton.hidden {
    opacity: 0;
}

#message {
    display: block;
    width: 100%;
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    margin-left: 10px;
}

#history {
    position: relative;
    padding: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #ddd;
    opacity: 1;
}

#history.hidden {
    opacity: 0;
}

#history::before {
    content: "logs";
    position: absolute;
    top: 1rem;
    left: 5px;
    width: 50px;
    font-size: 0.9rem;
}

#history div {
    margin-bottom: 13px;
    font-size: 0.9rem;
}

#history div::before {
    content: "> ";
    font-size: 0.7rem;
}

footer {
    background-color: #ddd;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    font-family: "Montserrat", sans-serif;
}