
/*
Author : Heba Sadlah
Date : 2026-04-12
Description : Styling for Twistle main page (Layout, bubbles,aninations, cand theme )
Note colors and font-family were modified by the group
*/

.how-to-play p {
    margin: 4px 0;
}


@font-face {
    font-family: 'WillyWonka';
    font-style: normal;
    font-weight: normal;
    src: url('Wonderbar-pALD.woff') format('woff');
}

title {
    font-family: WillyWonka, script;
}

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;


    background: linear-gradient(135deg, #FAA4B5, #F8B77C, #FFF183);
    background-size: 400% 400%;
    animation: bgMove 15s ease infinite;
    color: white;
}

@keyframes bgMove {
    0% { background-position: 0% }
    50% { background-position: 100% }
    100% { background-position: 0% }
}

.page {
    width: 95vw;
    height: 90vh;
    padding: 20px;
    display: grid;
    flex-direction: column;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    border-radius: 20px;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header {
    flex: 1;
    text-align: center;
}

.header h1 {
    font-size: 3.5rem;
    font-family: WillyWonka, script;
    cursor: default;
}

.flex-container {
    position: fixed;
    gap: 18px;

    right: 4%;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    top: 20px;
}

.info {
    position: static;
}

.toggle {
    background: #F53C48;
    font-size: large;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
}

#toggle {
    display: none;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: default;
}

.how-to-play {
    display: none;
    position: fixed;
    top: 24%;
    right: 4%;
    z-index: 100;

    width: 220px;
    padding: 10px;
    border-radius: 10px;

    background: #F53C48;
    opacity: 50%;
    /*background: rgba(112, 193, 225, 0.3);*/
}

#toggle:checked ~ .how-to-play {
    display: block;
}

.grid {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bubbles {
    display: flex;
    gap: 60px;
}

.bubble-row.left { transform: translateY(-20px); }
.bubble-row.right { transform: translateY(20px); }


.bubble {
    width: 60px;
    height: 60px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: bold;
    position: relative;
    cursor: pointer;

    transition: 0.2s;
}

.bubble:hover {
    transform: scale(1.2);
}

.dot {
    position: absolute;
    top: 6px;
    left: 6px;

    width: 10px;
    height: 10px;
    border-radius: 50%;
}

a {
    text-decoration: none;
    color: white;
}

.back-button {
    background-color: #F53C48;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 3px 30px;
    text-decoration: none;
    transition: 0.1s;

    position: fixed;
    top: 60vh;
    left: 60px;
}


.b2 { background: linear-gradient(135deg, #EE9096, #B60300); }
.b3 { background: linear-gradient(135deg, #B60300, #EF8503); }
.b4 { background: linear-gradient(135deg, #EF8503, #FDC700); }
.b5 { background: linear-gradient(135deg, #FDC700, #77A800); }
.b6 { background: linear-gradient(135deg, #77A800, #147CBF); }
.b7 { background: linear-gradient(135deg, #147CBF, #86299C); }
.b8 { background: linear-gradient(135deg, #82699C, #EE9096); }

.dot.b2 { background: #B60300; opacity: 20%;}
.dot.b3 { background: #EF8503; opacity: 20%;}
.dot.b4 { background: #FDC700; opacity: 20%;}
.dot.b5 { background: #77A800; opacity: 20%;}
.dot.b6 { background: #147CBF; opacity: 20%;}
.dot.b7 { background: #86299C; opacity: 20%;}
.dot.b8 { background: #EE9096; opacity: 20%;}


.sidebar {
    position: absolute;
    top: 20px;
    display: flex;

    flex-direction: column-reverse;
    align-items: flex-start;
    left: 30px;
}

.side-item {
    background: rgba(0,0,0,0.4);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: default;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.candy-bg span {
    position: absolute;
    opacity: 0.2;
    font-size: 3rem;
}

.candy-bg span:nth-child(1){top:10%; left:10%;}
.candy-bg span:nth-child(2){top:40%; left:5%;}
.candy-bg span:nth-child(3){bottom:10%; left:20%;}

.candy-bg span:nth-child(4){top:10%; right:10%;}
.candy-bg span:nth-child(5){bottom:40%; right:5%;}
.candy-bg span:nth-child(6){bottom:10%; right:20%;}

.bubble-link {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
}

.login-button {
    position: static;
    background-color: #F53C48;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 6px 30px;
    display: inline-block;
    text-decoration: none;
    font-family: WillyWonka;
}

.logout-button {
    position: static;
    background-color: #F53C48;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 6px 30px;
    font-size: large;
    transition: transform 0.1s;
    text-decoration: none;
    font-family: WillyWonka;
}
