@font-face {
    font-family: 'Merlin Regular';
    src: url('font/msr.otf');
}
@font-face {
    font-family: 'Merlin Italic';
    src: url('font/msi.otf');
}
@font-face {
    font-family: 'Merlin Slant';
    src: url('font/mssr.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color: #efefef;
    font-family: 'Merlin Regular';
    font-size: 16px;
    /* line-height: 1.5; */
}

/* scrollbar */

::-webkit-scrollbar {
    width: 0.5rem;
}
::-webkit-scrollbar-thumb {
    background: #363636;
    border-radius: 1rem;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(58, 58, 58);
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: transparent;
}

.weather {
    text-align: left;
    margin: 0 auto;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

.background {
    /* background-image: url('img/bg.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.main {
    margin: 2rem;
    padding: 3rem;
}

.welcome {
    font-size: 1.5rem;
    font-family: 'Merlin Regular';
    margin-bottom: 1rem;
    /*For only ARC browser */
    color: var(--arc-palette-foregroundSecondary) !important;
}

.clock {
    font-size: 5rem;
    /* margin: 2rem; */
    opacity: 0.8;
    /*For only ARC browser */
    color: var(--arc-palette-foregroundSecondary);
}

.date {
    font-size: 1.5rem;
    font-family: 'Merlin Regular';
    /* margin-top: 1rem; */
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.colon {
    animation: blink 1s linear infinite;
}

.beepboop {
    /* place the search bar and the search button next to each other */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#search {
    background-color: #121212;
    color: #efefef;
    border: none;
    border-bottom: 1px solid #efefef;
    font-family: 'Merlin Regular';
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    width: 85vw;
    border-radius: .5rem;
}

#search:focus {
    outline: none;
}

#search::placeholder {
    color: #efefef;
    opacity: 0.5;
    transition: opacity 0.1s ease-in-out;
}

#search:focus::placeholder, #search:active::placeholder, #search:hover::placeholder {
    opacity: 0.8;
}

.submit button {
    background-color: #2a8ad8;
    color: #efefef;
    border: none;
    font-family: 'Merlin Regular';
    font-size: 1.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    width: 6.2vw;
    border-radius: .5rem;
    cursor: pointer;
}

/* .autofill {
    background-color: #121212;
    color: #efefef;
    border: none;
    font-family: 'Merlin Regular';
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    border-radius: .5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.autofill a {
    color: #efefef;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Merlin Regular';
    margin: .5rem;
}

.autofill a:hover {
    color: #fff;
} */

/* make in an apple calender style */
.events {
    background-color: #121212;
    color: #efefef;
    border: none;
    font-family: 'Merlin Regular';
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    width: 40%;
    border-radius: .2rem;
    /* cursor: pointer; */
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border-left: 3px solid #efefef;
}

.events li {
    list-style: none;
    margin: 0.5rem 0 1rem 0;
    /* text-transform: lowercase; */
    background-color: hsla(0, 0%, 15%, 0.521);
    padding: 1rem;
    border-radius: .5rem;
}

.events a {
    color: #efefef;
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Merlin Regular';
    margin: .5rem;
}

.events .title {
    font-family: 'Merlin Regular';
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.gg {
    font-family: 'Merlin Regular';
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 100;
}

.links ul {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.links ul li {
    list-style: none;
    background-color: hsla(0, 0%, 15%, 0.521);
    padding: 1rem;
    border-radius: .5rem;
}

.gay {
    color: #efefef;
    text-decoration: none;
}

@keyframes blink {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@media only screen and (max-width: 600px) {
    body {
        background-size: cover;
    }
    
    .clock {
        font-size: 3rem;
    }

    .date {
        font-size: 1rem;
    }

    .events {
        width: 100%;
    }

    .events li {
        font-size: 1rem;
    }

    .events .title {
        font-size: 1rem;
    }

    .gg {
        font-size: .8rem;
    }

    .beepboop {
        display: block;
    }

    #search {
        max-width: 100%;
    }

    .submit button {
        display: none;
    }

    .submit button {
        background-color: #6b6b6b;
    }
}

#custom-image-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 250px;
    height: auto;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#custom-image-container.hidden {
    display: none;
}

#menu-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
