* {
    margin: 0;
    padding: 0;
}

button,
a,
img,
input,
label {
    touch-action: manipulation;
}

body {
    background-color: rgb(96, 133, 204);
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-image: url('bg-clover.svg');
    background-size: 50% auto;
    background-repeat: repeat;
    background-position: top left;
    z-index: -1;
}

.preload {
    position: absolute;
    left: 0;
    top: 0;
    visibility: hidden;
}

#content {
    margin: 2vh auto;
    width: 80vw;
}

h1 {
    text-align: center;
    font-size: 3em;
    font-weight: bold;
}

h2 {
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;
}

hr {
    border-bottom: 6px dashed white;
    border-top: none;
    border-left: none;
    border-right: none;
}

#subtitle-seperator {
    margin-bottom: 10px;
}

#counter-container {
    text-align: center;
    font-weight: bold;
    margin: 64px 0 16px 0;
    position: relative;
    z-index: 9999;
}

#counter-container>p {
    text-shadow: #4E9A06 0 0 10px, #4E9A06 0 0 10px, #4E9A06 0 0 10px, #4E9A06 0 0 10px, #4E9A06 0 0 10px;
}

#counter {
    color: #FF9800;
    font-size: 2em;
}

#counter-button {
    background-color: #FF9800;
    border: none;
    border-radius: 16px;
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-top: 16px;
    cursor: pointer;
}

#special-button,
#omikuji-button {
    background-color: #FF9800;
    border: none;
    color: white;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    cursor: pointer;
}

#special-button {
    border-radius: 0px;
    padding: 10px 20px;
}

#shutup-button {
    background-color: #808080;
    border: none;
    border-radius: 0px;
    color: white;
    padding: 10px 20px;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

#omikuji-button {
    border-radius: 16px;
    padding: 16px 32px;
}

#counter-button:hover,
#special-button:hover,
#omikuji-button:hover {
    background-color: #E68A00;
}

#shutup-button:hover {
    background-color: #666666;
}

#settings-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #FF9800;
}

input:focus+.slider {
    box-shadow: 0 0 1px #FF9800;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

#implementation-container {
    margin-bottom: 64px;
    text-align: center;
}

#video-subtitle,
#gallery-subtitle {
    margin-bottom: 10px;
    text-align: center;
}

#video-item-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 64px;
}

.video-item {
    width: calc(80vw / 3 - 10px);
    height: calc((80vw / 3 - 10px) / 16 * 9);
    margin: 10px 5px 0 5px;
}

.video-item>img {
    width: inherit;
    height: inherit;
    cursor: pointer;
}

.video-item>img,
iframe {
    border-radius: 16px;
}

#grid {
    display: flex;
    gap: 10px;
    align-items: start;
    margin-top: 18px;
}

.gallery-column {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.grid-item {
    min-width: 0;
    width: 100%;
}

.tweet-embed {
    position: relative;
}

.tweet-card {
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(15, 20, 25, 0.12);
    border-radius: 16px;
    background: white;
    color: #0f1419;
    font-size: 0.64em;
    line-height: 1.35;
}

.tweet-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.tweet-card-avatar {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1d9bf0;
    color: white;
    font-weight: bold;
    flex: 0 0 auto;
    overflow: hidden;
}

.tweet-card-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tweet-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tweet-card-author,
.tweet-card-handle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tweet-card-handle,
.tweet-card-footer {
    color: #536471;
}

.tweet-card-body {
    margin-top: 14px;
    overflow-wrap: anywhere;
}

.tweet-card-body a {
    color: #1d9bf0;
    text-decoration: none;
}

.tweet-card-media {
    display: block;
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid rgba(15, 20, 25, 0.12);
    border-radius: 12px;
    background: #eff3f4;
}

.tweet-card-media img {
    display: block;
    width: 100%;
    height: auto;
}

.tweet-card-footer {
    display: block;
    margin-top: 12px;
    text-decoration: none;
}

.tweet-card-footer:hover,
.tweet-card-body a:hover {
    text-decoration: underline;
}

#footer {
    background-color: white;
    color: black;
    padding: 16px 10vw;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.no-break {
    white-space: nowrap;
}

#trainer-profile {
    min-width: 256px;
    max-width: 720px;
    height: auto;
    border-top-left-radius: 2% 3.5%;
    border-top-right-radius: 2% 3.5%;
    border-bottom-left-radius: 2% 3.5%;
    border-bottom-right-radius: 2% 3.5%;
}

#footer-header-text {
    margin-bottom: 16px;
}

.footer-icon {
    display: inline-block;
    vertical-align: middle;
    font-size: 2em;
}

#discord-footer-icon {
    color: #5662f6;
}

#twitter-footer-icon {
    color: #1d9bf0;
}

#github-footer-icon {
    color: #000000;
}

.footer-icon-text {
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    margin-left: 6px;
}

#footer-repository-text {
    margin-top: 32px;
    margin-bottom: 16px;
}

@media screen and (max-width: 1512px) {
    body {
        font-size: 1.25em;
    }

    #subtitle-seperator {
        margin-top: 3px;
        margin-bottom: 11px;
    }
}

@media screen and (max-width: 1280px) {
    .video-item {
        width: calc(40vw - 10px);
        height: calc((40vw - 10px) / 16 * 9);
    }

    #footer {
        flex-wrap: wrap;
    }

    #footer-text {
        text-align: center;
    }

    #footer-header-text {
        margin-bottom: 8px;
    }

    #footer-repository-text {
        margin-top: 16px;
        margin-bottom: 8px;
    }
}

@media screen and (max-width: 1265px) {
    body {
        font-size: 1em;
    }

    #subtitle-seperator {
        margin-top: 6px;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 854px) {
    .video-item {
        width: calc(80vw - 10px);
        height: calc((80vw - 10px) / 16 * 9);
    }

    #settings-container {
        flex-wrap: wrap;
    }

    .setting-item:last-child {
        width: 100%;
        flex-direction: column;
        gap: 16px;
    }

    #shutup-button {
        margin-left: 0;
    }
}

@media screen and (max-width: 510px) {
    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.25em;
    }

    #subtitle-seperator {
        margin-top: 8px;
        margin-bottom: 13px;
    }
}

@media screen and (max-width: 430px) {
    h1 {
        font-size: 2em;
    }

    #subtitle-seperator {
        margin-top: 10px;
    }
}
